.wtoy-hidden {
  opacity: 0;
  filter: alpha(opacity=0);
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.txt-red-hl {
  color: #ba1a1a;
}
.txt-orange-hl {
  color: #fcb424;
}
.txt-underline {
  display: inline-block;
  padding-bottom: 24px;
  border-bottom: 2px solid #251a00;
}
.wtoy-title:before {
  content: "";
  display: inline-block;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("../img/icon-ball.svg");
  width: 24px;
  height: 24px;
  margin-right: 8px;
  position: relative;
  top: 5px;
}

/* table */
.woocommerce-MyAccount-content {
  overflow: hidden;
}
.wtoy-table-control {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.wtoy-table-control__checkbox {
  margin-right: 5px;
}
.wtoy-table-control__label {
  margin: 0;
}
.wtoy-table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
}
.wtoy-table {
  border-collapse: separate;
  border-spacing: 0;
}
.wtoy-table--aligncenter {
  text-align: center;
}
.wtoy-table--nowrap {
  white-space: nowrap;
}
.wtoy-table--compact {
  font-size: 14px;
}
.wtoy-table.wtoy-table--overflow th {
  white-space: nowrap;
}
/* .wtoy-table.wtoy-table--overflow td {
  min-width: 100px;
} */
.wtoy-table,
.wtoy-table th,
.wtoy-table td {
  border: 0;
}
.wtoy-table thead th {
  text-wrap: nowrap;
}
.wtoy-table tr th {
  background-color: #4c4639;
  color: #ffffff;
  font-weight: 500;
  padding: 10px 32px;
}
.wtoy-table tr {
  background-color: #edeff2;
}
.wtoy-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}
.wtoy-table tr.group--head {
  cursor: pointer;
}

.wtoy-table tr.group--head.odd {
    background-color: #ffffff;
}
.wtoy-table tr.group--head.even {
    background-color: #edeff2;
}

.wtoy-table tr.group--head:hover {
  background-color: #fcb424;
}
.wtoy-table tr.group--content {
    background-color: #ffffff;
    font-weight: bold;
}


.wtoy-table tr.group--content td {
  border-bottom: 1px solid #b5b6b8;
}
.wtoy-table tr.group--content.head {
  background-color: #b5b6b8;
}
.wtoy-table tr.group--content.head td {
  border-top: 1px solid #b5b6b8;
}
.wtoy-table tr.group--content td:first-child {
  background-color: white;
  border: none;
}
.wtoy-table.wtoy-table--sticky tr th:first-child,
.wtoy-table.wtoy-table--sticky tr td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}
.wtoy-table.wtoy-table--sticky tr td:first-child {
  /*background-color: #edeff2;*/
}
.wtoy-table.wtoy-table--sticky tr:nth-child(odd) td:first-child {
  /*background-color: #ffffff;*/
}
.wtoy-table tr td {
  padding: 12px 32px;
}
.wtoy-table.wtoy-table--compact tr th,
.wtoy-table.wtoy-table--compact tr td {
  padding: 5px 8px;
}
.wtoy-table tr th.qty,
.wtoy-table tr td.qty {
  width: 140px;
  text-align: center;
  position: relative;
}
.wtoy-table tr th.center,
.wtoy-table tr td.center {
  text-align: center;
}
.wtoy-table tfoot tr {
  background-color: #f9fafb;
}
.wtoy-table tfoot tr td {
  padding: 20px 32px;
}

.wtoy-table-view {
  margin-bottom: 32px;
}
.wtoy-table-view tr:last-child {
  background-color: #f8ecd3;
  font-weight: 500;
}
.wtoy-table-view img {
  height: 60px;
  width: auto;
  border-radius: 4px;
  margin-right: 16px;
}

.wtoy-table-edit .wtoy-actions {
  justify-content: flex-end;
}
@media (max-width: 768px) {
  .wtoy-table tr th,
  .wtoy-table tr td {
    padding: 10px 16px;
  }
  .wtoy-table tr th.qty,
  .wtoy-table tr td.qty {
    width: auto;
  }
}

