/* Target the exact span elements in the screenshot */
div[data-product-type="egg_gift"] .buttons-container span.add-same-product-action,
div[data-product-type="egg_gift"] .buttons-container span.remove-product-action {
    display: none !important;
}

/* General styles for the preview and accordions */
.preview-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
}
.personalize-div-accordion {
      width: 95%;
      margin: 8px 0px 8px 0px;
}


.personalize-div-accordion .option.color {
    display: flex; /* Aligns the color options horizontally */
    align-items: center; /* Vertically aligns the label and buttons */
}

.personalize-div-accordion .option {
  margin-top: 8px;
  margin-bottom: 8px;
}

.option {
    display: flex;
    width: 100%;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
}

.label-accordion {
    color: #171715;
    font-size: 16px;
    font-weight: 500;
}

input.child_name {
  font-size: 16px !important; /* Prevents zooming on iOS */
}

.color-option-selection {
    width: 24px; /* Circle width */
    height: 24px; /* Circle height to make it a square, will be rounded with border-radius */
    padding: 0; /* No padding */
    border-radius: 50%; /* Fully rounded to make it a circle */
    border: none; /* No border */
    background-color: #f8f8f8; /* Default background color, will be overridden by specific color */
    transition: background-color 0.3s; /* Smooth transition for background color */
    cursor: pointer; /* Indicates the buttons are clickable */
}

.color-options-selector-wrap {
    display: flex;
    width: 200px;
    justify-content: space-evenly;
}

