

/* ============================= */
/* MODAL CSS START HERE*/
/* ============================= */

/* =========================
   MODAL WRAPPER
========================= */
.altanz-modal {
    display: none;

    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    background: rgba(0,0,0,0.6);

    align-items: center;
    justify-content: center;

    z-index: 999999 !important;

    transform: none !important;
}

/* OPEN STATE */
.altanz-modal.is-open {
    display: flex !important;
}


/* =========================
   MODAL CONTENT (IMPORTANT FIX)
========================= */
.altanz-modal-content {
    background: #fff;

    width: 420px;
    max-width: 92%;

    padding: 25px;
    border-radius: 8px;

    position: relative;

    /* 🔥 KEY FIX */
    max-height: 90vh;
    overflow-y: auto;
}





.altanz-close {
    position: absolute;
    right: 14px;
    top: 12px;
    font-size: 20px;
    cursor: pointer;
}


/*** ALTANZ PREMIUM MODAL ***/

/* MODAL CONTAINER */
.altanz-premium-modal {
    max-width: 660px;
    width: 92%;
    border-radius: 3px;
    padding: 40px 40px;
}

/* TITLE */
.altanz-modal-title {
    font-family: adobe-caslon-pro, Georgia, Times new roman, serif;
    font-size: 30px;
    color: #1a2a4a;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}


/* MAIN LAYOUT */
.altanz-modal-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    gap: 40px;
}

/* LEFT SIDE */
.altanz-modal-left {
    width: 100%;
    max-width: 310px;
}


.altanz-modal-right {
    width: 230px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;       /* horizontal center */
    justify-content: flex-start; /* IMPORTANT → aligns to top like Aspinal */
}

/* FIELD */
.altanz-field {
    margin-bottom: 25px;
}

.altanz-field label {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

/* INPUT */
.altanz-input-wrap {
    position: relative;
}


/* CHAR COUNT */
.altanz-char-count {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #888;
    pointer-events: none;
}


/* ============================= */
/* STYLE OPTIONS - ALTANZ SWATCH    */
/* ============================= */

/* CONTAINER */
.altanz-style-options {
    display: flex;
    gap: 18px;
}

/* ITEM (wrapper) */
.altanz-style {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
}

/* BOX (visual square) */
.altanz-box {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 1px; /* sharper like Aspinal */
    border: 1px solid transparent;
    box-sizing: border-box;
    overflow: hidden;
}


.altanz-style:hover .altanz-box {
    border: 1px solid rgba(26,42,74,0.35);
}

/* INNER GRADIENT LAYER */
.altanz-box::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 1px;
}


/* LABEL */
.altanz-label {
    font-size: 13px;
    color: #1a2a4a;
}

/* ACTIVE STATE */
.altanz-style.active .altanz-box {
    border: 1px solid #1a2a4a;
    
}



/* ============================= */
/* GRADIENTS (MOVED TO BOX INNER LAYER)      */
/* ============================= */

/* GOLD */
.altanz-style[data-value="Gold"] .altanz-box::before {
    background: linear-gradient(
        135deg,
        #caa63a 0%,
        #f6e7b8 18%,
        #ffffff 32%,
        #e6d08d 45%,
        #caa63a 60%,
        #b8962e 75%,
        #f3e2a0 90%,
        #caa63a 100%
    );
}




/* SILVER */
.altanz-style[data-value="Silver"] .altanz-box::before {
    background: linear-gradient(
        135deg,
        #c0c0c0 0%,
        #f2f2f2 25%,
        #c0c0c0 50%,
        #9e9e9e 75%,
        #f2f2f2 100%
    );
}

/* BLIND */
.altanz-style[data-value="Blind"] .altanz-box::before {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
}

/* PREVIEW BOX */

.altanz-preview-box {
    position: relative;
    width: 230px;              /* slightly bigger = premium feel */
    aspect-ratio: 1 / 1;      /* 🔥 makes it perfect square */
    border-radius: 3px 3px 0 0;      /* softer luxury edge */
    overflow: hidden;
    background: #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.altanz-preview-box::after {
    content: "";
    position: absolute;
    inset: 0;

    background: radial-gradient(
        ellipse at center,
        rgba(0,0,0,0.25) 0%,
        transparent 60%
    );

    pointer-events: none;
    mix-blend-mode: multiply;
}