.wtoy-cart {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.wtoy-cart-qty {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.wtoy-cart-qty input.qty {
  border-color: #dddddd;
}

.wtoy-table__input {
  min-width: 120px;
}

.wtoy-btn {
  padding: 16px 56px;
  border-radius: 50px;
  text-wrap: nowrap;
  font-size: 14px;
  line-height: 100%;
  cursor: pointer;
}
.wtoy-btn-sm {
  padding: 12px 16px;
  border-radius: 50px;
  text-wrap: nowrap;
  font-size: 14px;
  line-height: 100%;
  cursor: pointer;
}
.wtoy-btn-sq {
  padding: 16px;
  border-radius: 4px;
  text-wrap: nowrap;
  font-size: 14px;
  line-height: 100%;
  cursor: pointer;
}
.wtoy-btn-inline {
  background: none;
  text-wrap: nowrap;
  font-size: 14px;
  line-height: 100%;
  cursor: pointer;
}

.wtoy-btn-main {
  background: #fcb424;
  color: #251a00;
}
.wtoy-btn-main:hover {
  background: #ffcd05;
  color: #251a00;
}
.wtoy-btn-alt {
  background: #4c4639;
  color: #ffffff;
}
.wtoy-btn-alt:hover {
  background: #251a00;
  color: #ffffff;
}
.wtoy-btn-default {
  background: #dddddd;
  color: #4c4639;
}
.wtoy-btn-default:hover {
  background: #edeff2;
  color: #4c4639;
}
.wtoy-btn-add-all {
  margin-left: auto;
}
.wtoy-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
}
.wtoy-btn:disabled {
  pointer-events: none;
  background: #dddddd;
  color: #4c4639;
}
.wtoy-btn-loading {
  position: relative;
  text-align: center;
}
.wtoy-btn-loading .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: 5px;
  margin-right: 3px;
  background: #303131;
  animation: wave 1.3s linear infinite;
  position: absolute;
  top: 20px;
  opacity: 0;
}
.wtoy-btn-loading .dot:nth-child(2) {
  animation-delay: -1.1s;
  margin-left: 14px;
}
.wtoy-btn-loading .dot:nth-child(3) {
  animation-delay: -0.9s;
  margin-left: 23px;
}
.wtoy-btn-loading:disabled .dot {
  opacity: 1;
}

@keyframes wave {
  0%,
  60%,
  100% {
    transform: initial;
  }

  30% {
    transform: translateY(-15px);
  }
}

/* popup */
.wtoy-popup-wrap {
  display: flex;
  z-index: 999;
  width: 100%;
  height: 100%;
  padding: 16px;
  position: fixed;
  visibility: hidden;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  filter: alpha(opacity=0);
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.wtoy-popup-wrap.open {
  visibility: visible;
  opacity: 1;
  filter: alpha(opacity=1);
}
.wtoy-popup {
  padding: 20px;
  display: flex;
  /* height: 600px;
  width: 420px; */
  /* min-height: 600px; */
  border-radius: 8px;
  position: relative;
  margin: auto;
  background: #ffffff;
  opacity: 0;
  filter: alpha(opacity=0);
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  -ms-transform: scale(0.7); /* IE 9 */
  -webkit-transform: scale(0.7); /* Safari */
  transform: scale(0.7);
  text-align: center;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.wtoy-popup-wrap.open .wtoy-popup {
  opacity: 1;
  filter: alpha(opacity=1);
  -ms-transform: scale(1); /* IE 9 */
  -webkit-transform: scale(1); /* Safari */
  transform: scale(1);
}
.wtoy-popup .wtoy-actions {
  justify-content: center;
}
.wtoy-popup h4 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.wtoy-popup .count-text {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 0;
}
.wtoy-popup .wtoy-loop-lottery-points p {
  margin-bottom: 0;
}

.wtoy-popup .wtoy-agreement {
  width: 280px;
  margin-bottom: 8px;
}
.wtoy-popup .wtoy-agreement p {
  text-align: left;
  margin-bottom: 8px;
}
.wtoy-popup .wtoy-agreement p:last-child {
  margin-bottom: 0;
}
.wtoy-popup .wtoy-agreement label {
  margin-left: 8px;
}
.wtoy-popup .wtoy-agreement a {
  text-decoration: underline;
}

#wtoy-add-waiting-queue-secs {
  background: #11378F;
  color: white;
}
.wtoy-lottery-wrapper {
  max-width: 760px;
  margin: 0 auto;
}
.wtoy-highlight-box-wrap {
  border-radius: 8px;
  background-color: rgba(252, 180, 36, 0.2);
  display: flex;
  padding: 16px 24px;
  gap: 40px;
  color: #251a00;
  margin-bottom: 16px;
}
.wtoy-count-wrap {
  justify-content: center;
}
.wtoy-highlight-box-wrap .wtoy-highlight-box {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}
.wtoy-highlight-box-wrap #countdown_div:before,
.wtoy-highlight-box-wrap #waiting-countdown:before,
.wtoy-highlight-box-wrap #online_div:before,
.wtoy-highlight-box-wrap #waiting-count:before {
  content: "";
  display: inline-block;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
}
.wtoy-highlight-box-wrap #countdown_div:before ,
.wtoy-highlight-box-wrap #waiting-countdown:before {
  background-image: url("../img/icon-clock.svg");
}
.wtoy-highlight-box-wrap #online_div:before,
.wtoy-highlight-box-wrap #waiting-count:before {
  background-image: url("../img/icon-avatar.svg");
}
.wtoy-highlight-box-wrap p:last-child {
  margin-bottom: 0;
}

