/* smartphones, portrait iPhone, portrait 480x320 phones (Android) */
@media only screen and (max-width: 320px) {
    button#personalize_btn {
        margin-top: 5px;
    }
}

/* smartphones, Android phones, landscape iPhone */
@media only screen and (max-width: 480px) {
    button#personalize_btn {
        margin-top: 5px;
    }
}

/* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */
@media only screen and (max-width: 600px) {
    button#personalize_btn {
        margin-top: 5px;
    }
}

/* tablet, landscape iPad, lo-res laptops ands desktops */
@media only screen and (min-width: 801px) and (max-width: 915px) {
    button#personalize_btn {
        margin-top: 5px;
    }
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:nth-child(n+2) img {
    display: none !important;
}

@media only screen and (max-width: 767px) {
    .product-template-default .zoomImg {
        display: none !important;
    }

    .product-template-default .custom-gallery-buttons.toggle-group {
        z-index: 777;
        position: relative;
        padding-top: 10px;
    }
}

body.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:nth-child(n+2) {
    margin-top: 0;
}

.woocommerce-product-gallery__wrapper iframe {
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    border: none;

    display: block;
    scrollbar-width: none;
}

/** Commerce Guru Theme bases Style **/
.packaging_button {
  padding : 0.4em 1em !important;
  color : white !important;
  border-radius: 3px;
  background : #716ef8 !important;
}

/* --------CSS for managing the iframe scroll issue in responsiveness-------- */
.product-details-wrapper iframe#packaging_iframe {
    width: 100% !important;
}

@media (max-width: 1440px) {
    .woocommerce-product-gallery__image {
        width: 630px !important;
    }

    body .product .product-details-wrapper .images {
        width: 60% !important;
    }

    body .product .product-details-wrapper .summary {
        width: 40% !important;
    }
}

@media (max-width: 1175px) {
    body .product .product-details-wrapper .summary {
        width: 35% !important;
    }
}

@media (max-width: 1100px) {
    .woocommerce-product-gallery__image {
        width: 100% !important;
    }

    body .product .product-details-wrapper .images {
        width: 100% !important;
    }

    body .product .product-details-wrapper .summary {
        width: 100% !important;
    }
}

/* -----2D/3D toggle button------------- */
.woocommerce-product-gallery .custom-gallery-buttons.toggle-group {
    margin-top: 10px;
}
 
.woocommerce-product-gallery  .custom-gallery-buttons button{
    background-color:transparent !important;
    border:1px solid #2b6cb0;
    color:#2b6cb0 !important;
}

.woocommerce-product-gallery  .custom-gallery-buttons button.active{
    background-color:#2b6cb0 !important;
    color:#fff!important;
}

#commercegurus-pdp-gallery-wrapper .custom-gallery-buttons button {
    background-color: transparent !important;
    border: 1px solid #716ef8;
    color: #716ef8 !important;
}

#commercegurus-pdp-gallery-wrapper .custom-gallery-buttons button.active {
    background-color: #716ef8 !important;
    color: #fff !important;
}
/** Commerce Guru Theme bases Style **/


/* Swatch Option Styles */
.designo-swatches-container {
    margin: 12px 0 20px 0;
    width: 100%;
}
.designo-swatches {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}
.designo-swatch-item {
    cursor: pointer !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 4px 16px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 60px !important;
    height: auto !important;
    user-select: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    outline: none !important;
}
.designo-swatch-item:hover {
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04) !important;
}
.designo-swatch-item.active {
    border-color: #2b6cb0 !important; /* plugin active blue */
    background: #f0f7ff !important;
    color: #2b6cb0 !important;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15) !important;
    font-weight: 600 !important;
}
.designo-swatch-item img {
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 4px !important;
    object-fit: cover !important;
}
