/* CSS Variables - inherits --nav-bg, --gift-card-accent, --page-bg from style.css */
:root {
    --wedding-bg: linear-gradient(180deg, #faf8f5 0%, #f5f1eb 100%);
    --wedding-bg-solid: #f5f1eb;
    /* unify flat color to avoid gradient seam */
}

/* Base HTML and Body Styles */
html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    font-family: 'Nanum Myeongjo', serif;
    background: var(--page-bg);
    min-height: 100vh;
    /* Fallback for older browsers */
    min-height: 100dvh;
    /* Dynamic viewport height for iOS Safari */
    text-align: center;
}

/* Universal box-sizing reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Coral background block — sits behind nav + upper hero frame */
.coral-bg-block {
    display: none;
}

/* Hero area: framed photo + name card + welcome + grid */
.hero-area {
    position: relative;
    z-index: 1;
    padding-top: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

@media (min-width: 1025px) {
    .hero-area {
        padding-top: 80px;
        /* begin the colour band directly below the desktop header */
    }

    .hero-area.hero-area--full-edge {
        padding-top: 0;
    }
}

.hero-frame-wrap {
    width: 368px;
    height: 421px;
    flex-shrink: 0;
}

.hero-frame-wrap svg {
    display: block;
    width: 100%;
    height: 100%;
}

.name-card-wrap {
    position: relative;
    width: 300px;
    height: 77px;
    margin: 14px auto 0;
}

.name-card-wrap svg {
    display: block;
    width: 100%;
    height: 100%;
}

.name-card-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 38px;
    text-align: center;
}

.name-card-title {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #561023;
}

.name-card-subtitle {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 0.55rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(86, 16, 35, 0.62);
    margin-top: 4px;
}


.sky-wrapper {
    position: relative;
    z-index: 2;
    padding-top: 0;
    margin-top: 0;
    width: 100%;
}

body.registry-page .content-wrapper,
body.registry-page .sky-wrapper,
body.registry-page .welcome-section,
body.registry-page .hero-area {
    background: transparent;
}

/* The shared hero renderer paints the partial colour band. */
body.registry-page #hero.hero {
    background: var(--page-bg) !important;
}