/* Color-specific backgrounds */
.color-option-selection.blue { background-color: #6CCBDD; }
.color-option-selection.pink { background-color: #FAA2B7; }
.color-option-selection.yellow { background-color: #FBCF39; }
.color-option-selection.green { background-color: #4FC59B; }


/* For other colors, use their respective background colors for the outer ring */
.color-option-selection.blue.selected {
    box-shadow: 0 0 0 1px white, 0 0 0 3px #6CCBDD;
}

.color-option-selection.pink.selected {
    box-shadow: 0 0 0 1px white, 0 0 0 3px #FAA2B7; /* Replace with your red color */
}

/* For other colors, use their respective background colors for the outer ring */
.color-option-selection.green.selected {
    box-shadow: 0 0 0 1px white, 0 0 0 3px #4FC59B;
}

/* For other colors, use their respective background colors for the outer ring */
.color-option-selection.yellow.selected {
    box-shadow: 0 0 0 1px white, 0 0 0 3px #FBCF39;
}

/* Repeat for other colors */

    .side-cart-trigger {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 999; /* Ensure it stays above other elements */
    }

    .cart-counter-dot {
        position: absolute;
        top: -8px;
        right: -8px;
        width: 25px;
        height: 25px;
        background-color: #fffdf2;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: bold;
        color: black;
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    }

.child_name {
    border-radius: 4px;
    padding: 16px;
    border-color: #245946;
    border-style: solid;
    border-width: 1px;
    height: 30px;
    width: 200px;
    text-align: center;
    font-family: 'Hero';
    font-weight: 700;
    font-size: 16px;
    color: #171715;
    text-transform: uppercase;
}

/* Additional styling for when the product options are shown/hidden */
.product-header + .product-options {
    display: none; /* Hide product options initially */
}

.product-header.active + .product-options {
    display: block; /* Show product options when header is active */
}

.product-header {
    width: 95%;
    justify-content: flex-start;
    border-radius: 8px;

    width: 100%;
    background-color: #FEF5F7;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 16px;
    padding-right: 16px;

    display: flex;
    align-items: center;
    cursor: pointer;

}

/* Add a pointer cursor to all buttons */
button {
    cursor: pointer;
}

/* Styles for the toggle arrow */
.toggle-arrow-custom {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

/* Rotate the arrow when the accordion is active/open */
.product-header.active .toggle-arrow-custom {
    transform: rotate(180deg);
}


.product-options {
    width: 100%;
    display: none; /* Initially hidden */
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
    justify-content: center; /* Center the items horizontally */
}
.product-header.active + .product-options {
    display: flex !important; /* Force display flex when active */
    flex-direction: column;
}

.add-same-product, .remove-product {
    margin-right: 10px; /* Adjust spacing between buttons */
}
/* Place the buttons in a flex container if not already */
.buttons-container {
    display: flex;
    width: 100%;
    margin-top: 16px;
    justify-content: space-between; /* Adjust if you want them aligned differently */
}

.font-option, .engraving-option{
    border: 1px solid transparent; /* Default no visible border */
    margin: 5px 5px 0 5px; /* Top, right, bottom, and left */
    cursor: pointer;
    border-radius: 4px;
    padding: 2px;
}


.font-option.selected, .engraving-option.selected {
    border: 1px solid #171715; /* Black border when selected */
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
}

.selected-name {
    line-height: 1;
}


.add-same-product-action {
    cursor: pointer;
    color: #28A745; /* Example color */
    display: flex;
}

.remove-product-action {
    cursor: pointer;
    color: #DC3545; /* Example color */
    display: flex;
}

.add-same-product-action img, .remove-product-action img {
    margin-right: 8px;
}

.product-upsell-columns {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    padding: 20px;
    justify-content: space-evenly;
}

.product-upsell-item {
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 33%;
}

.product-upsell-item img {
    width: 100px; /* Fixed width for consistency */
    padding: 5px;
    border-radius: 8px;
    border-color: #E9E9E8;
    border-style: solid;
    border-width: 1px;
    height: auto;
    margin-bottom: 10px; /* Space between image and text */
}


.selected-products-text {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    padding: 0px 16px 0px 16px;
}


.productname_price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 16px;
}

.product_name {
    color: #171715;
    font-size: 17px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 4px;
}

.original-price {
    color: rgba(23,23,21,0.59);   
    font-size: 16px;
}
.discounted-price {
    font-size: 16px;
    color:#171715;
}

.toggle-arrow-custom {
    margin-left: auto;
}

.product_image-acr {
    width: 80px;
}


.preview-container img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.preview-container img.is-loaded {
    opacity: 1;
}


.add-to-cart-final-button {
    width: 100%;
    padding: 16px;
    color: #171715 !important;
    background-color: #F9BBCB;
    border-radius: 8px;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    box-shadow: -3px 3px 0 #DDDDDD;
    border-style: none;
    font-family: 'Hero';
    font-weight: 600;
}

.add-to-cart-final-button img{
    margin-left: 8px;   
}

.original-total {
    opacity: 0.5;
    margin-right: 8px;
}

.discounted-total {
    font-weight: 700;
}



/* style carousell*/
.reviews-div-sidecart {
    position: relative;
    overflow: hidden;
    height: 110px; 
    width: 100%;   
}

.carousel-container {
    height: 100%;
    margin: 0 auto; 
    overflow: hidden;
    position: relative;
}

.carousel-slide {
    display: flex;
    width: calc(200%); 
    animation: slide 20s linear infinite;
}

.carousel-slide img {
    height: 100px;
    width: auto;
    flex-shrink: 0; 
    margin: 0px 8px 0px 8px;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.reviews-div-sidecart::before, .reviews-div-sidecart::after {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: 50px;  
    z-index: 2;
}

.reviews-div-sidecart::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.reviews-div-sidecart::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}


/*end of carosell style*/
.side-cart-modal {
    overflow: scroll;
    scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for WebKit browsers */
.side-cart-modal::-webkit-scrollbar {
    display: none;
}



.name_color_selected {
    display: flex !important;
}



@media only screen and (max-width: 767px) {

}


@keyframes blink {
    0%, 100% {
        border-color: red;
    }
    50% {
        border-color: transparent;
    }
}

.highlight-animation {
    animation: blink 1s ease-in-out infinite;
}

.color-option-selection.out-of-stock {
    background-color: #ddd;
    border: 1px solid #aaa;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none !important;
}

.color-option-selection[data-tooltip] {
    position: relative;
    cursor: not-allowed;
}

.color-option-selection[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.color-option-selection[data-tooltip]::before {
    content: "";
    position: absolute;
    bottom: 75%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.75) transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.color-option-selection[data-tooltip]:hover::after,
.color-option-selection[data-tooltip]:hover::before {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(-5px);
}

/* Free product styling */
.personalize-div-accordion[data-is-free="true"] .product-header {
    background-color: #eafaf1; /* Light green background */
    border-left: 4px solid #4FC59B; /* Green accent border */
    position: relative;
    overflow: hidden;
}

/* Add a subtle pattern to the background */
.personalize-div-accordion[data-is-free="true"] .product-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(79, 197, 155, 0.1) 25%, transparent 25%), 
        linear-gradient(-45deg, rgba(79, 197, 155, 0.1) 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, rgba(79, 197, 155, 0.1) 75%), 
        linear-gradient(-45deg, transparent 75%, rgba(79, 197, 155, 0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.3;
    z-index: 0;
}

/* Make sure content is above the pattern */
.personalize-div-accordion[data-is-free="true"] .product-header > * {
    position: relative;
    z-index: 1;
}

/* Style the FREE GIFT text */
.personalize-div-accordion[data-is-free="true"] .product_name span {
    background-color: #4FC59B; /* Green background */
    color: white !important; /* White text */
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-left: 8px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

/* Free gift label animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Style the price display */
.personalize-div-accordion[data-is-free="true"] .discounted-price {
    color: #4FC59B !important; /* Green text */
    font-weight: bold;
}


/* Special styling for the free product image */
.personalize-div-accordion[data-is-free="true"] .product_image-acr {
    border: 2px solid #4FC59B;
    border-radius: 8px;
    padding: 2px;
    box-shadow: 0 0 8px rgba(79, 197, 155, 0.3);
}