/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 4.21
*/

/*************** All pages min height ***************/
#main #content {
  min-height: 70vh;
}

/*************** Fixing slider image lazy load flickering ***************/
img.lazy-load {
  opacity: 0;
}

img.lazy-load-active {
  opacity: 1;
}

img.lazyload-loaded {
  animation: fadein 0.4s;
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*************** Double FB login button fix ***************/
body.woocommerce-account .nsl-container {
  display: none;
}

/*************** Store notice ***************/
.woocommerce-store-notice {
  font-size: 0.7em;
  background-color: #303030;
}
.woocommerce-store-notice__dismiss-link {
  display: none;
}

/*************** Payment pending popup ***************/
.payment-popup-container {
  position: absolute;
  top: 85%;
  right: -50px;
  z-index: 30;
}

.payment-popup {
  text-align: center;
  border-radius: 3px 0 0 3px;
  background: #303030;
  color: white;
  box-shadow: 1px 1px 5px 1px #7e7e7e59;
  padding: 0.5em 1.5em;
  padding-right: calc(1.5em + 50px); /* extra space for slide in animation */
  font-size: 0.8em;
  animation: slidein 0.4s cubic-bezier(0, 0, 0.46, 1.31);
}

.payment-popup a {
  color: #6da6eb;
}

@keyframes slidein {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/*************** Notification messages ***************/
.woocommerce-error .message-container,
.woocommerce-message .message-container {
  padding: 1em 1.5em;
  margin-bottom: 1em;
  display: flex;
  align-items: center;
}
.woocommerce-message .message-container.success-color {
  border: 2px solid #7a9c59;
}
.woocommerce-error .message-container.alert-color {
  border: 2px solid #b20000;
}
.woocommerce-message .message-container i {
  margin-right: 0.3em;
}
.woocommerce-message .message-container a {
  margin-left: auto;
}
.message-container strong {
  margin-right: 0.3em;
}

/*************** Products page ***************/
.woocommerce-loop-product__title a {
  color: black;
}

@media screen and (max-width: 849px) {
  .box-text-products {
    font-size: 1.1em;
  }
}

.box-text-products a.quick-view {
  margin-top: 1em;
  color: var(--primary-color);
  border: 2px solid currentColor;
  background-color: transparent;
  line-height: 2.19em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  font-weight: bolder;
  min-height: 2.5em;
  padding: 0 1.2em;
  max-width: 100%;
  font-size: 0.85em;
  -webkit-transition: border .3s,background .3s,opacity .3s,color .3s,-webkit-transform .3s,-webkit-box-shadow .3s;
  transition: border .3s,background .3s,opacity .3s,color .3s,-webkit-transform .3s,-webkit-box-shadow .3s;
}

.box-text-products a.quick-view:hover {
  border-color: #dfb2a9;
  background-color: #dfb2a9;
  color: #fff;
}

/*************** Product page ***************/
.product-info p.stock {
  font-size: 1.15em;
  text-transform: uppercase;
}
.product-info p.available-on-backorder {
  color: #be5f1b;
}
.product-info p.out-of-stock {
  color: red;
}
table {
  border-collapse: collapse;
}
td:first-child, th:first-child, td:last-child, th:last-child {
  padding: 0.5em;
}
td, th {
  border: 1px solid #ececec;
}

/*************** My account page link hover  ***************/
.dashboard-links a:hover {
  background-color: var(--primary-color);
}

/*************** Order page ***************/
mark.order-number, mark.order-date, mark.order-status {
  background-color: transparent;
  color: #af6455;
}

/*************** Checkout page shipping/billing address style fix  ***************/
div.shipping_address {
  display: block !important;
}

.variation-Backordered {
  color: #be5f1b;
  font-weight: bold;
}

/* Toggle button for billing address */
/* The switch - the box around the slider */
#bill-to-different-address {
  margin-bottom: 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 26px;
  font-weight: 600; }
  #bill-to-different-address label.switch {
    margin-left: 5px;
    flex-shrink: 0; }

.switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 26px;
  margin: 0; }

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0; }

/* The slider */
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s; }

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s; }

input:checked + .toggle-slider {
  background-color: var(--primary-color); }

input:focus + .toggle-slider {
  box-shadow: 0 0 1px var(--primary-color); }

input:checked + .toggle-slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px); }

/* Rounded sliders */
.toggle-slider.round {
  border-radius: 26px; }

.toggle-slider.round:before {
  border-radius: 50%; }

/*************** Checkout page senangpay logo style fix  ***************/
label[for=payment_method_senangPay] img {
  float: right;
  max-height: 2em;
  max-width: 40%;
}

