/**
 * Theme Name:     Hello Elementor Child
 * Author:         Feldrise
 * Template:       hello-elementor
 * Text Domain:	   hello-elementor-child
 * Description:    Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
 * Author URI:     https://feldrise.com
 */

/* Optional extra guard; the JS uses body:fixed, but this also hides scrollbars */
html.next-iframe--open,
body.next-iframe--open {
  overflow: hidden;
}


/* Modal container: 99% width on desktop, force bg */
.next-iframe-container {
  position: relative;
  width: 99%;
  max-width: none;            /* no hard cap */
  height: 95vh;
  background: #1a1e28 !important; /* force the dark bg */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

/* Keep iframe full container */
.next-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Small screens: still full-bleed */
@media (max-width: 767px) {
  .next-iframe-container {
    width: 100vw;
    height: 90vh;
    max-width: none;
    max-height: none;
    border-radius: 10px;
    margin: 0;
  }

  .next-iframe-close{
    position:absolute !important;
    top:40px !important;
    right:16px !important;
  }
}

@media (max-height: 687px) {
  .next-iframe-close {
    top: 66px !important;
  }
}


/* Close button colors */
.next-iframe-close {
  color: #fff !important;   /* white by default */
  transition: color .15s ease;
}

.next-iframe-close:hover {
  color: #ff3b30 !important; /* red on hover */
}

.hide-element-class {
    display: none !important;
}





/* ===== Kipful – Variations table as columns ===== */

/* .more-finition {
  border: 1px solid saddlebrown;
} */
/* Turn rows into columns with flex */

.single-product table.variations tbody {
  margin-top: 20px;
  padding-top: 20px;
  padding-inline: 30px;
  border: 2px solid #19d1d7;
  border-radius: 30px;
  display: flex;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .single-product table.variations tbody {
    width: 100%;
    display: block;
    border: none;
    margin-top: 5px;
    padding-top: 5px;
    padding-inline: 5px;
  }
}


.single-product table.variations tr {
  display: block;
  width: 50%;
  box-sizing: border-box;
}


.label-finition-color{
  padding: 0 !important
}
.value-finition-color > ul{
  padding: 0 !important;
  margin: 0 !important;
}

.value-finition-color > ul.iconic-was-swatches {
  max-height: none !important;
  overflow: visible !important;
}

.value-finition-color .iconic-was-swatches__item {
  display: inline-block !important;
}


.iconic-was-swatches__item + .iconic-was-swatches__item--dummy {
  display: none !important;
}


@media (max-width: 768px) {
  .value-finition-color{
      width: 100% !important;
  }
  .value-finition-color > ul{
      width: 100% !important;
  }
  .single-product table.variations tr {
    display: block;
    width: 100%;
    box-sizing: normal;
  }
}


/* Wrapper for the quantity block */
.kp-quantity-wrapper {
  margin-top: -10px !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 10px;
  text-align: left;
}


.kp-qty-label {
  display: block;
  font-weight: bold !important;
  margin-bottom: 4px;
  color: rgb(233, 233, 233);
  font-size: 14px;
  line-height: 1.2;
}







/* Wrapper row: quantity (left) + button (right) */
.kp-atc-row {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 15px !important;
}

.single_add_to_cart_button{
  padding-inline: 70px !important;
}

/* If Elementor is adding its .elementor-button class on top, hit that too */
.single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button.elementor-button {
  margin-top: 25px !important;
  max-width: none !important;
  float: none !important;
}



:root {
  --btn-radius: 500px;
  --btn-ring: 3px;
  --btn-speed: 8s;
  --btn-bg: #1a1e28;
  --btn-light: #47f9ff;
}

/* Main preview button style */
.single-product .kp-preview-button {
  position: relative;
  display: inline-block;
  border-radius: var(--btn-radius);
  background: var(--btn-bg);
  color: #47f9ff !important;
  font-weight: 700;
  padding: 14px 22px;

  z-index: 2;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  
  padding-inline: 50px !important;
  margin-top: 25px !important;
}

/* Animated border ring */
.single-product .kp-preview-button::before {
  content: "";
  position: absolute;
  inset: calc(var(--btn-ring) * -1);
  padding: var(--btn-ring);
  border-radius: calc(var(--btn-radius) + var(--btn-ring));
  background: linear-gradient(
    120deg,
    #0a0c10 0%,
    #124b52 25%,
    var(--btn-light) 48%,
    #ffffff 50%,
    var(--btn-light) 52%,
    #124b52 75%,
    #0a0c10 100%
  );
  background-size: 320% 320%;
  background-position: -200% 50%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: -1;
  animation: kp-borderSweep var(--btn-speed) linear infinite;
  pointer-events: none;
}

/* Animation */
@keyframes kp-borderSweep {
  0%   { background-position: -200% 50%; }
  100% { background-position: 200% 50%; }
}

/* Icon sizing if you ever add an icon inside the preview button */
.single-product .kp-preview-button .elementor-button-icon,
.single-product .kp-preview-button .elementor-button-icon i,
.single-product .kp-preview-button .elementor-button-icon svg {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* Mobile: stack nicely */
@media (max-width: 768px) {
  .kp-atc-row {
    flex-direction: column;
    align-items: stretch;
  }

  .single-product .kp-preview-button,
  .single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

.single-product .woocommerce-variation-add-to-cart.kp-atc-wrapper .kp-atc-row .single_add_to_cart_button,
.single-product .woocommerce-variation-add-to-cart.kp-atc-wrapper .kp-atc-row .kp-preview-button {
  margin-top: 25px !important;
  margin-block-start: 0 !important;
  max-width: none !important;
  float: none !important;
}

/* Optional: keep them nicely aligned in the row */
.single-product .woocommerce-variation-add-to-cart.kp-atc-wrapper .kp-atc-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}









.price-old-ht {
  text-decoration: line-through;
  opacity: 0.7;
  margin-right: 6px;
  font-weight: 400;
}

.price-new-ht {
  font-weight: 600;
}





@media screen and (max-width: 1853px) {
  .value-finition-color > ul.iconic-was-swatches.iconic-was-swatches--single-line {
    display: flex !important;
    flex-wrap: wrap !important;
    white-space: normal !important; /* kill any nowrap */
    overflow: visible !important;
  }
  
  .value-finition-color .iconic-was-swatches__item {
    flex: 0 0 auto;
    display: inline-block !important;
    margin-bottom: 6px; /* optional, just to give rows some breathing room */
  }

  .iconic-was-swatches__item + .iconic-was-swatches__item--dummy {
    display: none !important;
  }
}


@media (max-width: 1750px) {
  .kp-atc-row {
    flex-direction: column;
    align-items: stretch;
  }

  .kp-quantity-wrapper {
    width: 100%;
  }

  .single-product .kp-preview-button,
  .single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}


@media screen and (max-width: 850px) {
  .kp-quantity-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}


/* Same style for quantity input on ALL devices */
input.input-text.qty.text {
    box-sizing: border-box;
    padding: 16px 8px;
    width: 80px !important;
    background: transparent !important;
    border: 1px solid #FFFFFF !important;
    border-radius: 33px !important;
    font-family: "Hanken Grotesk", sans-serif;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

/* Optional: align numbers to the right if you want like mobile */
input.input-text.qty.text {
    text-align: right;
}