.wtoy-qty-wrap {
  position: relative;
  text-align: center;
  margin-bottom: 16px;
}

.wtoy-lottery-wrap {
  border-radius: 8px;
  background-color: #edeff2;
  padding: 32px 48px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.wtoy-lottery-wrap button {
  border-radius: 2px;
  background-color: #251a00;
  color: #ffffff;
  width: 60px;
  height: 60px;
  padding: 0;
  justify-content: center;
}
.wtoy-qty-wrap #random_selection {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(0, -50%);
}
.wtoy-lottery-wrap button:disabled,
.wtoy-lottery-wrap button[disabled] {
  background-color: rgba(76, 70, 57, 0.2);
  text-decoration: line-through;
}
.wtoy-lottery-wrap button.selected {
  background-color: #ba1a1a;
}
.wtoy-lottery-action {
  justify-content: center;
  padding: 16px;
  margin-bottom: 48px;
  opacity: 0;
  filter: alpha(opacity=0);
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.wtoy-lottery-action.open {
  opacity: 1;
  filter: alpha(opacity=1);
}

@media screen and (min-width: 767px) {
  .wtoy-popup-wrap {
    padding: 48px;
  }
  .wtoy-popup {
    min-width: 600px;
    gap: 40px;
    padding: 48px;
  }
}
@media screen and (max-width: 768px) {
  .wtoy-cart {
    flex-direction: column;
  }
  .wtoy-cart .wtoy-btn-add-all {
    margin-left: inherit;
  }
  .wtoy-highlight-box-wrap {
    flex-direction: column;
    gap: 10px;
  }
  .wtoy-lottery-wrap {
    padding: 20px;
  }
  .wtoy-popup-wrap .wtoy-actions .wtoy-btn {
    padding: 16px 42px;
  }
}
@media screen and (max-width: 600px) {
  .wtoy-popup {
    width: 100%;
  }
}

/* Peel - open prize */
#dataDisplay {
  margin-bottom: 50px;
}

/* Peel default */
.peel {
  position: relative;
  opacity: 0;
  width: 350px;
  height: 180px;
}

.peel-ready {
  opacity: 1;
}