/*************** Review card style fix ***************/
.cr-reviews-slider .ivole-review-card .top-row,
.ivole-reviews-grid .ivole-review-card .top-row {
  border-bottom: solid 2px #9f9f9f;
}

.cr-show-more-reviews-prd, .ivole-show-more-button,
.cr-show-more-reviews-prd, .ivole-show-more-button:hover,
#reviews.cr-reviews-ajax-reviews .cr-button-search,
#reviews.cr-reviews-ajax-reviews .cr-button-search:hover,
#reviews.cr-reviews-ajax-reviews button.cr-ajax-reviews-add-review,
#reviews.cr-reviews-ajax-reviews button.cr-ajax-reviews-add-review:hover {
  background: var(--primary-color);
  color: white;
  border: white;
}

.cr-show-more-reviews-prd, .ivole-show-more-button:hover,
#reviews.cr-reviews-ajax-reviews .cr-button-search:hover,
#reviews.cr-reviews-ajax-reviews button.cr-ajax-reviews-add-review:hover {
  box-shadow: inset 0 0 0 100px rgb(0 0 0 / 20%);
}

/*************** Admin bar mobile ***************/
/* admin bar always show woo */
#wp-toolbar>ul>li#wp-admin-bar-woocommerce {
	display: block;
}
@media screen and (max-width: 849px) {
	#wp-toolbar>ul>li#wp-admin-bar-woocommerce>a {
		padding: 0 8px;
	}
    #wpadminbar { z-index: 1000!important; }
}

/*************** reviews ***************/
.commentlist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5em;
}

@media only screen and (min-width: 1024px) {
    .commentlist {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

ol.commentlist li.review {
    border: 1px solid lightgray;
    border-radius: 1em;
    padding: 0;
    overflow: hidden;
    margin: 0;
}

.commentlist li .comment-text {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.comment-text > * {
    order: 1;
    margin: 0 1em;
}

.comment-text > .star-rating {
    margin-top: 1em;
}

.comment-text > .iv-comment-images,
.comment-text > .cr-comment-videos {
    order: 0;
    display: flex;
    margin: 0;
}

.iv-comment-image, .iv-comment-videos {
    flex-basis: 100%;
    margin: 0;
}

#reviews div.iv-comment-image img, div.iv-comment-image img {
    width: 100%;
    height: auto;
}

em.woocommerce-review__verified.verified,
span.woocommerce-review__dash,
.woocommerce-review__verified {
    display: none;
}

time.woocommerce-review__published-date {
    display: block;
    font-size: 0.8em;
    color: gray;
}

/* cart page table fix */
body.woocommerce-cart td, body.woocommerce-cart th {
    border-left: none;
    border-right: none;
}

.blog-footer {
    color: var(--fs-color-secondary);
    border-top: 1px solid var(--fs-color-secondary);
    width: fit-content;
    padding-top: 0.5rem;
    padding-right: 1rem;
}

.blog-footer .blog-signature {
    font-size: 1rem;
}

.blog-footer .blog-signature a {
    color: var(--fs-color-secondary);
}

.blog-footer .social-icons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.blog-footer .social-icons a {
    color: var(--fs-color-secondary);
}

.blog-footer .social-icons a i {
    height: 24px;
    width: 24px;
}

.footer-2 .block_widget {
    line-height: 1.5rem;
}

.footer-2 .block_widget p {
    margin-bottom: 10px;
}

/** Comments pagination **/
.woocommerce-pagination {
  text-align: center;
  margin: 2rem 0;
}

.woocommerce-pagination .page-numbers {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 6px; /* space between buttons */
}

.woocommerce-pagination .page-numbers li {
  display: inline-block;
  margin: 0;
}

/* Links and numbers */
.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Hover effect */
.woocommerce-pagination .page-numbers li a:hover {
  background-color: var(--primary-color);
}

/* Active page */
.woocommerce-pagination .page-numbers .current {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: bold;
  cursor: default;
}

/* Prev / Next arrows */
.woocommerce-pagination .page-numbers .prev,
.woocommerce-pagination .page-numbers .next {
  font-size: 16px;
  padding: 8px 12px;
}

/* Optional: smaller screens */
@media (max-width: 480px) {
  .woocommerce-pagination .page-numbers li a,
  .woocommerce-pagination .page-numbers li span {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/*************** ADD MOBILE ONLY CSS HERE  ***************/
@media only screen and (max-width: 48em) {}

.referral-code-notice {
    padding: 0.5em;
    border: 1px solid #00000022;
    text-align: center;
    font-size: 0.8em;
    margin: 1em 0;
}

.page-id-21479 .woocommerce-store-notice.demo_store {
    display: none !important;
}
