/* css elementor widget flash sale */
:root {
  --primary-light: #fd6b0e;
  --text-light: #321401;
  --body-light: #fff6f0;
  --card-light: #ffffff;
  --success-light: #90be6d;
  --warning-light: #f9c74f;
  --fail-light: #f94144;
  --primary-dark: #190b01;
  --text-dark: #ebe8e6;
  --body-dark: #191918;
  --card-dark: #333333;
  --success-dark: #c8dfb6;
  --warning-dark: #fce3a7;
  --fail-dark: #fca0a2;
  --card-shadow: 0 1px 2px rgb(0 0 0 / 20%);
}


.product-item-flashsale p.product.woocommerce.add_to_cart_inline {
  text-align: center;
  margin-bottom: 0;
}

.product-item-flashsale p.product.woocommerce.add_to_cart_inline a {
  background-color: var(--primary-light);
  font-family: 'webfont', sans-serif;
  font-weight: 400;
  letter-spacing: .5px;
  border-radius: 25px 25px 25px 25px;
  text-align: center;
  margin: .5rem;
  color: var(--text-light);
  padding: .65rem;
  display: flex;
  justify-content: center;
}

.product-item-flashsale p.product.woocommerce.add_to_cart_inline a:hover {
  color: var(--card-light);
}

div.flashsale-wrap {
  display: flex;
  flex-direction: column;
}

div.flashsale-wrap > div.coundown-timer {
  display: flex;
  justify-content: flex-end;
  margin: 2rem 1rem;
  margin-right: 0;
  min-height: 48px;
}

div.coundown-timer > div.content-unit {
  display: flex;
  flex-direction: column;
  width: 48px;
  min-height: 48px;
  height: auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  background: var(--card-light);
  font-family: 'webfont', sans-serif;
  font-weight: bold;
  margin-right: 0.3rem;
  border-radius: 4px;
}

div.coundown-timer > div.content-unit:last-child {
  margin-right: 0;
}

div.content-unit > .digit-countdown {
  font-size: 1.3rem;
  line-height: 1.3rem;
  color: var(--text-light);
}

div.content-unit > .label-countdown {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
}

.txt-title-false {
  font-size: 1rem;
  letter-spacing: 0.05rem;
  color: var(--card-light);
  position: absolute;
  right: 0;
  font-family: 'webfont', sans-serif;
  font-weight: 300;
}