/* IMAGE */

.altanz-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute; /* 🔥 KEY FIX */
    top: 0;
    left: 0;
}


.altanz-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;   /* 🔥 CENTER HORIZONTALLY */
    align-items: center;       /* 🔥 CENTER VERTICALLY */
    padding: 5px;
    text-align: center;
    
    /*
    mix-blend-mode: normal;
    transform: translateY(-5%);  subtle luxury adjustment */
}






.altanz-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.altanz-note {
    margin: 5px auto 0;   /* 👈 this centers the block */
    padding-top: 14px;
    border-top: 1px solid #e5e5e5;
    font-size: 12.5px;
    color: #8a8a8a;
    line-height: 1.6;
    max-width: 100%;      /* keeps it elegant */
    text-align: center;    /* 👈 centers the text */
}



/* ALTANZ – CONFIRM BUTTON FINAL */

/* BASE */
.altanz-confirm-btn {
    background: #0b1f4d;
    color: #fff;
    height: 38px;              /* exact control */
    padding: 0 26px;           /* only horizontal */
    border-radius: 4px;
    border: none;
    font-size: 13.5px;           /* slightly tighter */
    letter-spacing: 1.2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

/* DISABLED – FINAL FIX */

.altanz-confirm-btn:disabled {
    background:  #b8c1d1; 
    color: #ffffff;
    cursor: not-allowed;
    box-shadow: none;
}

/* ENABLED */
.altanz-confirm-btn:not(:disabled) {
    cursor: pointer;
}

/* HOVER */

.altanz-confirm-btn:not(:disabled):hover {
    background: #081a3d;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

/* STYLE BUTTON HOVER */

.altanz-style:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

/* CLICK */
.altanz-confirm-btn:not(:disabled):active {
    transform: translateY(0);
    box-shadow: none;
}

/* CAPTION STYLE */

.altanz-preview-caption {
    width: 100%;              /* match preview box */
    margin: 0 auto;
    background: #f4f3f1;;
    text-align: center;
    padding: 12px 0;
    font-size: 13px;
    color: #6b6b6b;
    border-radius: 0 0 3px 3px;
}






/* ===============================
🔘 CONFIRM BUTTON FEEDBACK
=============================== */

.altanz-confirm-btn {
    transition: 
        transform 0.12s ease,
        box-shadow 0.12s ease,
        opacity 0.12s ease;
}

.altanz-confirm-btn:active {
    transform: translateY(1px) scale(0.97);
    opacity: 0.9;
}


/* ===============================
🪟 MODAL FADE REFINEMENT
=============================== */

.altanz-modal-content {
    animation: altanzFadeIn 0.16s ease-out;
}

@keyframes altanzFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}








/* SECTION TITLES (NEW STRUCTURE) */
.altanz-section-title {
    font-family: adobe-caslon-pro, Georgia, serif;
    font-style: italic;
    font-size: 22px;
    color: #1a2a4a;
    margin-bottom: 6px;
    letter-spacing: 0.4px;
}

/* SECTION WRAP SPACING */
.altanz-section {
    margin-bottom: 18px;
}

/* MAKE LABELS SUBTLE (SECONDARY) */
.altanz-modal label {
    font-size: 13.5px;
    font-weight: 400;
    color: #7a7a7a;
}


/* INPUT + SELECT REFINEMENT + ALIGNMENT FIX */


/* FOOTER BREATHING SPACE */
.altanz-modal-footer {
    margin-top: 28px;
}

/* PRICE REFINEMENT */
.altanz-modal-footer .altanz-price {
    font-size: 20px;
    letter-spacing: 0.3px;
    margin-right: auto;   /* 🔥 KEY FIX */
    text-align: left;
}


/* DROPDOWN TEXT REFINEMENT */

.altanz-modal select {
    height: 38px; /* match input */
    padding: 0 8px;
    padding-right: 40px;
    font-size: 13.5px;
    font-weight: 400;
    color: #2f2f2f;
    border: 1px solid #e2e2e2 !important;
    border-radius: 0;
    background-color: #fff;
    box-sizing: border-box;
    
    /* 👇 SAME INNER DEPTH */
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.03) !important;
}


