.zetpy-customizer-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zetpy-customizer-heading-lg {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.zetpy-customizer-heading-sm {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-align: center;
    display: none;
}

.zetpy-customizer-flex {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.zetpy-customizer-image {
    flex: 1 1 350px;
    min-width: 320px;
    min-height: 400px;
    display: flex;
    justify-content: center;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.zetpy-customizer-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Specific styles for layered images */
.zetpy-customizer-image #product-base-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.zetpy-customizer-image #product-label-overlay {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.2);
    transform-origin: center;
}

.zetpy-customizer-info {
    flex: 1 1 400px;
    min-width: 350px;
    max-width: 500px;
    padding: 40px 30px;
}

.zetpy-customizer-info-inner {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.zetpy-customizer-info-inner span {
    margin: 0 10px;
    color: #000000;
    font-size: 1.2rem;
    font-weight: 400;
}

.zetpy-customizer-info-inner-step {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #fff;
    color: #000000;
    font-size: 0.9rem;
    font-weight: 400;
    text-align: center;
    line-height: 21px;
    border: 2px solid #000000;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    cursor: pointer;
}

.zetpy-customizer-info-inner-step.active,
.zetpy-customizer-info-inner-step:hover {
    background-color: #000000;
    color: #fff;
    border-color: #000000;
}

.zetpy-customizer-info label {
    font-weight: 700 !important;
    color: #112244 !important;
    font-size: 1.5rem !important;
}

.zetpy-customizer-header {
    display: block;
}

.zetpy-customizer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.zetpy-customizer-heading {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.zetpy-customizer-price {
    color: #F00;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.zetpy-color-swatches {
    /* display: flex; */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    align-items: center;
    gap: 18px;
    margin: 30px 0 40px 0;
}
.zetpy-color-swatch {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid #222;
    cursor: pointer;
    display: inline-block;
    border-color: #eee;
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.zetpy-color-swatch-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #fff;
}
.zetpy-color-swatch.selected {
    box-shadow: 0 0 0 2px #223;
    border-color: #223;
}
.zetpy-customizer-next-btn {
    background: #FFC107;
    color: #112244;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 36px;
    border-radius: 30px;
    border: none;
}

.zetpy-engraving-preview-text {
    color: black;
    text-align: center;
    width: 100%;
}

/* Individual label positioning styles */
.label-a-main {
    position: absolute;
    font-size: 22px;
    top: 74%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.label-a-additional {
    position: absolute;
    top: 77%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    opacity: 0.8;
    z-index: 10;
}

.label-b-main {
    position: absolute;
    font-size: 20px;
    top: 72%;
    left: 49%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.label-b-additional {
    position: absolute;
    top: 84.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    opacity: 0.8;
    z-index: 10;
}

.label-c-main {
    position: absolute;
    font-size: 20px;
    top: 71%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.label-c-additional {
    position: absolute;
    top: 81%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    opacity: 0.8;
    z-index: 10;
}

.label-d-main {
    position: absolute;
    font-size: 20px;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.label-d-additional {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px; 
    top: 84%;
    opacity: 0.8;
    z-index: 10;
}

.label-e-main {
    position: absolute;
    top: 72%; 
    font-size: 25px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.label-e-additional {
    position: absolute;
    font-size: 15px;
    top: 81.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    z-index: 10;
}

/* Adjusted positioning for main text when additional text is present */
.label-a-main.with-additional {
    top: 73%;
}

.label-c-main.with-additional {
    top: 70%;
}

.label-e-main.with-additional {
    top: 71%;
}

.zetpy-customizer-description {
    margin-top: 30px;
    margin-bottom: 30px;
}

.zetpy-customizer-description img{
    width: 100% !important;
    height: auto !important;
    margin-bottom: 30px;
}

/* WAPF */

[type=button].rounded-pill {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

.fw-bold {
    font-weight: 700 !important;
}
.fs-16 {
    font-size: 16px !important;
}

.font-preview-btn {
    margin-right: 10px;
}

.d-none {
    display: none;
}


.d-block {
    display: block;
}

.me-2 {
    margin-right: 10px;
}
.mb-2 {
    margin-bottom: 10px;
}
.mb-5 {
    margin-bottom: 20px;
}

.mb-10 {
    margin-bottom: 30px;
}

.py-5 {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

.px-10 {
    padding-left: 50px !important;
    padding-right: 50px !important;
}

.rounded-pill {
    padding: 12px 30px;
    border-radius: 50px !important;
    cursor: pointer;
    background-color: #fff;
    border: 2px solid #FFC107;
    transition: all 0.2s ease-in-out;
    font-weight: 700 !important;
}

.rounded-pill:hover {
    background-color: #FFC107;
    border-color: #FFC107;
}

.wapf-input-text.rounded-pill,
.wapf-input-text.rounded-pill:hover,
.wapf-input-text.rounded-pill:focus {
    font-weight: normal !important;
    background-color: #ffffff !important;
    color: inherit !important;
}

.wapf-input-text.rounded-pill:focus {
    border-color: #FFC107 !important;
}

.rounded-pill.active {
    background-color: #FFC107 !important;
    border-color: #FFC107 !important;
}

@media (max-width: 900px) {
    .zetpy-customizer-info {
        padding: 30px 10px;
    }
}
@media (max-width: 700px) {
    .zetpy-customizer-heading-sm {
        font-family: 'AstonScript', serif !important;
        display: block;
    }
    .zetpy-customizer-heading-lg {
        display: none;
    }
    .zetpy-customizer-container {
        flex-direction: column;
        min-height: unset;
    }
    .zetpy-customizer-flex {
        flex-direction: column;
    }
    .zetpy-customizer-info, .zetpy-customizer-image {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        padding: 20px 5vw;
    }
    .zetpy-customizer-image img {
        max-width: 90vw;
    }
    
    /* Mobile responsive for horizontal image swatches */
    .image-swatches-container {
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
    }
    
    .image-swatch-item {
        flex: 0 0 auto;
    }
    
    .image-swatch-label {
        width: 60px;
        height: 60px;
        padding: 2px;
    }
    
    .image-swatch-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        border-radius: 8px;
    }
    
    .image-swatch-text {
        font-size: 9px;
        max-width: 40px;
    }
    
}

/* Image Swatches Styling - Horizontal Flow Layout */
.image-swatches-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 15px !important;
    flex-wrap: wrap !important;
}

/* Image swatches are hidden by default until personalization is enabled */
#tiffin-image-swatches {
    display: none !important;
}

/* When personalization is enabled, show image swatches */
#tiffin-image-swatches.show {
    display: block !important;
}

/* Hide all image swatches containers by default */
.image-swatches-container {
    display: none !important;
}

/* Show image swatches when personalization is enabled */
.image-swatches-container.show,
#tiffin-image-swatches.show .image-swatches-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

/* Ensure all image swatch elements are visible */
.image-swatch-item {
    display: flex !important;
    align-items: center;
}

.image-swatch-label {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-swatch-img {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    border-radius: 8px;
    object-position: center !important;
}



.image-swatch-label {
    cursor: pointer;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 4px;
    transition: all 0.2s ease-in-out;
    width: 80px;
    height: 80px;
}

.image-swatch-label:hover {
    border-color: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-swatch-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    object-position: center;
    border-radius: 3px;
    margin-bottom: 2px;
}

.image-swatch-text {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #333;
    line-height: 1.1;
    text-align: center;
    word-wrap: break-word;
    max-width: 60px;
}

/* Selected state for image swatches */
.wapf-input-radio:checked + .image-swatch-label {
    border-color: #FFC107;
    background-color: #fff8e1;
    box-shadow: 0 0 0 2px #FFC107;
}

/* Hide radio inputs */
.wapf-input-radio {
    display: none !important;
}

/* 3-Layer System Styling */
.zetpy-customizer-image {
    position: relative;
    overflow: hidden;
}

/* Layer Container Base Styles */
.layer-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Layer 1: Base Image (Fixed) - Bottom Layer */
.layer-1-base-image {
    z-index: 1;
    position: relative;
}

.layer-1-base-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Layer 2: Image Swatches Overlay - Middle Layer */
.layer-2-image-swatches {
    z-index: 2;
    display: none;
}

.layer-2-image-swatches img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out;
}

/* Layer 3: Text Overlay - Top Layer */
.layer-3-text-overlay {
    z-index: 3;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Ensure text overlays are above all other layers */
.zetpy-engraving-preview-text {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    text-align: center;
    width: 100%;
}

/* Layer Control Styling */
.layer-controls-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.layer-control-group {
    background: white;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.layer-control-group label {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #75767b !important;
    margin-bottom: 5px !important;
}

/* Range Input Styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FFC107;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FFC107;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* File Input Styling */
input[type="file"] {
    border: 2px dashed #ddd !important;
    background: #fafafa;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: #FFC107 !important;
    background: #fff8e1;
}

/* Button Styling for Layer Controls */
.layer-control-group button {
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.layer-control-group button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#reset-base-image:hover {
    background: #e9ecef !important;
}

#remove-label-image:hover {
    background: #ff5252 !important;
}