.omise_phone_number {
  @apply px-[8px] !bg-[#ddd];
}

article strong {
  @apply !text-text-light dark:!text-text-dark;
}

@media (max-width: 575px) {
  .products-flashsale-wrapper {
    display: flex;
    overflow: scroll;
    box-sizing: border-box;
  }

  .product-item-flashsale {
    min-width: calc(33vw - 2rem);
    max-width: calc(33vw - 2rem);
    margin-right: 1.1rem;
    background: var(--card-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 0.5rem;
  }

  .product-link-flashsale img {
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
  }

  .product-item-flashsale:last-child {
    margin-right: 0;
  }

  .product-item-flashsale a.product-link-flashsale {
    text-align: center;
  }

  .product-item-flashsale p.product.woocommerce.add_to_cart_inline a {
    font-size: 0.7rem !important;
    background: #fab60f !important;
    font-family: 'webfont', sans-serif !important;
  }

  .product-name-flashsale {
    font-size: 0.8rem;
    font-family: 'webfont', sans-serif;
    margin: 0.5rem;
    text-align: left;
    color: var(--text-light);
    letter-spacing: 0.05rem;
    line-height: 1.5rem;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-link-flashsale del {
    color: gray;
  }

  .product-link-flashsale del > span {
    color: gray;
    font-size: 0.5rem;
  }

  .product-link-flashsale ins {
    background: transparent !important;
    text-decoration: none;
    margin-right: 0.3rem;
  }

  .product-link-flashsale ins span {
    font-size: 1rem;
    font-weight: 600;
    color: #a11212;
  }

  .product-link-flashsale > span > bdi {
    font-size: 0.8rem;
    font-weight: 600;
    color: #a11212;
  }

  .flash-sale-logo {
    position: absolute;
  }

  .flash-sale-logo > img {
    width: 50%;
  }

  .progress-flashsale {
    width: calc(100% - 1.8rem);
    height: 12px;
    background: #e1e4e8;
    border-radius: 3px;
    margin: 0.5rem 0.9rem;
    margin-bottom: 0;
    position: relative;
  }

  .fire {
    position: absolute;
    top: 0;
    z-index: 1;
    transform: translate(-10px, -10px);
  }

  .progress-flashsale > span.txt-qtr {
    display: block;
    width: 100%;
    line-height: 12px;
    font-size: 0.5rem;
    text-align: center;
    color: var(--card-light);
    z-index: 2;
    position: absolute;
    font-family: 'webfont', sans-serif;
  }

  .progress-bar-flashsale {
    top: 0;
    left: 0;
    position: absolute;
    display: block;
    height: 100%;
    background: linear-gradient(
      90deg,
      #ff433d,
      #ea4a4a 17%,
      #ffd33d 34%,
      #01ff4d 51%,
      #ff433d 68%,
      #ea4a52 85%,
      #ffd33d
    );
    background-size: 300% 100%;
    /*animation: progress-animation 2s linear infinite;*/
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .products-flashsale-wrapper {
    display: flex;
    overflow: scroll;
    box-sizing: border-box;
  }

  .product-item-flashsale {
    min-width: calc(32.8vw - 1rem);
    max-width: calc(32.8vw - 1rem);
    margin-right: 0.7rem;
    background: var(--card-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 0.5rem;
  }

  .product-link-flashsale img {
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
  }

  .product-item-flashsale:last-child {
    margin-right: 0;
  }

  .product-item-flashsale a.product-link-flashsale {
    text-align: center;
  }

  .product-item-flashsale p.product.woocommerce.add_to_cart_inline a {
    font-size: 0.7rem !important;
    background: #f9c74f !important;
    font-family: 'webfont', sans-serif !important;
  }

  .product-name-flashsale {
    font-size: 0.8rem;
    font-family: 'webfont', sans-serif;
    margin: 0.5rem;
    text-align: left;
    color: var(--text-light);
    letter-spacing: 0.05rem;
    line-height: 1.5rem;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-link-flashsale del {
    color: gray;
  }

  .product-link-flashsale del > span {
    color: gray;
    font-size: 0.5rem;
  }

  .product-link-flashsale ins {
    background: transparent !important;
    text-decoration: none;
    margin-right: 0.3rem;
  }

  .product-link-flashsale ins span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #a11212;
  }

  .product-link-flashsale > span > bdi {
    font-size: 0.8rem;
    font-weight: 600;
    color: #a11212;
  }

  .flash-sale-logo {
    position: absolute;
  }

  .flash-sale-logo > img {
    width: 50%;
  }

  .progress-flashsale {
    width: calc(100% - 0.6rem);
    height: 12px;
    background: #e1e4e8;
    border-radius: 3px;
    margin: 0.5rem 0.3rem;
    margin-bottom: 0;
    position: relative;
  }

  .fire {
    position: absolute;
    top: 0;
    z-index: 1;
    transform: translate(-10px, -10px);
  }

  .progress-flashsale > span.txt-qtr {
    display: block;
    width: 100%;
    line-height: 12px;
    font-size: 0.5rem;
    font-family: 'webfont', sans-serif;
    text-align: center;
    color: var(--card-light);
    z-index: 2;
    position: absolute;
  }

  .progress-bar-flashsale {
    top: 0;
    left: 0;
    position: absolute;
    display: block;
    height: 100%;
    background: linear-gradient(
      90deg,
      #ff433d,
      #ea4a4a 17%,
      #ffd33d 34%,
      #01ff4d 51%,
      #ff433d 68%,
      #ea4a52 85%,
      #ffd33d
    );
    background-size: 300% 100%;
    /*animation: progress-animation 2s linear infinite;*/
  }

  .wrap-slub {
    flex-direction: column;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .products-flashsale-wrapper {
    display: flex;
    overflow: scroll;
    box-sizing: border-box;
    margin-top: 1.5rem;
  }

  .product-item-flashsale {
    min-width: calc(25vw - 1rem);
    max-width: calc(25vw - 1rem);
    margin-right: 0.7rem;
    background: var(--card-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 0.5rem;
  }

  .product-link-flashsale img {
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
  }

  .product-item-flashsale:last-child {
    margin-right: 0;
  }

  .product-item-flashsale a.product-link-flashsale {
    text-align: center;
  }

  .product-item-flashsale p.product.woocommerce.add_to_cart_inline a {
    font-size: 0.7rem !important;
    background: #f9c74f !important;
    font-family: 'webfont', sans-serif !important;
  }

  .product-name-flashsale {
    font-size: 0.8rem;
    font-family: 'webfont', sans-serif;
    margin: 0.5rem;
    text-align: left;
    color: var(--text-light);
    letter-spacing: 0.05rem;
    line-height: 1.5rem;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-link-flashsale del {
    color: gray;
  }

  .product-link-flashsale del > span {
    color: gray;
    font-size: 0.5rem;
  }

  .product-link-flashsale ins {
    background: transparent !important;
    text-decoration: none;
    margin-right: 0.3rem;
  }

  .product-link-flashsale ins span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #a11212;
  }

  .product-link-flashsale > span > bdi {
    font-size: 0.8rem;
    font-weight: 600;
    color: #a11212;
  }

  .flash-sale-logo {
    position: absolute;
  }

  .flash-sale-logo > img {
    width: 50%;
  }

  .progress-flashsale {
    width: calc(100% - 0.6rem);
    height: 12px;
    background: #e1e4e8;
    border-radius: 3px;
    margin: 0.5rem 0.3rem;
    margin-bottom: 0;
    position: relative;
  }

  .fire {
    position: absolute;
    top: 0;
    z-index: 1;
    transform: translate(-10px, -10px);
  }

  .progress-flashsale > span.txt-qtr {
    display: block;
    width: 100%;
    line-height: 12px;
    font-size: 0.5rem;
    font-family: 'webfont', sans-serif;
    text-align: center;
    color: var(--card-light);
    z-index: 2;
    position: absolute;
  }

  .progress-bar-flashsale {
    top: 0;
    left: 0;
    position: absolute;
    display: block;
    height: 100%;
    background: linear-gradient(
      90deg,
      #ff433d,
      #ea4a4a 17%,
      #ffd33d 34%,
      #01ff4d 51%,
      #ff433d 68%,
      #ea4a52 85%,
      #ffd33d
    );
    background-size: 300% 100%;
    /*animation: progress-animation 2s linear infinite;*/
  }
  .wrap-slub {
    flex-direction: column;
  }
}

@media (min-width: 1200px) {
  .products-flashsale-wrapper {
    display: flex;
    overflow: scroll;
    box-sizing: border-box;
    margin-top: 1.5rem;
  }

  .product-item-flashsale {
    min-width: calc(25% - 1rem);
    max-width: calc(25% - 1rem);
    margin-right: 1.3rem;
    background: var(--card-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 0.5rem;
  }

  .product-link-flashsale img {
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
  }

  .product-item-flashsale:last-child {
    margin-right: 0;
  }

  .product-item-flashsale a.product-link-flashsale {
    text-align: center;
  }

  .product-item-flashsale p.product.woocommerce.add_to_cart_inline a {
    font-size: 0.7rem !important;
    background: #f9c74f !important;
    font-family: 'webfont', sans-serif !important;
  }

  .product-name-flashsale {
    font-size: 0.8rem;
    font-family: 'webfont', sans-serif;
    margin: 0.5rem;
    text-align: left;
    color: var(--text-light);
    letter-spacing: 0.05rem;
    line-height: 1.5rem;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-link-flashsale del {
    color: gray;
  }

  .product-link-flashsale del > span {
    color: gray;
    font-size: 0.5rem;
  }

  .product-link-flashsale ins {
    background: transparent !important;
    text-decoration: none;
    margin-right: 0.3rem;
  }

  .product-link-flashsale ins span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #a11212;
  }

  .product-link-flashsale > span > bdi {
    font-size: 0.8rem;
    font-weight: 600;
    color: #a11212;
  }

  .flash-sale-logo {
    position: absolute;
  }

  .flash-sale-logo > img {
    width: 50%;
  }

  .progress-flashsale {
    width: calc(100% - 0.6rem);
    height: 12px;
    background: #e1e4e8;
    border-radius: 3px;
    margin: 0.5rem 0.3rem;
    margin-bottom: 0;
    position: relative;
  }

  .fire {
    position: absolute;
    top: 0;
    z-index: 1;
    transform: translate(-10px, -10px);
  }

  .progress-flashsale > span.txt-qtr {
    display: block;
    width: 100%;
    line-height: 12px;
    font-size: 0.5rem;
    font-family: 'webfont', sans-serif;
    text-align: center;
    color: var(--card-light);
    z-index: 2;
    position: absolute;
  }

  .progress-bar-flashsale {
    top: 0;
    left: 0;
    position: absolute;
    display: block;
    height: 100%;
    background: linear-gradient(
      90deg,
      #ff433d,
      #ea4a4a 17%,
      #ffd33d 34%,
      #01ff4d 51%,
      #ff433d 68%,
      #ea4a52 85%,
      #ffd33d
    );
    background-size: 300% 100%;
    /*animation: progress-animation 2s linear infinite;*/
  }
}
/* end widget flash sale */