/* Welcome Message Section */
.welcome-section {
    padding: 28px 20px 0;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.welcome-message {
    max-width: 700px;
    margin: 0 auto;
}

.welcome-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: calc(0.96rem + 2pt);
    line-height: 1.72;
    color: color-mix(in oklab, #561023 70%, #1e1e1e);
    font-weight: 400;
    letter-spacing: 0;
    margin: 0;
    white-space: pre-line;
}

/* Smooth transition from hero to gift cards */
.sky-wrapper {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 1024px) {
    .welcome-section {
        padding: 28px 20px 0;
    }

    .welcome-text {
        font-size: calc(0.96rem + 2pt);
        line-height: 1.72;
    }

    .gift-list {
        padding: 40px 20px;
    }

    .sky-wrapper {
        padding-top: 0 !important;
    }

    body.registry-page .sky-wrapper {
        background: transparent;
    }
}

/* Registry Page Specific Styles */

body.registry-page .content-wrapper {
    position: relative;
    height: auto !important;
    overflow-y: visible !important;
    min-height: 100vh;
    /* Fallback for older browsers */
    min-height: 100dvh;
    /* Dynamic viewport height for iOS Safari */
}

/* The wishlist canvas stays cream below the hero's partial colour band. */
body.registry-page,
body.registry-page .content-wrapper,
body.registry-page .hero-area,
body.registry-page .sky-wrapper,
body.registry-page .gift-list {
    background-color: var(--page-bg);
}

/* Gift card v2 — shared styles in static/css/gift_card_v2.css */

/* Guest: title + price only (no View/Buy pill row) */
body.registry-page .card-title-price-container {
    min-height: calc(2.4em + 1.2em);
}

/* Login prompt — shared reserve/contribution visual language */
.login-prompt-popup {
    display: none;
    position: fixed;
    inset: 0;
    padding: 24px;
    background: rgba(20, 6, 10, 0.46);
    z-index: 1300;
    align-items: center;
    justify-content: center;
    font-family: 'Nanum Myeongjo', serif;
}

.login-prompt-content {
    position: relative;
    width: min(460px, 100%);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    padding: 38px 34px 32px;
    box-sizing: border-box;
    border: 1.5px solid var(--maroon, #561023);
    border-radius: 0px;
    background: var(--cream, #ede6dc);
    box-shadow: 6px 4px 0 0 var(--coral), -8px -6px 20px rgb(8 8 8 / 20%) !important;
    color: var(--maroon, #561023);
    text-align: left;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.login-prompt-handle {
    display: none;
}

.login-prompt-eyebrow {
    display: block;
    margin-bottom: 14px;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(86, 16, 35, 0.58);
}

.login-prompt-icon {
    display: flex;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    align-items: center;
    justify-content: center;
    background: #d5c800;
    color: #561023;
    font-size: 17px;
}

.login-prompt-content h2 {
    margin: 0 36px 12px 0;
    font-family: 'Nanum Myeongjo', Georgia, serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #561023;
}

.login-prompt-content p {
    margin: 0 0 26px;
    max-width: 38ch;
    font-size: 15px;
    color: rgba(86, 16, 35, 0.68);
    line-height: 1.55;
}

.login-prompt-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-prompt-button,
.login-prompt-auth-option {
    min-height: 54px;
    padding: 14px 20px;
    border-radius: 0px;
    border: none;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Nanum Myeongjo', serif;
    background: #561023;
    color: #ede6dc;
    transition: background 150ms ease;
}

.login-prompt-auth-option {
    position: relative;
    border: 1.5px solid #561023;
    background: transparent;
    color: #561023;
}

.login-prompt-auth-option:hover,
.login-prompt-auth-option.is-expanded {
    background: rgba(86, 16, 35, 0.06);
}

.login-prompt-option-chevron {
    position: absolute;
    right: 18px;
    font-size: 11px;
    transition: transform 160ms ease;
}

.login-prompt-auth-option.is-expanded .login-prompt-option-chevron {
    transform: rotate(180deg);
}

.login-prompt-button:hover {
    background: #3f0c1a;
}

.login-prompt-button:disabled,
.login-prompt-auth-option:disabled {
    opacity: 0.68;
    cursor: wait;
}

.login-prompt-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0;
    color: rgba(86, 16, 35, 0.48);
    font-family: 'Nanum Myeongjo', serif;
    font-size: 11px;
    text-transform: uppercase;
}

.login-prompt-divider::before,
.login-prompt-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(86, 16, 35, 0.16);
}

.login-prompt-email-panel {
    padding: 18px;
    border: 1px solid rgba(86, 16, 35, 0.16);
    background: rgba(255, 252, 246, 0.48);
}

.login-prompt-phone-row {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.login-prompt-phone-cc {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(86, 16, 35, 0.25);
    border-right: none;
    background: rgba(255, 255, 255, 0.7);
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 13px;
    color: #561023;
}

.login-prompt-phone-row input {
    border-left: none !important;
}

.login-prompt-otp-note {
    margin: 0 0 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: rgba(86, 16, 35, 0.72);
}

.login-prompt-email-panel[hidden],
.login-prompt-form[hidden],
.login-prompt-message[hidden] {
    display: none;
}

.login-prompt-form {
    display: grid;
    gap: 13px;
}

.login-prompt-field {
    display: grid;
    gap: 6px;
}

.login-prompt-field label {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(86, 16, 35, 0.72);
}

.login-prompt-field input {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 13px;
    box-sizing: border-box;
    border: 1px solid rgba(86, 16, 35, 0.25);
    border-radius: 0px;
    outline: none;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #561023;
    font: 14px 'DM Sans', sans-serif;
}

.login-prompt-field input:focus {
    border-color: #561023;
    box-shadow: 0 0 0 2px rgba(86, 16, 35, 0.1);
}

.login-prompt-field input::placeholder {
    color: rgba(86, 16, 35, 0.4);
}

.login-prompt-form-submit {
    min-height: 48px;
    margin-top: 3px;
    padding: 12px 18px;
    border: 0;
    border-radius: 0px;
    background: #561023;
    color: #ede6dc;
    font: 600 14px 'DM Sans', sans-serif;
    cursor: pointer;
}

.login-prompt-form-submit:disabled,
.login-prompt-mode-switch:disabled {
    opacity: 0.68;
    cursor: wait;
}

.login-prompt-mode-switch {
    display: block;
    width: 100%;
    margin-top: 13px;
    padding: 4px;
    border: 0;
    background: transparent;
    color: #561023;
    font: 600 13px 'DM Sans', sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.login-prompt-message {
    margin-bottom: 13px;
    padding: 10px 12px;
    border-left: 3px solid #b53a4b;
    background: rgba(181, 58, 75, 0.08);
    color: #7d1e30;
    font-size: 13px;
    line-height: 1.4;
}

.login-prompt-message.is-success {
    border-left-color: #486331;
    background: rgba(72, 99, 49, 0.09);
    color: #334b21;
}

.login-prompt-browse-link {
    min-height: 48px;
    border: 1.5px solid #561023;
    border-radius: 0px;
    background: transparent;
    color: #561023;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.login-prompt-browse-link:hover {
    background: rgba(86, 16, 35, 0.06);
}

.login-prompt-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(86, 16, 35, 0.52);
    font-family: 'Nanum Myeongjo', serif;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.login-prompt-close:hover {
    color: #561023;
}

@media (max-width: 768px) {
    .login-prompt-popup {
        padding: 0;
        align-items: flex-end;
    }

    .login-prompt-content {
        width: 100%;
        max-width: none;
        max-height: calc(100vh - 12px);
        max-height: calc(100dvh - 12px);
        padding: 42px 20px max(22px, env(safe-area-inset-bottom, 22px));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.22);
        animation: loginPromptSheetIn 280ms cubic-bezier(.22, 1, .36, 1) both;
    }

    .login-prompt-handle {
        position: absolute;
        top: 10px;
        left: 50%;
        display: block;
        width: 42px;
        height: 4px;
        padding: 0;
        transform: translateX(-50%);
        border: 0;
        border-radius: 0px;
        background: rgba(86, 16, 35, 0.2);
    }

    .login-prompt-content h2 {
        font-size: 28px;
    }

    .login-prompt-content p {
        margin-bottom: 22px;
    }

    .login-prompt-email-panel {
        padding: 16px;
    }
}

@keyframes loginPromptSheetIn {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-prompt-content {
        animation: none !important;
    }
}

/* Mobile Responsive Styles — gift card base rules in gift_card_v2.css */
@media screen and (max-width: 1024px) {
    body.registry-page .card-title-price-container {
        min-height: calc(2.4em + 1.2em);
        height: auto;
    }
}

/* Hide progress bar on completed (reserved/gifted) cards in main grid */
.gift-card--completed .card-progress-container {
    display: none;
}

/* View Contribution Modal Styles */
.view-contribution-modal .modal-content {
    max-width: 450px;
    padding: 30px;
    border-radius: 0px;
}

.view-contrib-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.view-contrib-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 0px;
    border: 1px solid #eee;
}

.view-contrib-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.view-contrib-amount {
    font-weight: 600;
    color: #324848;
    font-size: 18px;
}

.view-contrib-date {
    font-size: 12px;
    color: #888;
}

.view-contrib-note {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    font-style: italic;
}

.view-contrib-footer {
    text-align: center;
    margin-top: 10px;
}

.button-secondary {
    background: #e3dcd6;
    color: #262e2e;
    border: none;
    padding: 10px 24px;
    border-radius: 0px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.button-secondary:hover {
    background: #d4c5b8;
}

/* Personal contribution action — heart fixed to the image corner. */
.gift-card-view-contrib-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 0px;
    background: var(--hzl-pink, #e163c3);
    border: none;
    color: #EDE6DC;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 20;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    opacity: 1;
    visibility: visible;
}

.gift-card-view-contrib-btn i {
    color: #EDE6DC;
    font-size: 14px;
}

.gift-card:hover .gift-card-view-contrib-btn,
.gift-card-image:hover .gift-card-view-contrib-btn {
    /* No change needed on hover as it's already visible */
    opacity: 1;
    visibility: visible;
}

.gift-card-view-contrib-btn:hover {
    background: color-mix(in oklab, var(--hzl-pink, #e163c3) 85%, black);
    color: #EDE6DC;
}

.gift-card-view-contrib-btn:hover i {
    color: #EDE6DC;
}

/* Mobile visibility for contribution heart */
@media (max-width: 1024px) {
    .gift-card-view-contrib-btn {
        opacity: 1 !important;
        visibility: visible !important;
        width: 32px;
        height: 32px;
        top: 0;
        right: 0;
    }
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.button {
    min-width: 140px;
    display: inline-block;
    padding: 6px 16px;
    margin: 6px 8px 0 0;
    border-radius: 0px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1.5px solid #ddd;
    background-color: white;
    color: black;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
}

.button:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}


/* Reserve Button */
.button-reserve {
    min-width: 140px;
    display: inline-block;
    padding: 6px 16px;
    margin: 6px 8px 0 0;
    border-radius: 0px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1.5px solid #ddd;
    background-color: white;
    color: black;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
}

.button-reserve:hover {
    background: #324848;
    color: white;
}

.button-disabled {
    background-color: #d3d3d3;
    color: #666;
    cursor: not-allowed;
    min-width: 140px;
    display: inline-block;
    padding: 6px 16px;
    margin: 6px 8px 0 0;
    border-radius: 0px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1.5px solid #ddd;
    transition: all 0.2s ease-in-out;
    text-align: center;
    width: auto;
    /* Allow button to size naturally */
}

/* Modal Content - Desktop */
.modal-content .button-contribute {
    float: none !important;
    margin: 20px 0 8px 0;
    width: auto;
    padding: 8px 16px;
    border: 1.5px solid #324848;
    background-color: white;
    color: #324848;
    border-radius: 0px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

.modal-content .button-contribute:hover {
    background: #324848;
    color: white;
}

/* Disabled button in contribution modal only */
#contributionModal .button-contribute.button-disabled,
#contributionModal .button-contribute:disabled {
    background-color: #d3d3d3 !important;
    color: #666 !important;
    cursor: not-allowed !important;
    border-color: #ccc !important;
    opacity: 0.6;
}

#contributionModal .button-contribute.button-disabled:hover,
#contributionModal .button-contribute:disabled:hover {
    background-color: #d3d3d3 !important;
    color: #666 !important;
}

/* ============================================
   GENERAL MODAL STYLES
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    animation: none !important;
    transition: none !important;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border-radius: 0px;
    width: 40%;
    text-align: center;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content input {
    width: 80%;
    padding: 8px;
    margin: 10px 0;
}

.modal-content .button {
    margin-top: 10px;
    border: 1px solid #cccccc;
}

.modal-content button:hover {
    background: #324848;
}

/* Shared styles for all modal textareas */
.modal textarea,
textarea.modal-textbox {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 0px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.4;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* On focus - when you have selected the text box */
.modal textarea:focus,
textarea.modal-textbox:focus {
    outline: none;
    border-color: #324848;
    box-shadow: 0 0 6px rgba(50, 72, 72, 0.4);
}

/* Placeholder styling */
.modal textarea::placeholder,
textarea.modal-textbox::placeholder {
    color: #888;
    font-style: italic;
}

.modal-content .explanation-text {
    margin-top: 10px;
    font-size: 14px;
    /* Makes text smaller than default */
    line-height: 1.4;
    /* Improves readability of smaller text */
    margin-bottom: 20px;
    /* Adds space below the text */
    color: #666;
    /* Optional: lighter color for secondary text */
    display: block;
    /* Ensures the text takes up its own block */
    line-height: 1.4;
    text-align: center;
}

/* Updated currency input styling with symbol inside */
.currency-input {
    position: relative;
    display: flex;
    width: 100%;
    margin: 20px 0;
}

.currency-input .currency-symbol {
    position: absolute;
    left: 12px;
    /* Fixed distance from the left edge of input */
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #555;
    pointer-events: none;
    /* Allow clicking through the symbol */
    z-index: 2;
    white-space: nowrap;
    /* Prevents the symbol from wrapping */
}

.currency-input input {
    height: 40px;
    width: 30%;
    border-radius: 0px;
    border: 1px solid #ccc;
    font-size: 1rem;
    box-sizing: border-box;
    min-width: 100px;
    text-indent: 20px;
}

/* Add mobile-specific adjustments */
@media screen and (max-width: 1024px) {
    .currency-input .currency-symbol {
        left: 12px;
        /* Keep consistent on mobile */
    }

    .currency-input input {
        font-size: 16px;
        /* Prevent iOS zoom */
        padding-left: 30px;
        /* Keep consistent padding */
    }
}

/* Mobile currency selector and user badge styles */
@media screen and (max-width: 1024px) {
    .currency-selector {
        margin-right: 10px;
        position: relative;
        display: inline-flex;
        align-items: center;
    }

    /* Hide the select dropdown visually on mobile, but keep it functional */
    .currency-selector select {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
        z-index: 2;
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
    }

    /* Show the currency display on mobile */
    .currency-display {
        display: inline-block;
        background-color: #f9f9f9;
        border: 1px solid #ddd;
        border-radius: 0px;
        padding: 8px 12px;
        font-size: 18px;
        font-weight: 500;
        color: #324848;
        min-width: 45px;
        text-align: center;
        pointer-events: none;
        z-index: 1;
    }

    /* Add dropdown arrow indicator */
    .currency-selector::after {
        content: '';
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        width: 0;
        height: 0;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 5px solid #324848;
        z-index: 1;
    }

    .user-badge {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

/* ============================================
   TUTORIAL MODAL STYLES
   ============================================ */

/* Tutorial Modals - Fixed Height Only */
.tutorial-modal .modal-content {
    height: 400px;
    width: 400px;
    position: relative;
    animation: none !important;
    transition: none !important;
}

img.tutorial-illust {
    height: 200px;
    /* desktop max width  */
    width: auto;
    display: block;
    margin: 0 auto 22px;
    /* center + gap below */
}

/* Tutorial illustration link */
a>img.tutorial-illust-link {
    cursor: pointer;
    transition: opacity 0.2s ease;
    height: 200px;
    /* desktop max width  */
    width: auto;
    display: block;
    margin: 0 auto 22px;
}

a>img.tutorial-illust-link:hover {
    opacity: 0.85;
}

/* Close button positioning for tutorial modals */
.tutorial-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    float: none;
    z-index: 11;
}

.tutorial-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

/* Tutorial indicator dots */
.indicator-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 0px;
    background-color: #d0ccc6;
    /* empty/inactive circle */
    border: 2px solid #d0ccc6;
    margin: 0 6px;
    transition: all 0.2s ease;
}

.indicator-dot.active {
    background-color: #262e2e;
    /* filled/active circle */
    border-color: #262e2e;
}

.tutorial-login {
    background: #324848;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.tutorial-login:hover {
    background: #2a3a3a;
    transform: scale(1.05);
}

.tutorial-close {
    min-width: 140px;
    display: inline-block;
    padding: 6px 16px;
    margin: 0;
    border-radius: 0px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1.5px solid #ddd;
    background-color: white;
    color: black;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
}

.tutorial-close:hover {
    background-color: #c43434 !important;
    color: white;
}

/* Tutorial chevron navigation */
.tutorial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 0px;
    background: #e3dcd6;
    color: #262e2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.tutorial-prev {
    left: 16px;
}

.tutorial-next {
    right: 16px;
}

.tutorial-nav[disabled],
.tutorial-nav:disabled {
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: #d0ccc6 !important;
    color: #999 !important;
    min-width: auto !important;
    border-radius: 0px;
    padding: 0 !important;
}

.tutorial-nav[disabled]:hover,
.tutorial-nav:disabled:hover {
    width: 36px !important;
    height: 36px !important;
    opacity: 0.5 !important;
    background: #d0ccc6 !important;
    transform: translateY(-50%) !important;
}

.tutorial-nav:hover {
    background: #324848;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.tutorial-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Final slide CTA container */
.tutorial-final-cta {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

/* WhatsApp Float Button */
.hiw-float i {
    font-size: 40px;
    /* Adjust size (currently defaults to ~16px) */
    color: white;
    /* Change color - try #f2efec, var(--gift-card-accent), or any brand color */
}

.hiw-float:hover i {
    color: #f2efec;
    /* Slightly different on hover for effect */
}

/* Add this style to ensure the container adapts to the icon size */
.hiw-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: var(--gift-card-accent);
    color: white;
    border-radius: 0px;
    padding: 3px 3px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Nanum Myeongjo', serif;
    width: fit-content;
    /* Makes container fit its content */
    box-sizing: border-box;
    /* Ensures padding doesn't affect overall width */
}

/* For mobile devices */
@media screen and (max-width: 1023px) {
    .hiw-float i {
        font-size: 40px;
        /* Adjust size (currently defaults to ~16px) */
        color: white;
        /* Change color - try #f2efec, var(--gift-card-accent), or any brand color */
    }

    .hiw-float:hover i {
        color: #f2efec;
        /* Slightly different on hover for effect */
    }

    /* Add this style to ensure the container adapts to the icon size */
    .hiw-float {
        position: fixed;
        bottom: 40px;
        right: 40px;
        background-color: var(--gift-card-accent);
        color: white;
        border-radius: 0px;
        padding: 3px 3px;
        display: flex;
        align-items: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        transition: all 0.3s ease;
        text-decoration: none;
        font-family: 'Nanum Myeongjo', serif;
        width: fit-content;
        /* Makes container fit its content */
        box-sizing: border-box;
        /* Ensures padding doesn't affect overall width */
    }

    /* Tutorial Modal Mobile Styles */
    .tutorial-modal .modal-content {
        height: auto;
        /* Let content determine height */
        min-height: 450px;
        /* Minimum height */
        max-height: 85vh;
        /* Don't exceed viewport */
        width: calc(100% - 40px);
        /* Full width minus margins */
        max-width: 380px;
        /* Cap maximum width */
        margin-top: 100px;
        /* Center with top spacing */
        padding: 30px 20px 20px;
        /* More top padding for close button */
        overflow-y: auto;
        /* Scroll if content too tall */
        position: relative;
        border-radius: 0px;
    }

    /* Adjust image size for mobile */
    img.tutorial-illust {
        height: 160px;
        max-width: 100%;
        margin: 50px auto 50px;
    }

    a>img.tutorial-illust-link {
        height: 160px;
        max-width: 100%;
        margin: 50px auto 50px;
    }

    /* Close button positioning */
    .tutorial-modal .modal-close {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 28px;
        z-index: 11;
    }

    /* Text spacing */
    .tutorial-modal .modal-content p {
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 1.5;
    }

    /* Indicator dots */
    .tutorial-indicator {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    .indicator-dot {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    /* Chevron navigation */
    .tutorial-nav {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .tutorial-prev {
        left: 8px;
    }

    .tutorial-next {
        right: 8px;
    }

    .tutorial-nav[disabled],
    .tutorial-nav:disabled {
        width: 36px !important;
        height: 36px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 0.5 !important;
        cursor: not-allowed !important;
        background: #d0ccc6 !important;
        color: #999 !important;
        min-width: auto !important;
        border-radius: 0px;
        padding: 0 !important;
    }
}

/* ============================================
   CUSTOMIZE URL MODAL (Delete Wishlist Confirmation Modal)
   ============================================ */

/* Delete Wishlist Confirmation Modal */
.delete-wishlist-confirmation-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: transparent !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 10000 !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.delete-wishlist-confirmation-modal.show {
    display: flex;
}

.delete-wishlist-confirmation-popup {
    position: relative;
    overflow: hidden;
    background-color: var(--cream, #ede6dc);
    border: 0px !important;
    border-radius: 0px !important;
    padding: 28px 24px 24px;
    box-shadow: 6px 4px 0 0 var(--coral), -8px -6px 20px rgb(8 8 8 / 20%) !important;
    font-family: 'Nanum Myeongjo', Georgia, serif;
    box-sizing: border-box;
}

.delete-wishlist-confirmation-popup h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--maroon, #561023);
    letter-spacing: -0.01em;
}

.delete-wishlist-confirmation-popup p {
    margin: 0 0 20px 0;
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    color: color-mix(in oklab, var(--maroon, #561023) 80%, transparent);
    line-height: 1.45;
}

.delete-wishlist-confirmation-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.delete-wishlist-confirmation-button {
    padding: 8px 20px;
    border-radius: 0px !important;
    border: 1.5px solid #3f0c1a;
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 2.5px 2.5px 0 0 #3f0c1a;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.delete-wishlist-confirmation-button.yes {
    background-color: var(--maroon, #561023);
    color: #ffffff;
}

.delete-wishlist-confirmation-button.yes:hover {
    background-color: #3f0c1a;
    transform: translateY(-1px);
    box-shadow: 3.5px 3.5px 0 0 #3f0c1a;
}

.delete-wishlist-confirmation-button.no {
    background-color: #ffffff;
    color: var(--maroon, #561023);
}

.delete-wishlist-confirmation-button.no:hover {
    background-color: var(--cream, #ede6dc);
    transform: translateY(-1px);
    box-shadow: 3.5px 3.5px 0 0 #3f0c1a;
}

@media (max-width: 1024px) {
    .delete-wishlist-confirmation-popup {
        padding: 24px 20px;
        width: 95%;
        max-width: 95%;
        overflow-x: hidden;
    }

    .delete-wishlist-confirmation-popup h3 {
        font-size: 20px;
    }

    .delete-wishlist-confirmation-buttons {
        flex-direction: column;
    }

    .delete-wishlist-confirmation-button {
        width: 100%;
    }

    /* Ensure form fields stay within modal on mobile */
    .delete-wishlist-confirmation-popup form {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .delete-wishlist-confirmation-popup form>div {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Fix flex container for URL input on mobile */
    .customize-url-input-wrapper {
        flex-wrap: wrap !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .customize-url-prefix {
        font-size: 11px !important;
        padding: 10px 6px !important;
        white-space: normal !important;
        word-break: break-all !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    .customize-url-input {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        font-size: 14px !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    /* Stack prefix and input vertically on very small screens */
    @media (max-width: 400px) {
        .customize-url-input-wrapper {
            flex-direction: column !important;
        }

        .customize-url-prefix {
            width: 100% !important;
            border-radius: 0px;
            border-right: 1px solid #e3dcd6 !important;
            border-bottom: none !important;
            text-align: center;
        }

        .customize-url-input-cell {
            width: 100% !important;
        }

        .customize-url-input {
            width: 100% !important;
            border-radius: 0px;
            border-left: 1px solid #e3dcd6 !important;
        }
    }

    /* Mobile-friendly clear button: 44px min touch target */
    .customize-url-clear {
        min-width: 44px;
        min-height: 44px;
        padding: 12px;
        right: 4px;
        touch-action: manipulation;
    }

    .customize-url-input-cell .customize-url-input {
        padding-right: 52px !important;
    }
}

/* ─── Guest registry landing footer (scoped) ─── */
.registry-page .footer-spacer {
    height: 30vh;
}

.registry-page .landing-footer {
    --footer-frame-width: 8px;
    position: relative;
    padding: 0;
    background: var(--cream);
}

.registry-page .footer-border-outer {
    background: var(--cream);
    position: relative;
    padding: 0;
    min-height: 460px;
}

.registry-page .footer-border-mid {
    position: relative;
    margin: 0;
    background: var(--magenta);
    padding: var(--footer-frame-width);
}

.registry-page .footer-border-inner {
    background: var(--forest);
    margin: 0;
    padding: 80px 70px 60px;
    min-height: 396px;
}

.registry-page .footer-corners {
    position: absolute;
    width: var(--footer-frame-width);
    height: var(--footer-frame-width);
    background: var(--yellow);
    z-index: 2;
}

.registry-page .corner-tl {
    top: 0;
    left: 0;
}

.registry-page .corner-tr {
    top: 0;
    right: 0;
}

.registry-page .corner-bl {
    bottom: 0;
    left: 0;
}

.registry-page .corner-br {
    bottom: 0;
    right: 0;
}

.registry-page .footer-wordmark-img {
    display: block;
    width: 160px;
    max-width: 70%;
    margin: 0 auto 20px;
    height: auto;
}

.registry-page .footer-brand-logo {
    width: 506px;
    max-width: 100%;
    margin-bottom: 60px;
}

.registry-page .footer-brand-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.registry-page .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.registry-page .footer-col-brand h3 {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 6.8px;
    color: var(--offwhite);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.registry-page .footer-col-brand p {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 15px;
    color: var(--offwhite);
    line-height: 21px;
    max-width: 389px;
}

.registry-page .footer-col-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.registry-page .footer-col-links a {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.75px;
    color: var(--offwhite);
    text-decoration: none;
    text-transform: uppercase;
}

.registry-page .footer-col-links a:hover {
    opacity: 0.9;
}

.registry-page .footer-link-wa {
    display: flex;
    align-items: center;
    gap: 6px;
}

.registry-page .footer-link-wa-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.registry-page .footer-copyright {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 12px;
    color: var(--offwhite);
    opacity: 0.6;
    text-align: center;
    margin-top: 40px;
    letter-spacing: 0.5px;
}

.registry-page .footer-col-social h4 {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.75px;
    color: var(--offwhite);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.registry-page .footer-social-icons {
    display: flex;
    gap: 24px;
}

.registry-page .footer-social-icons a {
    width: 24px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.registry-page .footer-social-icons img {
    width: 100%;
    height: 100%;
}

/* Remove bottom-menu content offset now that guest registry has no bottom bar */
@media screen and (max-width: 1024px) {
    body.registry-page .content-wrapper {
        padding-bottom: 0;
    }
}

@media (min-width: 1025px) {
    .registry-page .footer-border-inner {
        position: relative;
        width: 100%;
        padding: 80px 70px 60px;
        min-height: 396px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .registry-page .footer-brand-logo {
        margin: 0 auto 60px;
        width: 506px;
    }

    .registry-page .footer-grid {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 80px;
        width: 100%;
        max-width: 900px;
    }

    .registry-page .footer-col-brand,
    .registry-page .footer-col-links,
    .registry-page .footer-col-social {
        text-align: center;
    }

    .registry-page .footer-col-brand {
        flex: 1;
        min-width: 0;
    }

    .registry-page .footer-col-brand h3 {
        margin-bottom: 22px;
        line-height: normal;
    }

    .registry-page .footer-col-brand p {
        max-width: 389px;
        margin-left: auto;
        margin-right: auto;
    }

    .registry-page .footer-col-links {
        flex-shrink: 0;
        gap: 20px;
        align-items: center;
    }

    .registry-page .footer-col-links a,
    .registry-page .footer-col-social h4 {
        line-height: normal;
    }

    .registry-page .footer-col-social {
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .registry-page .footer-col-social h4 {
        margin-bottom: 30px;
    }

    .registry-page .footer-social-icons {
        gap: 24px;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .registry-page .footer-border-inner {
        padding: 40px 20px 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .registry-page .footer-brand-logo {
        width: 200px;
        margin: 0 auto 32px;
    }

    .registry-page .footer-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
        width: 100%;
    }

    .registry-page .footer-col-brand,
    .registry-page .footer-col-links,
    .registry-page .footer-col-social {
        text-align: center;
        width: 100%;
    }

    .registry-page .footer-col-links {
        align-items: center;
    }

    .registry-page .footer-social-icons {
        justify-content: center;
    }
}