.peel-svg-clip-element {
  position: absolute;
  top: -10000px;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.peel-layer {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-transform-origin: top left;
  -moz-transform-origin: top left;
  transform-origin: top left;
}

/* Peel layers */
.peel-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.peel-inner h3,
.peel-wrap h4 {
  margin: 0;
}
.peel-hint {
  position: absolute;
  left: -35px;
  text-align: center;
  height: 100%;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 12px;
  letter-spacing: 1px;
  z-index: 5;
}
.peel-hint:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-image: url(../img/arrow-red.svg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.peel-top {
  /* background-color: #81afcb; */
  background-image: url(../img/card-back.svg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.peel-back {
  background-color: #edeff2;
  background-image: url(../img/card-silver.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.peel-bottom {
  background-image: url(../img/card-silver.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: 500;
}
.peel-prize {
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
}
#peel-prize {
  font-size: 48px;
  font-weight: 500;
  position: relative;
  top: -8px;
  padding: 0 10px 0 0;
}
.peel-card-content {
  display: flex;
  flex-direction: column;
  margin: 0 30px;
  gap: 10px;
}
#peel-prize-name {
  font-size: 16px;
  line-height: 120%;
}
#peel-card.gold,
#peel-card.bronze {
  color: #ffffff;
}

/* prize list */
.prize-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 16px;
  max-height: 40vh;
  overflow-y: scroll;
  padding-right: 10px;
}
.prize-list::-webkit-scrollbar {
  width: 6px;
}
.prize-list::-webkit-scrollbar-track {
  border-radius: 10px;
  background: #dddddd;
}
.prize-list::-webkit-scrollbar-thumb {
  background: #4c4639;
  border-radius: 10px;
}

.prize-list-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 16px;
  width: 500px;
  max-width: 100%;
}
.prize-list-item:not(:last-child) {
  border-bottom: 1px solid #dddddd;
}
.prize-list-title {
  background-color: #4c4639;
  color: #ffffff;
  padding: 14px;
  font-size: 16px;
  font-weight: 500;
  width: 520px;
  max-width: 100%;
  margin-bottom: -20px;
}
.prize-list-item-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.prize-list-item-content p {
  margin: 0;
}
.prize-list-item img {
  border-radius: 4px;
  padding: 6px 0;
}

@media screen and (max-width: 768px) {
  .peel {
    width: 245px;
    height: 126px;
    margin: 0 auto;
  }
  .prize-list {
    max-height: 45vh;
  }
  .prize-list-title {
    width: 320px;
  }
  .prize-list-item {
    width: 300px;
  }
  .peel-card-content {
    gap: 0;
  }
  .peel-bottom {
    font-size: 18px;
  }
  #peel-prize {
    font-size: 42px;
  }
  #peel-prize-name {
    font-size: 16px;
    line-height: 120%;
  }
}

/* vendor edit product */
#wtoy_vendor_product_editor,
#wtoy_confirm_list_view,
#wtoy_custom_box_order_view {
  display: none;
}
#wtoy_vendor_product_editor h2,
#wtoy_confirm_list_view h2,
#wtoy_custom_box_order_view h2 {
  font-weight: 700;
  font-size: 24px;
  line-height: 100%;
  text-align: center;
  margin-bottom: 40px;
}
.wtoy-input-group-wrap {
  display: flex;
  gap: 20px;
  margin-bottom: 48px;
}
.wtoy-input-group {
  width: 50%;
}
.wtoy-vendor label,
.wtoy-vendor .wtoy-label {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 16px;
  display: inline-block;
}
.wtoy-vendor input,
.wtoy-vendor select,
.wtoy-vendor textarea {
  border: 1px solid #dddddd;
  background-color: #ffffff;
  padding: 16px;
  border-radius: 4px;
  line-height: 18px;
  height: auto;
  width: 100%;
}

.wtoy-vendor #wtoy_sub_item_list input{
  padding: 2px 8px;
}
.wtoy-vendor input[type="text"].box_level_name {
  width: 15%;
}
.wtoy-vendor input[type="radio"],
.wtoy-vendor input[type="checkbox"] {
  width: 1%;
}

/* override for last prize opened boxes selector */
#wtoy_opened_boxes_to_get_last_prize input[type="checkbox"] {
  width: auto;
}

/* highlight title of opened boxes selector */
#wtoy_last_prize_opened_boxes_title {
  font-size: 18px;
  font-weight: 700;
  color: #ba1a1a;
  margin-top: 12px;
  margin-bottom: 8px;
}

