/* File: css/woocommerce-custom-enhancements.css */

/* Lightbox overlay/modal */
#wcce-quote-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}
#wcce-quote-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    z-index: 9999;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    border-radius: 6px;
}
#wcce-quote-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Separator line before custom buttons */
.wcce-button-separator {
    border-top: 1px solid rgb(232, 232, 225);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Container for the two buttons */
.wcce-ask-quote-wrapper {}
.wcce-quote-buttons {
    display: flex;
    gap: 4px;
}

/* Both buttons take 50% width */
.wcce-quote-buttons .button {
    width: 50%;
}

/* "Custom quote request" button styling */
#wcce-ask-quote-button,
.wcce-quote-btn {
    background-color: #28bfcc;
    color: #fff;
    text-align: center;
    transition: all .55s cubic-bezier(0.19, 1, 0.22, 1);
    margin-left: 8px;
}
#wcce-ask-quote-button:hover,
.wcce-quote-btn:hover {
    background-color: #17a0ac;
}

/* Universal button layout for all screen sizes */
.woocommerce-variation-add-to-cart {
    display: flow-root;
    margin-top: 15px;
}

.woocommerce-variation-add-to-cart .quantity {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 0;
    vertical-align: top;
}

.single_add_to_cart_button {
    display: inline-block;
    margin-bottom: 0;
    vertical-align: top;
}

#wcce-ask-quote-button,
.wcce-quote-btn {
    width: -webkit-fill-available;
    width: -moz-available;
    width: fill-available;
    margin-left: 0;
    margin-top: 12px;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 4px;
    display: block;
}

#wcce-contact-button,
.wcce-contact-btn {
    width: -webkit-fill-available;
    width: -moz-available;
    width: fill-available;
    margin-left: 0;
    margin-top: 8px;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 4px;
    display: block;
}

/* “Contact us” button styling */
#wcce-contact-button,
.wcce-contact-btn {
    background-color: #fff;
    border: 1.5px solid #28bfcc;
    color: #28bfcc;
    text-align: center;
    transition: all .55s cubic-bezier(0.19, 1, 0.22, 1);
}
#wcce-contact-button:hover,
.wcce-contact-btn:hover {
    background-color: #eafdff;
    border: 1.5px solid #28bfcc;
    color: #28bfcc;
}

/* In-table “Warehouse” button styling */
.wcce-button-container {
    display: flex;
    gap: 4px;
}
.wcce-attr-button {
    border: 1.5px solid #c1c1c1;
    background-color: #fff;
    color: #c1c1c1;
    cursor: pointer;
    padding: 0px 6px;
    border-radius: 4px;
    transition: all .55s cubic-bezier(0.19, 1, 0.22, 1);
}
.wcce-attr-button:hover {
    border: 1.5px solid #999999;
    color: #999999;
}
.wcce-attr-button.active {
    border-color: #28bfcc;
    color: #28bfcc;
    background-color: #fff;
}

/* Gallery slider styling */
.woocommerce-product-gallery .wcce-gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 100%;
    margin: 0 30px; /* Space for arrows */
}
.woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}
.woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 auto;
    box-sizing: border-box;
    margin-right: 4px;
    padding: 4px; /* Thumbnail padding */
}
.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    display: block;
}
/* Highlight outline on active thumbnail */
.woocommerce-product-gallery .flex-control-thumbs li.flex-active img {
    outline: 2px solid #28bfcc !important;
}

/* Arrows for gallery slider: two-rectangle vectorial style */
.wcce-gallery-arrow {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}
.wcce-gallery-prev {
    left: -23px;
}
.wcce-gallery-next {
    right: -23px;
}
.wcce-gallery-arrow:before,
.wcce-gallery-arrow:after {
    content: "";
    position: absolute;
    width: 2px;
    height: 12px;
    background: #2C2C2C;
    transition: all .55s cubic-bezier(0.19, 1, 0.22, 1);
}
.wcce-gallery-arrow:hover:before,
.wcce-gallery-arrow:hover:after {
    background: #17a0ac;
}
.wcce-gallery-prev:before {
    left: 10px;
    top: 0px;
    transform: rotate(45deg);
}
.wcce-gallery-prev:after {
    left: 10px;
    top: 7px;
    transform: rotate(-45deg);
}
.wcce-gallery-next:before {
    right: 10px;
    top: 0px;
    transform: rotate(-45deg);
}
.wcce-gallery-next:after {
    right: 10px;
    top: 7px;
    transform: rotate(45deg);
}
.wcce-gallery-arrow.disabled:before,
.wcce-gallery-arrow.disabled:after {
    background: #a9a9a9;
    cursor: default;
}

/* Admin panel fields */
.wcce-field-label {
    display: block;
    margin-bottom: 6px;
}
.wcce-text-input {
    width: 300px;
    max-width: 100%;
    padding: 4px;
}
.wcce-textarea {
    width: 100%;
    max-width: 100%;
    resize: vertical;
}
.wcce-description {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* === stile link menu one-page (look WooCommerce) === */
.wcce-onepage-tabs a{
    display:inline-block;
    padding:.5em 0;
    font-weight:700;
    color:#515151;
    text-decoration:none;

    /* linea indicatrice sotto il link */
    border-bottom:5px solid transparent;
    transition:all .55s cubic-bezier(0.19,1,0.22,1);
}
.wcce-onepage-tabs a:hover,
.wcce-onepage-tabs a.is-active{
    border-bottom-color:#28bfcc;
}






/* ─── Variation Highlight Boxes ─── */
.wcce-variation-highlight-wrapper {
    padding-bottom: 40px;
        margin-top: 80px;
}

#wcce-variation-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.wcce-variation-box {
  /* 
   * flex: grow shrink basis 
   * - grow so that if there are fewer items they expand to fill the row
   * - shrink so that on smaller screens they wrap
   * - basis 0 so width = (container – gaps) / item-count
   */
  flex: 1 1 0;
  min-width: 0;    /* allow shrinking below content width */
  padding: 12px;
  background: #fff;
  border: 1px solid #28bfcc;
  border-radius: 4px;
  text-align: center;
  transition: all .3s ease;
}

.wcce-variation-box:hover {
  background: #f8fdfd;
}




/* ─── Remove bullets from variation-box attribute lists ─── */
.wcce-variation-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.wcce-variation-box ul li {
    margin: 0;
    padding: 0;
}