/* Vertical spacing between sections */

.altanz-modal .altanz-field {
    margin-bottom: 16px;
}

.altanz-input-wrap input {
    width: 100%;
    height: 38px; /* slightly tighter */
    padding: 0 40px 0 12px;
    font-size: 13.5px;
    border: 1px solid #e2e2e2 !important;
    border-radius: 0;
    background-color: #fff;
    box-sizing: border-box;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    /* 👇 THIS IS THE KEY */
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.03) !important;
}

.altanz-input-wrap input:focus {
    border-color: #1a2a4a;
    box-shadow: 0 0 0 2px rgba(26, 42, 74, 0.08);
    outline: none;
}

.altanz-input-wrap small {
    font-size: 12px;
    color: #8a8a8a;
    margin-top: 4px;
    display: block;
}


.altanz-input-wrap input::placeholder {
    position: relative;
    top: 1px;
}


#altanz-personalisation-modal .altanz-modal-footer {
    border-top: 1px solid #eee;
    padding-top: 16px;
}




/* =========================
   GIFT WRAP FINAL CLEAN 
========================= */

/* Giftwrap Modal size (match Personalisation) */
#altanz-giftwrap-modal .altanz-premium-modal {
    width: 660px;
    max-width: 95%;
    height: 660px;
    max-height: 90vh;
    padding: 30px 40px;
    overflow-y: auto;
}

/* Title */
#altanz-giftwrap-modal .altanz-modal-title {
    font-size: 34px;
    font-weight: 400;
    color: #0b1f4d;
    text-align: center;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

/* Divider */
#altanz-giftwrap-modal .altanz-modal-title:after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #eee;
    margin-top: 15px;
}

/* Body */
#altanz-giftwrap-modal .altanz-modal-body {
    display: block;
    padding: 5px 20px;
}

/* Image */
.altanz-giftwrap-image img {
    width: 100%;
    max-height: 170px;
    object-fit: cover;
    border-radius: 6px;
    margin: 5px 0 20px;
}

/* Description */
.altanz-giftwrap-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 18px;
    max-width: 92%;
}

/* Section spacing */
#altanz-giftwrap-modal .altanz-section {
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Message title */
.altanz-gift-title {
    font-style: italic;
    font-size: 20px;
    color: #0b1f4d;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* Textarea wrapper */
.altanz-textarea-wrap {
    position: relative;
}


/* Textarea */
.altanz-textarea-wrap textarea {
    width: 100%;
    height: 75px;
    min-height: 75px;   
    max-height: 150px;             /* prevent over expansion */
    padding: 10px 12px;
    line-height: 1.4;  
    border: 1px solid #ddd;
    font-size: 14px;
    resize: vertical;             /* ✅ enable like Aspinal */
    border-radius: 3px;
    box-sizing: border-box; 
}

/* Textarea focus */
.altanz-textarea-wrap textarea:focus {
    border-color: #1a2a4a;
    box-shadow: 0 0 0 2px rgba(26,42,74,0.08);
    outline: none;
}

/* Character counter (inside) */
.altanz-char-inside {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 12px;
    color: #999;
    pointer-events: none;
}

/* Footer */
#altanz-giftwrap-modal .altanz-modal-footer {
    border-top: 1px solid #eee;
    margin-top: 5px;
    padding-top: 12px;
}

/* Price */
#altanz-giftwrap-modal .altanz-price {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.4px;
}

/* Button */
#altanz-giftwrap-modal .altanz-confirm-btn {
    background: #0b1f4d;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.5px;
}

#altanz-giftwrap-modal .altanz-confirm-btn:hover {
    background: #081634;
}

/* Footer note */
#altanz-giftwrap-modal .altanz-note {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    line-height: 1.6;
}