.wtoy-vendor input:focus,
.wtoy-vendor input[type="text"]:focus,
.wtoy-vendor input[type="number"]:focus,
.wtoy-vendor select:focus,
.wtoy-vendor textarea:focus {
  background-color: #ffffff;
}
.wtoy-vendor input:disabled {
  background-color: #edeff2;
}
.wtoy-vendor h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}
.wtoy-vendor .wtoy-actions {
  justify-content: center;
  margin-top: 40px;
}
#wtoy_add_new_sub_item {
  position: relative;
  padding-left: 30px;
}
#wtoy_add_new_sub_item:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url(../img/icon-add.svg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
#wtoy_add_new_sub_item:hover {
  color: #fcb424;
}
#wtoy_add_new_sub_item:hover:before {
  background-image: url(../img/icon-add-orange.svg);
}
.wtoy-new-item-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.wtoy-new-item {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.wtoy-new-item .box-level {
  text-wrap: nowrap;
  border-radius: 4px;
  border: 1px solid #dddddd;
  background-color: #edeff2;
  padding: 14px 16px;
}
.wtoy-new-item .quantity {
  display: flex;
  justify-content: space-between;
  border: 1px solid #dddddd;
  border-radius: 4px;
  width: 160px;
  height: auto;
}
.wtoy-new-item .quantity input {
  border: 0;
  padding: 16px;
}
.wtoy-new-item .quantity .qty {
  width: 60px;
  height: auto;
  -moz-appearance: textfield;
  appearance: textfield;
}
.wtoy-new-item .quantity .qty::-webkit-outer-spin-button,
.wtoy-new-item .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.wtoy-new-item .image {
  height: 58px;
  border-radius: 4px;
}
.wtoy-last-prize .image {
  height: 58px;
  width: auto;
  border-radius: 4px;
}
.wtoy-vendor .sub-title {
  text-align: center;
}
.wtoy-product-order {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-direction: column-reverse;
}
.wtoy-product-assign-order {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}
.wtoy-product-assign-view {
  min-width: 250px;
  max-width: 100%;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 20px;
  max-height: 250px;
  overflow-y: scroll;
}
.wtoy-product-assign-view::-webkit-scrollbar {
  width: 6px;
}
.wtoy-product-assign-view::-webkit-scrollbar-track {
  border-radius: 10px;
  background: #dddddd;
}
.wtoy-product-assign-view::-webkit-scrollbar-thumb {
  background: #4c4639;
  border-radius: 10px;
}
.wtoy-product-assign-view ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wtoy-product-assign-view ul li {
  padding-bottom: 16px;
}
.wtoy-product-assign-view ul li:first-child {
  color: #ba1a1a;
}
.wtoy-product-assign-view ul li:first-child:before {
  content: "目前指定獎項";
  background-color: #e3632d;
  color: #ffffff;
  padding: 6px 16px;
  display: inline-block;
  width: 100%;
  font-size: 14px;
  margin-bottom: 16px;
}
.wtoy-product-assign-view ul li:nth-child(2):before {
  content: "待指定獎項";
  background-color: #dddddd;
  padding: 6px 16px;
  display: inline-block;
  width: 100%;
  font-size: 14px;
  margin-bottom: 16px;
}
.wtoy-product-assign-view ul li:not(:first-child) {
  border-bottom: 1px solid #dddddd;
}
.wtoy-product-assign-view ul li:last-child {
  border: 0;
}
@media screen and (min-width: 768px) {
  .wtoy-new-item {
    flex-wrap: nowrap;
  }
  .wtoy-product-order {
    flex-wrap: nowrap;
    flex-direction: row;
  }
  .wtoy-product-assign-view {
    max-height: 500px;
    min-width: 400px;
  }
}

/* ready to ship */
.wtoy-accordion-section {
  display: flex;
  gap: 24px;
  align-items: center;
}
.wtoy-accordion .wtoy-accordion-section:not(:first-child) {
  border-top: 1px solid #dddddd;
  margin-bottom: 32px;
  padding-top: 32px;
}
.woocommerce-MyAccount-content .wtoy-accordion-section h2,
.woocommerce-MyAccount-content .wtoy-accordion-section p {
  margin: 0;
}
.wtoy-accordion-section .wtoy-accordion-btn {
  margin-left: auto;
}
.wtoy-accordion-section .wtoy-accordion-btn:before {
  content: "展開";
}
.wtoy-accordion-section .wtoy-accordion-btn:after {
  content: "";
  display: inline-block;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
  background-image: url("../img/icon-arrow-down.svg");
  position: relative;
  top: 2px;
  margin-left: 8px;
}
.wtoy-accordion-section .wtoy-accordion-btn.open {
  background-color: #251a00;
  color: #ffffff;
}
.wtoy-accordion-section .wtoy-accordion-btn.open:before {
  content: "收合";
}
.wtoy-accordion-section .wtoy-accordion-btn.open:after {
  background-image: url("../img/icon-arrow-up.svg");
}
.wtoy-accordion-section .qty {
  color: #fcb424;
}
@media (max-width: 768px) {
  .wtoy-accordion-section {
    flex-wrap: wrap;
  }
  .woocommerce-MyAccount-content .wtoy-accordion-section h2 {
    width: 100%;
  }
}

.wtoy-accordion-panel {
  /* max-height: 0; */
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-out;
  margin-top: 32px;
}
.wtoy-accordion-panel.open {
  opacity: 1;
  max-height: 100%;
  overflow: visible;
  margin-bottom: 32px;
}
.ready-ship-fee {
  color: #ba1a1a;
}
.wtoy-accordion .wtoy-actions {
  margin-top: 40px;
  justify-content: flex-end;
}

/* product type WTOY_WCPNR */
.product-type-WTOY_WCPNR .wtoy-btn {
  display: inline-block;
  padding: 16px 42px;
  width: 120px;
  text-align: center;
}
.product-type-WTOY_WCPNR .woocommerce-loop-product__link {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.product-type-WTOY_WCPNR .woocommerce-loop-product__link .ct-image-container {
  width: 100%;
}

/* product meta */
.product-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
}
.product-meta .product-meta-points {
  padding-right: 16px;
  border-right: 1px solid #dddddd;
}
.product-meta .product-meta-points,
.product-meta .product-meta-shipping,
.product-meta .product-meta-queue {
  font-weight: 500;
}
.product-meta .product-meta-price-5,
.product-meta .product-meta-price-10,
.product-meta .product-meta-random-type {
  padding: 10px 16px;
  border-radius: 25px;
  line-height: 100%;
  background-color: #edeff2;
  color: #251a00;
}
.product-meta .product-meta-price-5 {
  background-color: #11378f;
  color: #ffffff;
}
.product-meta .product-meta-price-10 {
  background-color: #e3632d;
  color: #ffffff;
}
.product-meta .product-meta-queue:before {
  content: "";
  display: inline-block;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
  background-image: url("../img/icon-cancel.svg");
  position: relative;
  top: 2px;
  margin-right: 8px;
}
.product-meta .product-meta-queue-keep:before {
  background-image: url("../img/icon-circle.svg");
}
.product-meta .product-meta-queue-nokeep:before {
  background-image: url("../img/icon-cancel.svg");
}
.wtoy-loop-lottery-thumbnail {
  position: relative;
}
.wtoy-image-treasure-sign {
    position: absolute;
    top: 0;
    right: 0;
    height: 20px;
    width: 20px;
    background: white;
    border: 1px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px;
    font-weight: bold;
    z-index: 1;
}

.wtoy-image-on-sales-sign {
  position: absolute;
  bottom: 0;
  right: 0;
  max-width: 66px;
}
.wtoy-image-on-sales-sign img{
  width: 100%;
}

.wtoy-image-last-prize-sign {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 48px;
    z-index: 1;
}
.ct-product-gallery-container .wtoy-image-last-prize-sign {
    max-width: 72px;
}
.wtoy-image-last-prize-sign img{
    width: 100%;
}
.wtoy-image-gacha-pinned-sign {
    position: absolute;
    top: 4px;
    left: 4px;
    max-width: 48px;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.ct-product-gallery-container .wtoy-image-gacha-pinned-sign {
    max-width: 80px;
    top: 8px;
    left: 8px;
}
.wtoy-image-gacha-pinned-sign img {
    width: 100%;
    display: block;
}
.wtoy-loop-lottery-thumbnail__waiting-sign {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: 46px;
}
.wtoy-loop-lottery-thumbnail__waiting-sign img {
  width: 100%;
}

.prize-empty-stock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* age gate (18+) */
.wtoy-age-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 99998;
}
.wtoy-age-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.wtoy-age-card {
  max-width: 720px;
  width: 92%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  padding: 24px 20px;
  overflow: auto;
  max-height: 86vh;
}
.wtoy-age-title {
  font-size: 18px;
  font-weight: 700;
  color: #c0392b;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wtoy-age-title .icon {
  font-size: 20px;
}
.wtoy-age-content {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  white-space: pre-wrap;
}
.wtoy-age-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
  flex-wrap: wrap;
}
.wtoy-age-btn {
  appearance: none;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}
.wtoy-age-btn.primary {
  background: #2ecc71;
  color: #fff;
}
.wtoy-age-btn.secondary {
  background: #ecf0f1;
  color: #2c3e50;
}
/* 模糊（未同意前） */
.wtoy-age-guard-target img {
  /*filter: blur(14px);*/
  /*transform: translateZ(0);*/
    filter: url(#mosaic);
}
 /* 單一商品頁：常見圖片選擇器一併處理 */
 /*.wtoy-age-guard-target .wp-post-image,*/
 /*.wtoy-age-guard-target .woocommerce-product-gallery__image img,*/
 /*.wtoy-age-guard-target .ct-product-gallery-container img {*/
 /*  filter: blur(14px);*/
 /*  transform: translateZ(0);*/
 /*}*/
/* 同意後解除模糊 */
body.wtoy-age-verified .wtoy-age-guard-target img {
  filter: none;
}
 /*body.wtoy-age-verified .wtoy-age-guard-target .wp-post-image,*/
 /*body.wtoy-age-verified .wtoy-age-guard-target .woocommerce-product-gallery__image img,*/
 /*body.wtoy-age-verified .wtoy-age-guard-target .ct-product-gallery-container img {*/
 /*  filter: none;*/
 /*}*/
@media (max-width: 480px) {
  .wtoy-age-card {
    padding: 18px;
  }
  .wtoy-age-actions {
    justify-content: stretch;
  }
  .wtoy-age-btn {
    flex: 1;
  }
}
.last-prize-badge {
    margin-left: 10px;
}
.last-prize-badge img {
    max-width: 30px;
    width: 30px;
    height: auto;
}
.gacha-link-fixed {
  position: fixed;
  width: 100px;
  bottom: 50px;
  right: 4px;
  z-index: 10000;
}
/* 轉蛋商品頁：避開底部 wgp-draw-bar（用 [data-mode] 排除 character-select 頁） */
@media (min-width: 769px) {
  body:has(.wtoy-gacha-page--limited[data-mode]) .gacha-link-fixed { bottom: 136px; }
}
@media (max-width: 768px) {
  body:has(.wtoy-gacha-page[data-mode]) .gacha-link-fixed { bottom: 72px; }
  body:has(.wtoy-gacha-page--limited[data-mode]) .gacha-link-fixed { bottom: 153px; }
}
#cta-link {
  bottom: 12px !important;
}
.gacha-link {
  width: 64px;
}
.wp-block-tax-cloud .gacha-link {
  background: none;
  border: none;
  box-shadow: none;
  width: 128px;
  margin: 0;
}
.wp-block-tax-cloud .gacha-link img {
  width: 100%;
}
.menu > li >.ct-menu-link {
  padding: 10px;
}

/* ============================================================
   在線玩家紙娃娃（共用：轉蛋 + 一番賞）
   ============================================================ */
.wgp-online-dolls {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 16px;
    width: 100%;
    max-width: var(--theme-block-max-width);
    margin-left: auto;
    margin-right: auto;
}

.wgp-online-dolls-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.wgp-online-dolls-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.wgp-online-dolls-count {
    margin-left: 8px;
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
}
.wgp-online-dolls-row {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 24px;
}
.wgp-mini-doll {
    flex-shrink: 0;
    width: 25%;
    text-align: center;
    animation: wgp-doll-fadein 0.3s ease;
}
.wgp-mini-doll-character {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ececec 100%);
}
.wgp-mini-doll-character img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.wgp-mini-doll-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 24px;
}
.wgp-mini-doll-placeholder::after {
    content: '\1F464';
}
.wgp-mini-doll-name {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.wgp-mini-doll-me .wgp-mini-doll-name {
    color: #e6a023;
    font-weight: 600;
}
.wgp-mini-doll-me .wgp-mini-doll-character {
    border: 2px solid #e6a023;
    border-radius: 8px;
}
@keyframes wgp-doll-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    .wgp-mini-doll-name { font-size: 10px; }
}