@import url("./album-layouts.css");

/* Tokens */
:root {
    --t1-primary: rgb(104, 14, 14);
    --t1-secondary: #D8C7A3;
    --olive-dark: #7F0404;
    --t1-red: rgb(104, 14, 14);
}

@media (max-width: 420px) {
    .env-card {
        padding: 2rem 1.6rem 2rem;
        border-radius: 18px;
    }
}

*/ body {
    --olive-dark: #5E8950;
    background: var(--body-bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(126, 203, 160, 0.08) 0%, transparent 70%);
    font-family: 'Lato', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* ===================== ENVELOPE SCENE ===================== */
#envelope-scene.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===================== INVITATION CONTENT ===================== */
#invitation-content {
    display: none;
    width: 100%;
    max-width: 786px;
    margin: 0 auto;
    opacity: 0;
    overflow: hidden;
    background-color: rgba(236, 223, 214, 1);
    background-image:
        linear-gradient(rgba(236, 223, 214, 0.55), rgba(236, 223, 214, 0.55)),
        url('../images/template-1/double-dragon-cream.webp');
    background-position: center top;
    background-repeat: repeat;
    /* background-size: 50% auto; */
    transition: opacity 0.8s ease, padding-top 0.8s ease;
    box-sizing: border-box;
    box-shadow:
        0 0 0 1px rgba(126, 203, 160, 0.10),
        0 40px 80px rgba(0, 0, 0, 0.6);
    background-size: clamp(300px, 50vw, 500px);
}

#invitation-content.visible {
    opacity: 1;
    padding-top: 0;
}

.ws-section {
    padding-inline: clamp(20px, 2.46vw + 9.7px, 29px);
    padding-block: 38px;
}

.ws-section:has(> .ws-section-title-bar) {
    padding-top: 0;
    padding-bottom: clamp(24px, 4vw, 32px);
}


.section-title {
    font-size: clamp(20px, 2.5vw, 26px);
    text-align: center;
    margin-bottom: clamp(24px, 2vw + 6px, 32px);
    text-shadow: 0 0 30px rgba(126, 203, 160, 0.25);
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    color: var(--t1-secondary);
}

.section-title.red {
    color: var(--t1-red);
}

.section-title.ws-section-title-bar,
.guestbook-section__title.ws-section-title-bar {
    --ws-title-bar-bleed: calc(clamp(20px, 2.46vw + 9.7px, 29px) + 20px);
    box-sizing: border-box;
    width: calc(100% + (var(--ws-title-bar-bleed) * 2));
    min-height: clamp(58px, 8vw, 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 calc(var(--ws-title-bar-bleed) * -1) clamp(24px, 4vw, 32px);
    padding: 10px clamp(20px, 4vw, 32px);
    background: rgba(136, 41, 37, 1);
    color: rgba(236, 223, 214, 1);
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 3.3vw, 28px);
    font-style: normal;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-shadow: none;
    text-transform: uppercase;
}

@media (max-width: 768px) {

    .section-title.ws-section-title-bar,
    .guestbook-section__title.ws-section-title-bar {
        --ws-title-bar-bleed: calc(clamp(20px, 2.46vw + 9.7px, 29px) + 10px);
    }
}

/* ===================== AOS ===================== */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* ===================== AOS ===================== */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

.bg-wrapper {
    background: transparent;
    padding: 20px;
}

@media (max-width: 768px) {
    .bg-wrapper {
        padding: 10px;
    }
}

#envelope-scene {
    --env-cream: rgb(236, 223, 214);
    --env-red: rgb(136, 41, 37);
    --env-red-dark: rgb(104, 14, 14);
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--env-red);
    font-family: 'Playfair Display', serif;
    overflow: hidden;
    transition: opacity 0.85s ease, transform 0.85s ease;
}

#envelope-scene::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../images/template-1/double-dragon.webp');
    background-position: center top;
    background-repeat: repeat;
    background-size: clamp(320px, 50vw, 560px) auto;
    content: '';
    mix-blend-mode: color-dodge;
    opacity: 0.24;
    pointer-events: none;
}

#envelope-scene.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.04);
}

#envelope-scene.is-opening {
    pointer-events: none;
}

.env-title {
    color: var(--env-red-dark);
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 2.88px;
}



/* Leaf scatter overlay */
.env-leaf-scatter {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.env-leaf-scatter img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    mix-blend-mode: multiply;
}

.env-leaf-scatter img[src*="PLACEHOLDER"] {
    opacity: 0;
}

/* ── Falling leaves ── */
.env-petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.ws-leaf {
    position: absolute;
    top: -80px;
    opacity: 0;
    will-change: transform, opacity;
    animation: wsLeafFall linear infinite;
}

.ws-leaf svg {
    display: block;
    animation: wsLeafSway ease-in-out infinite alternate;
}

@keyframes wsLeafFall {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    5% {
        opacity: 0.75;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(115vh) translateX(var(--sway-x, 40px));
        opacity: 0;
    }
}

@keyframes wsLeafSway {
    0% {
        transform: rotate(var(--rot-start, -20deg)) scale(var(--leaf-scale, 1));
    }

    100% {
        transform: rotate(var(--rot-end, 20deg)) scale(var(--leaf-scale, 1));
    }
}

/* ── Central cream card ── */
.env-card {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 2.6rem 2rem 2.4rem;
    width: min(500px, calc(100vw - 40px));
    overflow: hidden;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, box-shadow 0.7s ease;
    will-change: transform, opacity;
    border-radius: 28px;
    border: 1px solid rgba(136, 41, 37, 0.38);
    background-color: var(--env-cream);
    background-image:
        linear-gradient(rgba(236, 223, 214, 0.55), rgba(236, 223, 214, 0.55)),
        url('../images/template-1/double-dragon-cream.webp');
    background-position: center top;
    background-repeat: repeat;
    background-size: clamp(280px, 55vw, 420px) auto;
    box-shadow: 0 24px 64px rgba(64, 7, 7, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

#envelope-scene.is-opening .env-card {
    transform: translateY(-10px) scale(0.985);
    opacity: 0.72;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.18),
        0 10px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.env-card-image-left {
    position: absolute;
    left: -39.995px;
    top: 11px;
    width: 180px;
    opacity: 0.10;
    mix-blend-mode: multiply;
}

.env-card-image-right {
    position: absolute;
    right: -34.454px;
    top: -19px;
    width: 171px;
    opacity: 0.10;
    mix-blend-mode: multiply;
}

.env-card-image-bottom-left {
    position: absolute;
    left: -39.995px;
    width: 252px;
    bottom: -90px;
    opacity: 0.10;
    mix-blend-mode: multiply;
}

.env-card-image-bottom-right {
    position: absolute;
    right: -34.454px;
    width: 280px;
    bottom: -138px;
    opacity: 0.10;
    mix-blend-mode: multiply;
}

@media (max-width: 768px) {
    .env-card-image-left {
        width: 140px;
    }

    .env-card-image-right {
        width: 137px;
    }

    .env-card-image-bottom-left {
        width: 177px;
        bottom: -62px;
    }

    .env-card-image-bottom-right {
        width: 184px;
        bottom: -90px;
    }
}

.env-text-hy {
    color: var(--env-red);
    text-align: center;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 86px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 16px;
}

/* ── Names ── */
.env-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 3;
    padding-top: 28px;
    padding-bottom: 18px;
}

.env-name {
    font-size: clamp(30px, 5.5vw, 34px);
    font-weight: 400;
    color: var(--env-red-dark);
    line-height: 1.1;
    letter-spacing: 0.01em;
    display: block;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
}

.env-party-invitation {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(10px, 1.8vw, 12px);
    font-style: normal;
    font-weight: 500;
    line-height: 15px;
    letter-spacing: 2px;
    margin-top: 16px;
    color: rgba(104, 14, 14, 0.78);
    position: relative;
    z-index: 2;
}

.env-amp {
    color: var(--env-red-dark);
    text-align: center;
    font-family: 'Cormorant', serif;
    font-size: 40px;
    font-style: italic;
    font-weight: 400;
    line-height: 50.4px;
}

/* ── Wedding date ── */
.env-wedding-date {
    color: var(--env-red-dark);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(15px, 2.5vw, 18px);
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.18em;
    width: fit-content;
    margin: 10px auto 0;
}

/* ── Open button ── */
.ws-home-envelope-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    padding: 13px 32px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.15s ease, opacity 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 32px;
    z-index: 3;
    color: var(--env-cream);
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 21px;
    border-radius: 999px;
    background: var(--env-red);
    box-shadow: 0 10px 24px rgba(104, 14, 14, 0.22);
    width: 100%;
}

.ws-home-envelope-toggle:hover {
    background: var(--env-red-dark);
    transform: translateY(-1px);
}

#envelope-scene.is-opening .ws-home-envelope-toggle {
    opacity: 0.35;
}

.ws-home-envelope-toggle:hover::before {
    transform: translateX(0);
}

.ws-home-envelope-toggle:active {
    transform: scale(0.97);
}

.env-btn-text,
.env-btn-heart {
    position: relative;
    z-index: 1;
}

.env-btn-heart {
    font-size: 1rem;
    opacity: 0.85;
}

/* Event section */
.info-short-name {
    display: flex;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid var(--t1-red);
    color: var(--t1-red);
    text-align: center;
    font-family: "Cormorant", serif;
    font-size: 16px;
    font-style: italic;
    font-weight: 500;
    line-height: 24px;
    margin: auto;
}

.ceremony-section {
    position: relative;
    z-index: 1;
}

.event-info-wrapper {
    position: relative;
    padding-bottom: 0;
}

#invitation-content:has(.ceremony-section) .event-info-wrapper {
    padding-top: 0;
}

.formal-section {
    position: relative;
    z-index: 2;
}

.album-section {
    overflow: visible;
    max-width: 100%;
    position: relative;
}

.cover-family__parents-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    gap: clamp(10px, 2vw, 18px);
    align-items: stretch;
}

.cover-family__parents-divider {
    width: 1px;
    min-height: 96px;
    height: 72%;
    margin: auto 0;
    background: rgba(104, 14, 14, 0.58);
}

.cover-family__parents-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.cover-family__parents-label {
    text-align: center;
    font-size: clamp(12px, 1.8vw, 16px);
    color: var(--t1-red);
    text-align: center;
    font-family: 'Montserrat';
    font-weight: 400;
    line-height: 20px;
    text-transform: capitalize;
}

.cover-family__parents-name {
    font-size: clamp(14px, 2vw, 18px);
    color: var(--t1-red);
    text-align: center;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    font-family: 'Playfair Display', serif;
}

.cover-family__parents-address {
    text-align: center;
    font-family: "Montserrat";
    font-size: clamp(11px, 1.5vw, 15px);
    color: var(--t1-red);
    text-align: center;
    font-family: 'Montserrat';
    font-weight: 400;
    line-height: 20px;
}

.event-info {
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    align-self: stretch;
    position: relative;
    z-index: 1;
    width: min(100%, 500px);
    margin: auto;
    padding-top: 40px;
}

.event-info-list {
    display: grid;
    gap: 24px;
    position: relative;
    z-index: 1;
    padding-bottom: clamp(24px, 4vw, 32px);
}

.event-info__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 430px;
    text-align: center;
}

.event-info__text p {
    font-size: clamp(11px, 1.5vw, 15px);
    color: var(--t1-red);
    text-align: center;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.event-info__text .event-info__guest span {
    margin-top: 12px;
    color: var(--t1-red);
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-transform: none;
    display: block;
}

.event-info__invitation-line {
    width: min(150px, 45%);
    height: 1px;
    margin: 14px auto;
    background: rgba(136, 41, 37, 0.55);
}

.event-info__text .event-info__description {
    max-width: 300px;
    color: var(--t1-red);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(11px, 1.5vw, 14px);
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.03em;
    text-transform: none;
}

p.event-info__text-description {
    font-weight: 500;
    margin-top: 24px;
    color: var(--t1-red);
    text-align: center;
    font-family: 'Montserrat';
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    text-transform: uppercase;
}

.event-info__couple-name {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.groom,
.bride {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bride-name,
.groom-name {
    color: var(--t1-red);
    text-align: center;
    font-style: normal;
    font-weight: 400;
    line-height: 36px;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    font-size: clamp(28px, 5.5vw, 30px);
}

.event-info__couple-divider {
    color: var(--t1-red);
    text-align: center;
    font-family: "Cormorant", serif;
    font-size: clamp(20px, 1vw + 0.9rem, 28px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
}


.event-calendar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-self: stretch;
    padding-bottom: 0;
}

.event-calendar:not(:last-child) {
    border-bottom: none;
}

.event-calendar__label {
    font-size: clamp(13px, 1.8vw, 17px);
    color: var(--t1-red);
    text-align: center;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.event-calendar__event-name {
    color: var(--t1-red);
    text-align: center;
    font-family: "Montserrat";
    font-size: clamp(13px, 1.8vw, 17px);
    font-style: normal;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.event-calendar+.event-calendar {
    position: relative;
    padding-top: 64px;
}

.event-calendar+.event-calendar::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 50%;
    width: 120px;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--t1-red), transparent);
    opacity: 0.4;
}

.event-calendar__time {
    color: var(--t1-red);
    text-align: center;
    font-family: 'Yeseva One', sans-serif;
    font-style: normal;
    font-weight: 600;
    line-height: 40px;
    font-size: 22px;
}

.event-calendar__month,
.event-calendar__weekday {
    font-size: 16px;
    color: var(--t1-red);
    text-align: center;
    font-family: 'Yeseva One', sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 15px;
    text-transform: uppercase;
    padding-block: 8px;
    border-top: 1px solid var(--t1-red);
    border-bottom: 1px solid var(--t1-red);
}

.event-calendar__weekday-label,
.event-calendar__month-label {
    display: block;
    white-space: nowrap;
    line-height: 1.2;
    font-family: 'Yeseva One', sans-serif;
}

.event-calendar__date-label {
    display: block;
}

.event-calendar__day {
    font-size: 48px;
    color: var(--t1-red);
    text-align: center;
    font-family: 'Yeseva One', sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
}

.event-calendar__vietnamese-date {
    color: var(--t1-red);
    text-align: center;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    font-size: 16px;
    font-family: 'Literata', sans-serif;
}

.event-calendar__date {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
}

.event-calendar__venue.party-item {
    display: flex;
    padding: 32px;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    align-self: stretch;
    border: 0;
    border-radius: 4px;
    background: none;
    box-shadow: none;
    padding-top: 0;
}

.event-calendar__venue .party-item__label {
    font-family: 'Literata', sans-serif;
    font-size: 16px;
    color: var(--t1-red);
}

.event-calendar__venue .party-item__place {
    color: var(--t1-red);
    font-family: 'Yeseva One', sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    padding-block: 8px;
    margin-top: 0;
    text-align: center;
}

.event-calendar__venue .party-item__address {
    color: var(--t1-red);
    text-align: center;
    line-height: 28.8px;
    font-family: 'Literata', sans-serif;
    font-size: 16px;
    font-style: italic;
}

.event-calendar__venue .party-item__button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    text-align: center;
    font-family: 'Inter';
    line-height: 12px;
    letter-spacing: 1.2px;
    border: none;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(216, 199, 163, 0.30);
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    background: var(--t1-red);
    width: fit-content;
    font-size: clamp(10px, 0.28vw + 8.94px, 13px);
    margin: auto;
    padding-block: clamp(10px, 0.38vw + 8.59px, 14px);
    padding-inline: clamp(16px, 0.38vw + 14.59px, 20px);
}

.event-calendar__venue .party-item__button:hover {
    opacity: .9;
}

.event-calendar__venue .party-item__actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.event-info__couple-divider-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.48;
    width: 144px;
    height: 144px;
}

.cover-family {
    z-index: 1;
    position: relative;
}

/* Calendar section */
.ws-mini-calendar-list {
    display: grid;
    gap: 48px;
    width: min(100%, 420px);
    margin: 0 auto 64px;
}

.ws-mini-calendar {
    width: 100%;
    padding: 28px 20px 24px;
}

.ws-mini-calendar__wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.ws-mini-calendar__month-title,
.ws-mini-calendar__year {
    color: var(--t1-red);
    text-align: center;
    font-weight: 400;
}

.ws-mini-calendar__month-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 5vw, 32px);
    line-height: 1.2;
    text-transform: uppercase;
}

.ws-mini-calendar__year {
    font-family: 'Yeseva One', sans-serif;
    font-size: clamp(34px, 8vw, 48px);
    line-height: 1;
}

.ws-mini-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: clamp(4px, 1.8vw, 12px);
}

.ws-mini-calendar__dow,
.ws-mini-calendar__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    text-align: center;
}

.ws-mini-calendar__dow {
    flex-direction: column;
    min-height: 24px;
    padding-bottom: 8px;
    color: rgba(104, 14, 14, 0.72);
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.ws-mini-calendar__cell {
    position: relative;
    aspect-ratio: 1;
    color: var(--t1-red);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1;
}

.ws-mini-calendar__cell--empty {
    visibility: hidden;
}

.ws-mini-calendar__cell--event {
    font-weight: 700;
}

.ws-mini-calendar__num {
    position: relative;
    z-index: 1;
}

.ws-mini-calendar__heart {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--t1-red);
    transform: translate(-50%, -50%);
    animation: t1-calendar-heartbeat 1.4s ease-in-out infinite;
    pointer-events: none;
}

.ws-mini-calendar__heart svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

@keyframes t1-calendar-heartbeat {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    18% {
        transform: translate(-50%, -50%) scale(1.12);
        opacity: 0.5;
    }

    32% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ws-mini-calendar__heart {
        animation: none;
    }
}

.ws-countdown__label {
    color: var(--t1-red);
    text-align: center;
    font-family: 'Inter';
    font-size: 12px;
    font-weight: 600;
    line-height: 12px;
    letter-spacing: 2.4px;
    padding-bottom: 20px;
}

.ws-countdown__units {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.ws-countdown__unit {
    display: flex;
    flex-direction: column;
}

.ws-countdown__num {
    color: var(--t1-red);
    text-align: center;
    line-height: 43.2px;
    font-family: 'Yeseva One', sans-serif;
    font-size: clamp(24px, 8vw, 28px);
    font-weight: 500;
}

.ws-countdown__name {
    color: var(--t1-red);
    text-align: center;
    font-family: 'Inter';
    font-size: 10px;
    font-weight: 400;
    line-height: 15px;
    text-transform: uppercase;
}

.ws-countdown__sep {
    color: var(--t1-red);
    text-align: center;
    font-family: "Playfair Display";
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.rsvp-footer .ws-button.primary {
    background-color: #7F0404;
    color: #FFE088;
    text-transform: uppercase;
}

.rsvp-footer .ws-button.ternary {
    text-transform: uppercase;
}


.rsvp__choice input {
    accent-color: #7F0404;
}

.calendar-section-wrapper {
    margin: auto;
    width: min(100%, 500px);
}


.calendar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    align-self: stretch;
    border-radius: 18px;
    position: relative;
    z-index: 1;
    padding-top: 76px;
}

.party-item {
    display: flex;
    padding: 32px;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    align-self: stretch;
    border-radius: 4px;
    border: 1px solid rgba(216, 199, 163, 0.30);
    background: #82242C;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.party-item__title {
    color: #D8C7A3;
    text-align: center;
    font-family: 'Inter';
    font-size: 12px;
    font-weight: 600;
    line-height: 12px;
    letter-spacing: 1.2px;
}

.party-item__divider {
    width: 48px;
    height: 1px;
    background: #D8C7A3;
}

.party-item__date {
    color: #FDF8F2;
    text-align: center;
    font-family: "Playfair Display";
    font-size: 24px;
    font-weight: 600;
    line-height: 33.6px;
    padding-top: 16px;
}

.party-item__time {
    color: #D8C7A3;
    text-align: center;
    font-family: 'Inter';
    font-size: 16px;
    font-weight: 400;
    line-height: 25.6px;
}

.party-item__place {
    color: #FDF8F2;
    text-align: center;
    font-family: 'Inter';
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 28.8px;
    margin-top: 16px;
    text-transform: capitalize;
}

.party-item__address {
    color: #D8C7A3;
    text-align: center;
    font-family: 'Inter';
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    line-height: 24px;
}

.party-item__button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #F3E1BB;
    text-align: center;
    font-family: 'Inter';
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 1.2px;
    border: none;
    background: none;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(216, 199, 163, 0.30);
    cursor: pointer;
}

.party-item__button svg {
    width: 12px;
}

.party-item__actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.btn-confirm {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    text-align: center;
    font-family: 'Inter';
    line-height: 12px;
    letter-spacing: 1.2px;
    border: none;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(216, 199, 163, 0.30);
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    background: var(--t1-red);
    width: fit-content;
    font-size: clamp(10px, 0.28vw + 8.94px, 13px);
    margin: auto;
    padding-block: clamp(10px, 0.38vw + 8.59px, 14px);
    padding-inline: clamp(16px, 0.38vw + 14.59px, 20px);
}

.btn-confirm:hover {
    opacity: .9;
}

.rsvp-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 32px;
    width: min(100%, 500px);
    margin: auto;
}

.rsvp__header h3 {
    color: #570013;
    font-family: "Montserrat";
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.ws-add-to-calendar {
    position: relative;
    display: flex;
    justify-content: center;
}

.ws-add-to-calendar__dropdown {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: #fff;
    border: 1px solid #E8E4DD;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    z-index: 10;
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.ws-add-to-calendar__dropdown:not([hidden]) {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.ws-add-to-calendar__item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(11px, 1.4vw, 13px);
    font-weight: 500;
    color: #4A4A4A;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.15s;
}

.ws-add-to-calendar__item+.ws-add-to-calendar__item {
    border-top: 1px solid #F0EDE8;
}

.ws-add-to-calendar__item:hover {
    background: #F9F5EF;
    color: #7F0404;
}

.ws-add-to-calendar__item svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Dresscode */
.dresscode-section__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dresscode-section .section-title {
    color: rgb(136, 41, 37);
    font-weight: 600;
    text-shadow: none;
}

.dresscode-items {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dresscode-item__color {
    border: 1px solid rgba(136, 41, 37, 0.3);
    border-radius: 12px;
    background: var(--dresscode-color, #F5EDE2);
    box-shadow: 0 2px 8px rgba(104, 14, 14, 0.12);
    width: 48px;
    height: 48px;
}

/* Couple section */
.ws-template-1-couple-top {
    position: relative;
    box-sizing: border-box;
    width: calc(100% + 40px);
    margin-top: -20px;
    margin-inline: -20px;
    overflow: hidden;
    background: rgba(136, 41, 37, 1);
    height: 80px;
}

.ws-template-1-couple-top::before {
    position: absolute;
    inset: 0;
    background-image: url('../images/template-1/double-dragon.webp');
    background-position: center top;
    background-repeat: repeat;
    background-size: 50% auto;
    content: '';
    mix-blend-mode: color-dodge;
    opacity: 0.4;
    pointer-events: none;
}

.ws-template-1-couple {
    --ws-couple-photo-size: clamp(128px, 26.75vw, 200px);
    --ws-red: rgba(136, 41, 37, 1);
    --ws-cream: #eee4dc;
    isolation: isolate;
    position: relative;
    box-sizing: border-box;
    width: calc(100% + 40px);
    margin-inline: -20px;
    overflow: hidden;
    padding: clamp(30px, 4.3vw, 34px) 0 clamp(24px, 3.6vw, 30px);
    background: transparent;
    color: var(--ws-red);
}

.ws-template-1-couple .general-grid {
    position: relative;
}

.ws-template-1-couple .ws-couple-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(6px, 1.8vw, 14px);
    row-gap: clamp(18px, 2.6vw, 20px);
    align-items: center;
}

.ws-template-1-couple .ws-couple-band {
    position: relative;
    grid-column: 1 / 4;
    grid-row: 1;
    align-self: center;
    width: 100%;
    height: clamp(54px, 7.7vw, 60px);
    z-index: 0;
    background: var(--ws-red);
    overflow: hidden;
}

.ws-template-1-couple .ws-couple-band::before {
    position: absolute;
    inset: 0;
    background-image: url('../images/template-1/double-dragon.webp');
    background-position: center center;
    background-repeat: repeat;
    background-size: 50% auto;
    content: '';
    mix-blend-mode: color-dodge;
    opacity: 0.4;
    pointer-events: none;
}

.ws-template-1-couple .ws-couple-photo {
    position: relative;
    z-index: 1;
    grid-row: 1;
    display: flex;
    width: 100%;
    min-width: 0;
    justify-content: center;
}

.ws-template-1-couple .ws-couple-photo--1 {
    grid-column: 1;
}

.ws-template-1-couple .ws-couple-photo--2 {
    grid-column: 3;
}

.ws-template-1-couple .ws-general-photo__frame {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: min(100%, var(--ws-couple-photo-size));
    max-width: none;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ws-red);
}

.ws-template-1-couple .ws-general-photo__frame>img,
.ws-template-1-couple .ws-general-photo__frame>.ws-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Double-happiness emblem between the portraits. */

.ws-template-1-couple .ws-couple-seal {
    position: relative;
    z-index: 2;
    grid-column: 2;
    grid-row: 1;
    display: block;
    width: clamp(52px, 8.7vw, 68px);
    height: auto;
}

/* ---------- Names below each portrait ---------- */

.ws-template-1-couple .ws-general-couple {
    position: relative;
    z-index: 2;
    grid-row: 2;
    display: flex;
    min-width: 0;
    justify-content: center;
}

.ws-template-1-couple .ws-general-couple--1 {
    grid-column: 1;
}

.ws-template-1-couple .ws-general-couple--2 {
    grid-column: 3;
}

.ws-template-1-couple .ws-general-couple__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    max-width: 100%;
}

.ws-template-1-couple .ws-general-couple__role {
    margin: 0;
    width: fit-content;
    color: #4f4f4f;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: clamp(12px, 1.9vw, 15px);
    font-weight: 400;
    line-height: 1.5;
}

.ws-template-1-couple .ws-general-couple__name {
    margin: 0;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    color: var(--ws-red);
    text-align: center;
    text-overflow: ellipsis;
    font-weight: 400;
    white-space: nowrap;
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 3.3vw, 26px);
    line-height: 1.35;
}

@media (max-width: 380px) {
    .ws-template-1-couple {
        --ws-couple-photo-size: 120px;
    }

    .ws-template-1-couple .ws-couple-pair {
        column-gap: 4px;
    }
}

@media (max-width: 768px) {
    .ws-template-1-couple-top {
        width: calc(100% + 20px);
        margin-top: -10px;
        margin-inline: -10px;
    }

    .ws-template-1-couple {
        width: calc(100% + 20px);
        margin-inline: -10px;
    }
}

@media (min-width: 560px) {
    .ws-template-1-couple {
        --ws-couple-photo-size: clamp(128px, 26.75vw, 200px);
    }
}

/* Timeline section */
.ws-timeline-love {
    position: relative;
    z-index: 1;
}

.ws-timeline-bg-center {
    position: absolute;
    top: 25%;
    left: 37%;
    transform: translate(-50%, -50%);
    z-index: 0;
    width: 100%;
    opacity: 0.13;
    width: 100%;
}

.ws-timeline-love__inner {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
    margin-inline: auto;
}

.ws-timeline-love .section-title {
    width: 100%;
    margin-bottom: clamp(22px, 2.6vw + 10px, 34px);
    color: rgb(136, 41, 37);
    font-weight: 600;
    text-align: center;
    text-shadow: none;
}

.ws-timeline-love__list {
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: none;
}

.ws-timeline-love__list--empty {
    max-width: min(100%, 420px);
    margin-inline: auto;
}

.ws-timeline-love__empty {
    --ws-content-placeholder-border-color: rgba(216, 199, 163, 0.45);
    --ws-content-placeholder-background: rgba(255, 255, 255, 0.04);
    --ws-content-placeholder-icon-color: var(--t1-primary);
    --ws-content-placeholder-icon-background: rgb(255, 227, 177);
    --ws-content-placeholder-title-color: #FDF8F2;
    --ws-content-placeholder-path-color: rgba(216, 199, 163, 0.8);
}

.ws-timeline-love__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.75rem minmax(0, 1fr);
    position: relative;
    align-items: stretch;
}

.ws-timeline-love__meta {
    grid-column: 1;
    align-self: start;
    min-width: 0;
    padding: 1px clamp(0.75rem, 2vw, 1.25rem) clamp(2rem, 4.5vw, 2.75rem) 0;
    text-align: right;
}

.ws-timeline-love__marker {
    grid-column: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4px;
}

.ws-timeline-love__marker::after {
    content: "";
    position: absolute;
    top: 24px;
    left: 50%;
    width: 2px;
    bottom: calc(-1 * clamp(1.1rem, 2.8vw, 1.65rem));
    transform: translateX(-50%);
    border-radius: 2px;
    background: rgba(136, 41, 37, 0.3);
}

.ws-timeline-love__item:last-child .ws-timeline-love__marker::after {
    margin-bottom: 38px;
}

.ws-timeline-love__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgb(236, 223, 214);
    box-shadow: 0 0 0 3px rgb(136, 41, 37);
}

.ws-timeline-love__dot i {
    font-size: 14px;
    line-height: 1;
    color: #701620;
}

.ws-timeline-love__card {
    grid-column: 3;
    align-self: start;
    text-align: left;
    padding: 0 0 clamp(2rem, 4.5vw, 2.75rem) clamp(0.75rem, 2vw, 1.25rem);
}

.ws-timeline-love__date {
    margin: 0;
    color: rgb(136, 41, 37);
    font-family: 'Inter';
    font-size: clamp(14px, 0.65vw + 0.7rem, 18px);
    font-style: normal;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: clamp(1.2px, 0.1vw + 0.05rem, 1.5px);
    white-space: nowrap;
}

.ws-timeline-love__heading {
    margin: 0;
    color: rgb(104, 14, 14);
    font-family: "Playfair Display";
    font-size: clamp(14px, 0.65vw + 0.7rem, 18px);
    font-style: normal;
    line-height: 1.25;
}

.ws-timeline-love__figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--kit-primary-rgb), 0.18);
}

.ws-timeline-love__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

@media (max-width: 480px) {
    .ws-timeline-love__item {
        grid-template-columns: minmax(0, 1fr) 1.5rem minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ws-timeline-love::before {
        background-attachment: scroll;
    }

    .ws-timeline-love__card {
        box-shadow: none;
    }
}

/* Calendar section */
.formal-section .ws-mini-calendar-list {
    display: grid;
    gap: 24px;
    width: min(100%, 350px);
    margin: 0 auto;
}

.formal-section .ws-mini-calendar {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(112, 22, 32, 0.32);
    border-radius: 8px;
    box-shadow: none;
}

.formal-section .ws-mini-calendar__header {
    padding: clamp(14px, 2.4vw, 18px) 12px;
    border-bottom: 1px solid rgba(112, 22, 32, 0.28);
}

.formal-section .ws-mini-calendar__title {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin: 0;
    color: #680e0e;
    font-family: 'Playfair Display', serif;
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.formal-section .ws-mini-calendar__title .ws-mini-calendar__month-title,
.formal-section .ws-mini-calendar__title .ws-mini-calendar__year {
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-transform: none;
}

.formal-section .ws-mini-calendar__separator {
    font-weight: 400;
}

.formal-section .ws-mini-calendar__weekdays,
.formal-section .ws-mini-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
}

.formal-section .ws-mini-calendar__weekdays {
    padding: 10px 8px 8px;
    border-bottom: 2px solid #680e0e;
}

.formal-section .ws-mini-calendar__dow {
    min-height: 18px;
    padding: 0;
    color: rgba(104, 14, 14, 0.62);
    font-family: 'Playfair Display', serif;
    font-size: clamp(10px, 1.4vw, 13px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

.formal-section .ws-mini-calendar__grid {
    padding: 10px 8px 12px;
}

.formal-section .ws-mini-calendar__cell {
    position: relative;
    min-width: 0;
    min-height: clamp(30px, 4vw, 34px);
    aspect-ratio: auto;
    color: #680e0e;
    font-family: 'Playfair Display', serif;
    font-size: clamp(11px, 1.5vw, 14px);
    font-weight: 400;
    line-height: 1;
}

.formal-section .ws-mini-calendar__cell--event {
    font-weight: 700;
}

.formal-section .ws-mini-calendar__cell--event .ws-mini-calendar__num {
    position: relative;
    z-index: 2;
    color: #fffaf0;
}

.formal-section .ws-mini-calendar__heart {
    width: clamp(28px, 3vw, 32px);
    height: clamp(28px, 3vw, 32px);
    color: #701620;
    animation: t1-calendar-heartbeat 1.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .formal-section .ws-mini-calendar__heart {
        animation: none;
    }
}

.formal-section .ws-calendar-add {
    width: max-content;
    max-width: 100%;
    margin: clamp(22px, 3.5vw, 24px) auto 0;
}

.formal-section .ws-calendar-add__trigger {
    padding: 0 0 4px;
    color: #680e0e;
    background: transparent;
    border: 0;
    border-bottom: 1px solid currentColor;
    font-size: clamp(14px, 2.8vw, 16px);
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    font-family: 'Literata', sans-serif;
}

.formal-section .ws-calendar-add__trigger:hover,
.formal-section .ws-calendar-add__trigger:focus-visible {
    color: #8b1b1b;
}

.formal-section .ws-countdown {
    margin: 0 0 clamp(22px, 3.5vw, 24px);
}

.formal-section .rsvp-wrapper {
    width: min(100%, 500px);
    margin: clamp(22px, 3.5vw, 36px) auto 0;
}


@media (max-width: 480px) {

    .formal-section .ws-mini-calendar-list,
    .formal-section .ws-mini-calendar {
        max-width: 300px;
    }

    .formal-section .ws-mini-calendar-list {
        width: min(100%, 300px);
        gap: 20px;
    }

    .formal-section .ws-mini-calendar__header {
        padding-block: 12px;
    }

    .formal-section .ws-mini-calendar__weekdays {
        padding: 8px 4px 7px;
        border-bottom-width: 2px;
    }

    .formal-section .ws-mini-calendar__dow {
        min-height: 16px;
        font-size: 10px;
    }

    .formal-section .ws-mini-calendar__grid {
        padding: 9px 4px 11px;
    }

    .formal-section .ws-mini-calendar__cell {
        min-height: 28px;
        font-size: 11px;
    }

    .formal-section .ws-mini-calendar__heart {
        width: 26px;
        height: 26px;
    }
}

/* ===================== ALBUM SECTION ===================== */


.album-section-svg {
    position: absolute;
    left: 0;
    top: -15px;
    width: 87px;
}

.album-section>img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    max-width: 500px;
    margin: auto;
}

.album-grid--double {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.album-grid.is-single {
    grid-template-columns: 1fr;
}

.album-item {
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    width: 100%;
    display: block;
    border-radius: 4px;
}

.album-item--placeholder {
    cursor: default;
}

.album-grid--double .album-item {
    aspect-ratio: 1 / 1;
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
    border-radius: 4px;
}

.album-item:hover img,
.album-item:focus-visible img {
    transform: scale(1.04);
}

.album-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-family: "Cormorant", serif;
    font-size: clamp(18px, 2.05vw + 9.4px, 24px);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.album-item:focus-visible {
    outline: 2px solid var(--focus-outline);
    outline-offset: 2px;
}

.album-section .photo-placeholder {
    background: linear-gradient(135deg, var(--kit-photo-grad-a) 0%, var(--kit-photo-grad-b) 100%);
    min-height: 260px;
}

/* Gift section */
.gift-section-wrapper-bottom {
    width: 100%;
    margin: auto;
    position: relative;
}

#invitation-content .bg-wrapper--with-thanks-footer {
    padding-bottom: 0;
}

.gift-section-wrapper-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    width: min(100%, 500px);
    margin: auto;
    padding-bottom: 0;
}

.gift-thanks-text {
    color: rgba(68, 47, 43, 0.94);
    text-align: center;
    font-family: 'Inter';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 25.6px;
    max-width: 300px;
    margin-block: 24px;
}

.gift-thanks-groom-bride {
    color: rgba(68, 47, 43, 0.94);
    font-family: "Playball", cursive;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 41.6px;
}

.ws-template-1-thanks-footer {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.ws-template-1-thanks-dragon-strip {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
    background: rgba(136, 41, 37, 1);
}

.ws-template-1-thanks-dragon-strip::before {
    position: absolute;
    inset: 0;
    background-image: url('../images/template-1/double-dragon.webp');
    background-position: center top;
    background-repeat: repeat;
    background-size: 50% auto;
    content: '';
    mix-blend-mode: color-dodge;
    opacity: 0.4;
    pointer-events: none;
}

.gift-section-wrapper {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.gift-section-wrapper-top {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    gap: 48px;
    z-index: 1;
    min-width: 0;
    align-items: center;
}

.gift-box {
    position: relative;
    width: min(100%, 500px);
    height: 319px;
    padding: 24px 0;
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 24px;
    cursor: pointer;
}

.gift-box__image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 90%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.gift-box:not(.gift-box--disabled) .gift-box__image {
    animation: gift-box-shake 2.8s ease-in-out infinite;
}

.gift-box__button {
    position: absolute;
    top: 50%;
    left: 49%;
    width: 56px;
    transform: translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.gift-box:not(.gift-box--disabled) .gift-box__button {
    animation: gift-box-button-rotate 2.8s ease-in-out infinite;
}

.gift-box__hint {
    position: absolute;
    top: 56%;
    left: 49%;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #FFD95E;
    opacity: 0.55;
    pointer-events: none;
    transform: translateX(-50%);
}

.gift-box__hint-icon {
    width: 23px;
    height: 23px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 4px rgba(255, 217, 94, 0.35));
    animation: gift-box-hint-tap 1.8s ease-in-out infinite;
}

.gift-box--disabled {
    cursor: default;
}

.gift-box:focus-visible {
    outline: none;
}

@keyframes gift-box-shake {

    0%,
    58%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    62% {
        transform: translate(-50%, -50%) rotate(-2.5deg);
    }

    66% {
        transform: translate(-50%, -50%) rotate(2.5deg);
    }

    70% {
        transform: translate(-50%, -50%) rotate(-1.6deg);
    }

    74% {
        transform: translate(-50%, -50%) rotate(1.6deg);
    }

    78% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes gift-box-button-rotate {

    0%,
    58%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    66% {
        transform: translate(-50%, -50%) rotate(-12deg);
    }

    74% {
        transform: translate(-50%, -50%) rotate(12deg);
    }

    82% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes gift-box-hint-tap {

    0%,
    100% {
        opacity: 0.55;
        transform: translateY(2px) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateY(-2px) scale(0.92);
    }
}

@media (prefers-reduced-motion: reduce) {

    .gift-box__image,
    .gift-box__button,
    .gift-box__hint-icon {
        animation: none !important;
    }
}

.gift-qr-panel {
    width: min(100%, 500px);
    display: grid;
    gap: 10px;
}

.gift-qr-panel__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 500px);
    padding-inline: 12px;
}

.gift-qr-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.gift-qr-placeholder {
    width: min(100%, 180px);
    aspect-ratio: 1;
}

.gift-qr-placeholder .ws-image-placeholder {
    min-height: 100%;
}

.gift-qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.gift-qr-card__role {
    margin: 0 0 8px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #FFF;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(10px, 1.3vw, 13px);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gift-qr-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.gift-qr-image {
    display: flex;
    justify-content: center;
    width: 100%;
}

.gift-qr-image img {
    display: block;
    padding: 8px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.20);
    background: #FFF;
    margin-bottom: 0;
    max-width: 146px;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

.gift-qr-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #FFF;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(9px, 1.2vw, 12px);
    font-weight: 600;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gift-qr-download__icon {
    display: grid;
    place-items: center;
}

.gift-qr-download__icon--done,
.gift-qr-download.is-downloaded .gift-qr-download__icon--down {
    display: none;
}

.gift-qr-download.is-downloaded .gift-qr-download__icon--done {
    display: grid;
}

.gift-qr-download.is-downloaded {
    background: rgba(255, 255, 255, 0.92);
    border-color: #FFF;
    color: #355643;
}

.gift-qr-bank,
.gift-qr-number,
.gift-qr-name {
    max-width: 100%;
    word-break: break-word;
}

.gift-qr-bank {
    color: #FFF;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(12px, 1.6vw, 15px);
    font-weight: 400;
    line-height: 1.5;
}

.gift-qr-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
    color: #FFF;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(11px, 1.5vw, 14px);
    font-weight: 600;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.gift-qr-number__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gift-qr-copy {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #FFF;
    padding: 0;
    border-radius: 5px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    background: none;
    border: none;
}

.gift-qr-copy__icon {
    display: grid;
    place-items: center;
}

.gift-qr-copy__icon--done,
.gift-qr-copy.is-copied .gift-qr-copy__icon--copy {
    display: none;
}

.gift-qr-copy.is-copied .gift-qr-copy__icon--done {
    display: grid;
}

.gift-qr-copy.is-copied {
    background: #FFF;
    border-color: #FFF;
    color: #355643;
}

.gift-qr-name {
    color: #FFF;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(12px, 1.6vw, 15px);
    font-weight: 400;
    line-height: 1.5;
    text-transform: uppercase;
}

.gift-text {
    color: #D8C7A3;
    text-align: center;
    font-family: 'Inter';
    font-size: clamp(16px, 2vw, 17px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    padding-inline: 24px;
    margin: 0;
    max-width: 400px;
}

.gift-qr-card--panel {
    min-width: 0;
    gap: 4px;
}

.gift-qr-card--panel .gift-qr-image img {
    padding: 4px;
    max-width: 100px;
    width: 100%;
    border: 1px solid rgba(53, 86, 67, 0.12);
    border-radius: 6px;
}

.gift-qr-card--panel .gift-qr-download {
    background: rgba(53, 86, 67, 0.06);
    color: #fff;
    font-size: clamp(8px, 1.1vw, 11px);
    padding: 3px 6px;
}

.gift-qr-card--panel .gift-qr-download.is-downloaded {
    /* background: #355643; */
    border-color: #355643;
    color: #FFF;
}

.gift-qr-card--panel .gift-qr-bank,
.gift-qr-card--panel .gift-qr-number,
.gift-qr-card--panel .gift-qr-name {
    color: #fff;
    text-align: center;
    width: 100%;
}

.gift-qr-card--panel .gift-qr-bank {
    font-size: clamp(10px, 1.4vw, 13px);
    line-height: 1.4;
    font-weight: 500;
}

.gift-qr-card--panel .gift-qr-number {
    gap: 3px;
    padding: 3px 4px;
    width: 100%;
    box-sizing: border-box;
}

.gift-qr-card--panel .gift-qr-number.is-copied {
    background: rgba(53, 86, 67, 0.08);
}

.gift-qr-card--panel .gift-qr-number__value {
    font-size: clamp(10px, 1.4vw, 13px);
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.gift-qr-card--panel .gift-qr-copy {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: rgba(53, 86, 67, 0.06);
    color: #fff;
    border: none;
}

.gift-qr-card--panel .gift-qr-copy.is-copied {
    border-color: #355643;
    color: #FFF;
}

.gift-qr-card--panel .gift-qr-name {
    font-size: clamp(9px, 1.2vw, 12px);
    line-height: 1.4;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    opacity: 0.85;
}

@media screen and (min-width: 501px) {
    .gift-qr-card--panel .gift-qr-image img {
        max-width: 96px;
    }
}

@media screen and (max-width: 500px) {
    .gift-text {
        padding-inline: 32px;
    }

    .thanks__bg-top-left {
        width: 75px;
    }

    .thanks__bg-bottom-right {
        width: 110px;
    }
}

@media screen and (min-width: 768px) {
    .gift-section-wrapper-top {
        bottom: 80px;
    }

    .gift-qr-panel {
        width: min(100%, 500px);
    }

    .gift-qr-panel__list {
        width: min(100%, 500px);
        padding-inline: 20px;
    }

    .gift-qr-image img {
        max-width: 180px;
    }

    .gift-qr-card--panel .gift-qr-image img {
        max-width: 160px;
    }

    .gift-section-wrapper-bottom-content {
        gap: 20px;
    }
}

.gift-envelope {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 18px;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--gift-envelope-gold-light);
    cursor: pointer;
    perspective: 1400px;
    -webkit-tap-highlight-color: transparent;
    --orbit-radius: 128px;
    --gift-envelope-red: var(--t1-primary, #701620);
    --gift-envelope-red-soft: #82242C;
    --gift-envelope-red-deep: #4D070D;
    --gift-envelope-gold: var(--t1-secondary, #D8C7A3);
    --gift-envelope-gold-light: #F8DD9B;
    --gift-envelope-cream: #FFF4DF;
}

.gift-envelope__card {
    position: relative;
    z-index: 2;
    display: block;
    width: min(150px, 78vw);
    height: auto;
    aspect-ratio: 5 / 7;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(216, 199, 163, 0.28);
    background: linear-gradient(145deg, var(--gift-envelope-red-soft) 0%, var(--gift-envelope-red) 54%, var(--gift-envelope-red-deep) 100%);
    box-shadow: 0 18px 38px -12px rgba(0, 0, 0, 0.58),
        0 5px 14px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 244, 223, 0.14),
        0 0 28px 2px rgba(216, 199, 163, 0.18);
    transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(.6, -0.1, .2, 1.25), width 0.3s ease;
    animation: gift-envelope-shake 2.8s cubic-bezier(.36, .07, .19, .97) infinite;
    transform-origin: 50% 85%;
}

/* Họa tiết mạng kim tiền (interlocking coins) chìm tinh tế */
.gift-envelope__lattice-pattern {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M18 36c9.94 0 18-8.06 18-18S27.94 0 18 0 0 8.06 0 18s8.06 18 18 18zm0-4c-7.73 0-14-6.27-14-14S10.27 4 18 4s14 6.27 14 14-6.27 14-14 14z' fill='%23D8C7A3' fill-opacity='0.62'/%3E%3Crect x='14' y='14' width='8' height='8' fill='none' stroke='%23F8DD9B' stroke-width='1.2' transform='rotate(45 18 18)'/%3E%3C/svg%3E");
    background-size: 36px 36px;
}

.gift-envelope__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    animation: gift-envelope-sheen 5.5s ease-in-out infinite;
}

.gift-envelope:hover .gift-envelope__card,
.gift-envelope:focus-visible .gift-envelope__card {
    animation: none;
    transform: translateY(-5px) rotateY(-8deg);
    box-shadow: 0 24px 45px -14px rgba(0, 0, 0, 0.62),
        0 6px 16px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 244, 223, 0.2),
        0 0 34px 4px rgba(216, 199, 163, 0.28);
}

.gift-envelope:focus-visible {
    outline: none;
    outline-offset: 8px;
    border-radius: 12px;
}

/* Góc hoa văn vàng kim loại sắc nét, sang trọng */
.gift-envelope__corner {
    position: absolute;
    z-index: 1;
    width: 22px;
    height: 22px;
    color: var(--gift-envelope-gold-light);
    opacity: 0.88;
}

.gift-envelope__corner--top-left {
    top: 10px;
    left: 10px;
}

.gift-envelope__corner--top-right {
    top: 10px;
    right: 10px;
}

.gift-envelope__corner--bottom-right {
    right: 15px;
    bottom: 15px;
}

.gift-envelope__corner--bottom-left {
    bottom: 10px;
    left: 10px;
}

/* Đồng xu trang trí trên mặt thiệp */
.gift-envelope__coin {
    position: absolute;
    z-index: 1;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.26)) drop-shadow(0 0 2px rgba(216, 199, 163, 0.22));
}

.gift-envelope__coin svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Sắp xếp các đồng xu có kích thước đa dạng lớn nhỏ tạo chiều sâu */
.gift-envelope__coin--top-large {
    top: 35px;
    right: 16px;
    width: 18px;
    height: 18px;
}

.gift-envelope__coin--top-small-a {
    top: 38px;
    left: 20px;
    width: 9px;
    height: 9px;
    opacity: 0.85;
}

.gift-envelope__coin--top-small-b {
    top: 50px;
    left: 32px;
    width: 6px;
    height: 6px;
    opacity: 0.55;
}

.gift-envelope__coin--bottom-large {
    bottom: 35px;
    left: 16px;
    width: 18px;
    height: 18px;
}

.gift-envelope__coin--bottom-small-a {
    bottom: 38px;
    right: 20px;
    width: 9px;
    height: 9px;
    opacity: 0.85;
}

.gift-envelope__coin--bottom-small-b {
    bottom: 50px;
    right: 32px;
    width: 6px;
    height: 6px;
    opacity: 0.55;
}

/* ── Cấu trúc Đồng xu xoay quanh (Orbit coins): LỚN & NHỎ đa dạng ── */
.gift-envelope__hint {
    position: relative;
    z-index: 3;
    margin: 0;
    color: var(--gift-envelope-gold-light);
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 1.2px;
    transform: translateY(-4px);
}

.gift-envelope__orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 1;
    pointer-events: none;
}

.gift-envelope__orbit-arm {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}

/* Nhịp độ quỹ đạo mượt mà và chậm rãi, tạo cảm giác lững lờ cực kỳ tinh tế */
.gift-envelope__orbit-arm--a {
    animation: gift-envelope-orbit-arm-a 5.5s ease-in-out infinite;
}

.gift-envelope__orbit-arm--b {
    animation: gift-envelope-orbit-arm-b 6.2s ease-in-out 0.4s infinite;
}

.gift-envelope__orbit-arm--c {
    animation: gift-envelope-orbit-arm-c 5.8s ease-in-out 0.8s infinite;
}

.gift-envelope__orbit-arm--d {
    animation: gift-envelope-orbit-arm-d 6.8s ease-in-out 0.2s infinite;
}

.gift-envelope__orbit-coin {
    position: absolute;
    display: block;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

/* Thiết kế kích thước đa sắc thái (Có chiều sâu 3D xa gần) */
.gift-envelope__orbit-arm--a .gift-envelope__orbit-coin {
    top: -11px;
    left: -11px;
    width: 22px;
    /* Đồng xu rất lớn phía trước */
    height: 22px;
    z-index: 5;
    filter: drop-shadow(0 0 8px rgba(216, 199, 163, 0.46));
    animation: gift-envelope-orbit-counter 5.5s ease-in-out infinite, gift-envelope-spin-3d 2.8s linear infinite;
}

.gift-envelope__orbit-arm--b .gift-envelope__orbit-coin {
    top: -6px;
    left: -6px;
    width: 12px;
    /* Đồng xu nhỏ ở hậu cảnh */
    height: 12px;
    z-index: 1;
    opacity: 0.65;
    filter: drop-shadow(0 0 4px rgba(216, 199, 163, 0.26)) blur(0.5px);
    animation: gift-envelope-orbit-counter 6.2s ease-in-out 0.4s infinite, gift-envelope-spin-3d 3.5s linear infinite;
}

.gift-envelope__orbit-arm--c .gift-envelope__orbit-coin {
    top: -9px;
    left: -9px;
    width: 17px;
    /* Đồng xu kích cỡ vừa */
    height: 17px;
    z-index: 4;
    filter: drop-shadow(0 0 6px rgba(216, 199, 163, 0.38));
    animation: gift-envelope-orbit-counter 5.0s ease-in-out 0.8s infinite, gift-envelope-spin-3d 2.2s linear infinite;
}

.gift-envelope__orbit-arm--d .gift-envelope__orbit-coin {
    top: -4px;
    left: -4px;
    width: 8px;
    /* Đồng xu siêu nhỏ */
    height: 8px;
    z-index: 1;
    opacity: 0.45;
    filter: drop-shadow(0 0 3px rgba(216, 199, 163, 0.22)) blur(1px);
    animation: gift-envelope-orbit-counter 6.8s ease-in-out 0.2s infinite, gift-envelope-spin-3d 4s linear infinite;
}

.gift-envelope__orbit-coin svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Con Dấu Niêm Phong Sang Trọng Hơn */
.gift-envelope__seal {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 90px;
    height: 90px;
    border: 3.5px solid var(--gift-envelope-gold-light);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #8D2A34, #5A121A 82%);
    color: var(--gift-envelope-gold-light);
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 42px;
    line-height: 1;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 10px rgba(248, 221, 155, 0.38);
    box-shadow: 0 0 0 1.5px rgba(216, 199, 163, 0.28),
        0 0 20px rgba(216, 199, 163, 0.24),
        inset 0 0 12px rgba(0, 0, 0, 0.4);
    animation: gift-envelope-glow 3.2s ease-in-out infinite;
}

.gift-envelope__seal span {
    transform: translateY(-2px);
    font-weight: bold;
}

.gift-envelope__slash {
    position: absolute;
    z-index: 1;
    right: 19px;
    bottom: 17px;
    width: 10px;
    height: 10px;
    opacity: 0.65;
}

.gift-envelope__slash::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 1px;
    background: var(--gift-envelope-gold-light);
    transform: rotate(-45deg);
    box-shadow: 0 0 4px rgba(248, 221, 155, 0.58);
}

.gift-qr-panel {
    display: grid;
    gap: 10px;
    border-radius: 18px;
    padding: 12px;
    width: fit-content;
}

.gift-qr-panel__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 500px);
    gap: 24px;
}

.gift-qr-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.gift-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.gift-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gift-modal.is-manage-preview {
    align-items: flex-start;
}

.gift-modal.is-manage-preview .gift-modal__dialog {
    max-height: calc(var(--gift-modal-preview-visible-height, 100vh) - 40px);
    margin-top: var(--gift-modal-preview-offset, 20px);
}

.gift-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.gift-modal__dialog {
    position: relative;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 24px;
    background: #f7f1e6;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    z-index: 1;
    width: min(500px, 100%);
}

.gift-modal__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    align-items: center;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
        url('../images/template-3/bg-frame.webp');
}

.gift-modal__title {
    color: #701620;
    text-align: center;
    font-style: normal;
    font-weight: 600;
    line-height: 1.4;
    font-size: clamp(20px, 3.3vw, 24px);
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
}

.gift-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    color: #4B382A;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 2;
}

.gift-modal__close:focus-visible {
    outline: 2px solid #4B382A;
    outline-offset: 2px;
}

.gift-qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.gift-qr-card__role {
    margin: 0 0 8px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #4B382A;
    font-size: clamp(10px, 1.3vw, 13px);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gift-qr-card__media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.gift-qr-card__image {
    display: flex;
    justify-content: center;
    width: 100%;
}

.gift-qr-card__image img {
    display: block;
    padding: 8px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.20);
    background: #FFF;
    margin-bottom: 0;
    max-width: 146px;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

.gift-qr-card__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #4B382A;
    font-size: clamp(9px, 1.2vw, 12px);
    font-weight: 600;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gift-qr-card__download-icon {
    display: grid;
    place-items: center;
}

.gift-qr-card__download-icon--done,
.gift-qr-card__download.is-downloaded .gift-qr-card__download-icon--down {
    display: none;
}

.gift-qr-card__download.is-downloaded .gift-qr-card__download-icon--done {
    display: grid;
}

.gift-qr-card__download.is-downloaded {
    background: rgba(255, 255, 255, 0.92);
    border-color: #4B382A;
    color: #355643;
}

.gift-qr-card__bank,
.gift-qr-card__number,
.gift-qr-card__name {
    max-width: 100%;
    word-break: break-word;
}

.gift-qr-card__bank {
    color: #4B382A;
    text-align: center;
    font-size: clamp(12px, 1.6vw, 15px);
    font-weight: 400;
    line-height: 1.5;
}

.gift-qr-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
    color: #4B382A;
    font-size: clamp(11px, 1.5vw, 14px);
    font-weight: 600;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.gift-qr-card__number-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gift-qr-card__copy {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #4B382A;
    padding: 0;
    border-radius: 5px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    background: none;
    border: none;
}

.gift-qr-card__copy-icon {
    display: grid;
    place-items: center;
}

.gift-qr-card__copy-icon--done,
.gift-qr-card__copy.is-copied .gift-qr-card__copy-icon--copy {
    display: none;
}

.gift-qr-card__copy.is-copied .gift-qr-card__copy-icon--done {
    display: grid;
}

.gift-qr-card__copy.is-copied {
    background: #FFF;
    border-color: #4B382A;
    color: #355643;
}

.gift-qr-card__name {
    color: #4B382A;
    font-size: clamp(12px, 1.6vw, 15px);
    font-weight: 400;
    line-height: 1.5;
    text-transform: uppercase;
}

.gift-qr-card--panel {
    min-width: 0;
    gap: 4px;
}

.gift-qr-card--panel .gift-qr-card__role {
    margin: 0 0 4px;
    padding: 3px 8px;
    font-size: clamp(9px, 1.2vw, 12px);
    letter-spacing: 0.1em;
    color: #4B382A;
}

.gift-qr-card--panel .gift-qr-card__image img {
    padding: 4px;
    max-width: 100px;
    width: 100%;
    border: 1px solid rgba(53, 86, 67, 0.12);
    border-radius: 6px;
}

.gift-qr-card--panel .gift-qr-card__download {
    color: #4B382A;
    font-size: clamp(8px, 1.1vw, 11px);
    padding: 3px 6px;
}

.gift-qr-card--panel .gift-qr-card__download.is-downloaded {
    color: #355643;
}

.gift-qr-card--panel .gift-qr-card__bank,
.gift-qr-card--panel .gift-qr-card__number,
.gift-qr-card--panel .gift-qr-card__name {
    color: #4B382A;
    text-align: center;
    width: 100%;
}

.gift-qr-card--panel .gift-qr-card__bank {
    font-size: clamp(10px, 1.4vw, 13px);
    line-height: 1.4;
    font-weight: 500;
}

.gift-qr-card--panel .gift-qr-card__number {
    gap: 3px;
    padding: 3px 4px;
    width: 100%;
    box-sizing: border-box;
}

.gift-qr-card--panel .gift-qr-card__number.is-copied {
    background: rgba(53, 86, 67, 0.08);
}

.gift-qr-card--panel .gift-qr-card__number-value {
    font-size: clamp(10px, 1.4vw, 13px);
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.gift-qr-card--panel .gift-qr-card__copy {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: rgba(53, 86, 67, 0.06);
    color: #4B382A;
    border: none;
}

.gift-qr-card--panel .gift-qr-card__copy.is-copied {
    border-color: #355643;
    color: #4B382A;
}

.gift-qr-card--panel .gift-qr-card__name {
    font-size: clamp(9px, 1.2vw, 12px);
    line-height: 1.4;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    opacity: 0.85;
}

.gift-section-wrapper--direct .gift-qr-card__role,
.gift-section-wrapper--direct .gift-qr-card__download,
.gift-section-wrapper--direct .gift-qr-card__download.is-downloaded,
.gift-section-wrapper--direct .gift-qr-card__bank,
.gift-section-wrapper--direct .gift-qr-card__number,
.gift-section-wrapper--direct .gift-qr-card__copy,
.gift-section-wrapper--direct .gift-qr-card__copy.is-copied,
.gift-section-wrapper--direct .gift-qr-card__name {
    color: var(--t1-red);
}

@media screen and (min-width: 501px) {
    .gift-qr-card--panel .gift-qr-card__image img {
        max-width: 96px;
    }
}

@media screen and (max-width: 500px) {
    .gift-section-wrapper-top {
        gap: 28px;
    }

    .gift-text {
        padding-inline: 32px;
    }

    .gift-modal {
        padding: 16px;
    }

    .gift-modal__content {
        padding: 20px 16px;
    }

    .gift-modal__dialog {
        width: 100%;
    }
}

/* ── Keyframes hiệu ứng mượt mà đỉnh cao ── */
@keyframes gift-envelope-sheen {
    0% {
        left: -65%;
    }

    45%,
    100% {
        left: 140%;
    }
}

@keyframes gift-envelope-glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(216, 199, 163, 0.18), inset 0 0 12px rgba(0, 0, 0, 0.35);
        border-color: var(--gift-envelope-gold);
    }

    50% {
        box-shadow: 0 0 24px rgba(248, 221, 155, 0.34), inset 0 0 12px rgba(0, 0, 0, 0.35);
        border-color: var(--gift-envelope-cream);
    }
}

@keyframes gift-envelope-shake {

    0%,
    18%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    2% {
        transform: translateX(-5px) rotate(-2.8deg);
    }

    5% {
        transform: translateX(5px) rotate(2.8deg);
    }

    8% {
        transform: translateX(-4px) rotate(-2deg);
    }

    11% {
        transform: translateX(3px) rotate(1.4deg);
    }

    14% {
        transform: translateX(-1.5px) rotate(-0.7deg);
    }

    16% {
        transform: translateX(0) rotate(0deg);
    }
}

/* Hiệu ứng xoay tròn lật nghiêng 3D lấp lánh của đồng xu vàng */
@keyframes gift-envelope-spin-3d {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

/* Sắp đặt lại đường chạy Elip mượt mà của đồng xu, giảm đột ngột vận tốc */
@keyframes gift-envelope-orbit-arm-a {

    0%,
    100% {
        transform: rotate(5deg) translateY(calc(var(--orbit-radius, 128px) * -1)) rotate(-5deg);
    }

    50% {
        transform: rotate(35deg) translateY(calc(var(--orbit-radius, 128px) * -0.95)) rotate(-35deg);
    }
}

@keyframes gift-envelope-orbit-arm-b {

    0%,
    100% {
        transform: rotate(95deg) translateY(calc(var(--orbit-radius, 128px) * -1.05)) rotate(-95deg);
    }

    50% {
        transform: rotate(125deg) translateY(calc(var(--orbit-radius, 128px) * -1)) rotate(-125deg);
    }
}

@keyframes gift-envelope-orbit-arm-c {

    0%,
    100% {
        transform: rotate(235deg) translateY(calc(var(--orbit-radius, 128px) * -0.92)) rotate(-235deg);
    }

    50% {
        transform: rotate(258deg) translateY(calc(var(--orbit-radius, 128px) * -0.88)) rotate(-258deg);
    }
}

@keyframes gift-envelope-orbit-arm-d {

    0%,
    100% {
        transform: rotate(275deg) translateY(calc(var(--orbit-radius, 128px) * -1)) rotate(-275deg);
    }

    50% {
        transform: rotate(305deg) translateY(calc(var(--orbit-radius, 128px) * -0.92)) rotate(-305deg);
    }
}

@keyframes gift-envelope-orbit-counter {

    0%,
    100% {
        transform: rotate(12deg);
    }

    50% {
        transform: rotate(-12deg);
    }
}

/* ── Responsive thiết bị màn hình rộng ── */
@media screen and (min-width: 768px) {
    .gift-envelope {
        --orbit-radius: 175px;
    }

    .gift-envelope__card {
        width: 210px;
    }

    .gift-envelope__seal {
        width: 118px;
        height: 118px;
        font-size: 54px;
    }

    .gift-envelope__coin--top-large,
    .gift-envelope__coin--bottom-large {
        width: 23px;
        height: 23px;
    }

    .gift-envelope__coin--top-small-a,
    .gift-envelope__coin--bottom-small-a {
        width: 12px;
        height: 12px;
    }

    .gift-envelope__coin--top-small-b,
    .gift-envelope__coin--bottom-small-b {
        width: 8px;
        height: 8px;
    }

    /* Resize đồng xu bay lớn nhỏ trên desktop */
    .gift-envelope__orbit-arm--a .gift-envelope__orbit-coin {
        width: 30px;
        height: 30px;
        top: -15px;
        left: -15px;
    }

    .gift-envelope__orbit-arm--b .gift-envelope__orbit-coin {
        width: 15px;
        height: 15px;
        top: -7.5px;
        left: -7.5px;
    }

    .gift-envelope__orbit-arm--c .gift-envelope__orbit-coin {
        width: 24px;
        height: 24px;
        top: -12px;
        left: -12px;
    }

    .gift-envelope__orbit-arm--d .gift-envelope__orbit-coin {
        width: 10px;
        height: 10px;
        top: -5px;
        left: -5px;
    }

    .gift-qr-card__image img {
        max-width: 180px;
    }

    .gift-qr-card--panel .gift-qr-card__image img {
        max-width: 160px;
    }
}

@media screen and (max-width: 500px) {
    .gift-envelope__card {
        width: min(150px, 78vw);
    }

    .gift-envelope__seal {
        width: 90px;
        height: 90px;
        font-size: 42px;
    }

    .gift-modal {
        padding: 16px;
    }

    .gift-modal__content {
        padding: 20px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .gift-envelope__card,
    .gift-envelope__card::before,
    .gift-envelope__seal,
    .gift-envelope__orbit-arm,
    .gift-envelope__orbit-coin {
        animation: none;
        transition: none;
    }
}

/* Music button */
.ws-music-button-wrap {
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 9999999;
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    pointer-events: auto;
}

.ws-music-toggle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: #7F0404;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 24px -14px rgba(28, 35, 20, 0.7);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.ws-music-toggle[disabled] {
    background: #b4b4b4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.8;
}

.ws-music-toggle__icon {
    display: inline-flex;
    width: 1.4rem;
    height: 1.4rem;
}

.ws-music-toggle__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ws-music-toggle__icon--pause {
    display: none;
}

.ws-music-button-wrap.is-playing .ws-music-toggle__icon--play {
    display: none;
}

.ws-music-button-wrap.is-playing .ws-music-toggle__icon--pause {
    display: inline-flex;
}

.ws-music-button__hint {
    border-radius: 999px;
    padding: 0.3rem 1.15rem;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    color: #2a2f22;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.5);
    max-width: min(70vw, 28rem);
    text-overflow: ellipsis;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    height: 40px;
}

.ws-music-toggle:hover+.ws-music-button__hint,
.ws-music-toggle:focus-visible+.ws-music-button__hint {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

.ws-music-button-wrap.is-playing .ws-music-button__hint {
    color: #344256;
}

@keyframes ws-music-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 139, 90, 43), 0.55);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb, 139, 90, 43), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 139, 90, 43), 0);
    }
}

.ws-music-button-wrap.needs-tap .ws-music-toggle {
    animation: ws-music-pulse 1.4s ease-out infinite;
}

.ws-music-wave-bars {
    display: inline-flex;
    align-items: center;
    gap: 2.5px;
    width: 22px;
    height: 22px;
    justify-content: center;
}

.ws-music-wave-bars span {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: #fff;
    transform-origin: bottom center;
}

.ws-music-wave-bars span:nth-child(1) {
    height: 8px;
    animation: ws-bar 1.1s ease-in-out infinite;
    animation-delay: 0s;
}

.ws-music-wave-bars span:nth-child(2) {
    height: 14px;
    animation: ws-bar 1.1s ease-in-out infinite;
    animation-delay: 0.18s;
}

.ws-music-wave-bars span:nth-child(3) {
    height: 18px;
    animation: ws-bar 1.1s ease-in-out infinite;
    animation-delay: 0.08s;
}

.ws-music-wave-bars span:nth-child(4) {
    height: 12px;
    animation: ws-bar 1.1s ease-in-out infinite;
    animation-delay: 0.25s;
}

.ws-music-wave-bars span:nth-child(5) {
    height: 7px;
    animation: ws-bar 1.1s ease-in-out infinite;
    animation-delay: 0.04s;
}

@keyframes ws-bar {

    0%,
    100% {
        transform: scaleY(0.35);
    }

    50% {
        transform: scaleY(1);
    }
}

/* Guestbook */
.guestbook-section {
    text-align: center;
    color: var(--on-dark-text);
    position: relative;
    z-index: 1;
}

.guestbook-grid {
    display: grid;
    text-align: left;
}

.guestbook-form {
    display: grid;
    gap: clamp(20px, 3vw, 28px);
    z-index: 1;
    margin: auto;
    width: min(100%, 500px);
    padding-block: 40px;
}

.guestbook-field {
    position: relative;
}

.guestbook-field input,
.guestbook-field textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0;
    padding: 10px 0;
    background: transparent;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    padding-left: 12px;
    font-size: clamp(15px, 2vw, 18px);
    font-style: normal;
    line-height: normal;
    border-bottom: 1px solid rgba(216, 199, 163, 0.40);
    margin-top: 12px;
    color: #FDF8F2;
    font-family: 'Inter';
    font-weight: 400;
}

.guestbook-field label {
    position: absolute;
    left: 0;
    top: 10px;
    color: rgba(216, 199, 163, 0.50);
    font-family: 'Inter';
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 400;
    pointer-events: none;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        font-size 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.22s;
    transform-origin: left top;
    padding: 0 2px;
}

.guestbook-field input:focus,
.guestbook-field textarea:focus {
    outline: none;
    border-bottom-color: rgba(216, 199, 163, 0.85);
}

.guestbook-field input:focus+label,
.guestbook-field input:not(:placeholder-shown)+label,
.guestbook-field textarea:focus+label,
.guestbook-field textarea:not(:placeholder-shown)+label {
    transform: translateY(-18px) scale(0.72);
    font-weight: 600;
    letter-spacing: 1.2px;
}

.guestbook-field input::placeholder,
.guestbook-field textarea::placeholder {
    color: transparent;
}

.guestbook-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding-top: 8px;
}

.guestbook-load-more {
    color: #F3E1BB;
    text-align: center;
    font-family: "Montserrat";
    font-size: clamp(14px, 2vw, 17px);
    font-style: normal;
    font-weight: 600;
    line-height: 1.5;
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: none;
    padding: 12px;
}

.guestbook-load-more:hover {
    text-decoration: underline;
}

/* notice */
.guestbook-notice {
    font-family: "Montserrat";
    font-size: clamp(12px, 1.6vw, 15px);
    font-style: normal;
    line-height: 1.5;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-align: center;
    color: #D8C7A3;
}

.guestbook-notice.is-error {
    color: #e8a0a0;
}

.guestbook-notice[hidden] {
    display: none;
}

/* divider */
.guestbook-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* list wrap */
.guestbook-list-wrap {
    display: grid;
    gap: clamp(16px, 2.5vw, 24px);
    z-index: 2;
}

.guestbook-list-wrap[hidden] {
    display: none;
}

.guestbook-list-count {
    color: var(--on-dark-text-subtle);
    margin-left: 4px;
}

.guestbook-list {
    display: grid;
    gap: 16px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
    width: min(100%, 500px);
    margin: auto;
    overflow-x: hidden;
}

.guestbook-entry.is-hidden[hidden] {
    display: none;
}

.guestbook-load-more-wrap {
    display: flex;
    justify-content: center;
}

.guestbook-load-more[hidden] {
    display: none;
}

.guestbook-list::-webkit-scrollbar {
    width: 6px;
}

.guestbook-list::-webkit-scrollbar-track {
    background: transparent;
}

.guestbook-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
}

.guestbook-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.75);
}

/* entry */
.guestbook-entry {
    display: flex;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    align-self: stretch;
    border-radius: 2px;
    border: 1px solid rgba(216, 199, 163, 0.10);
    background: #5A121A;

}

.guestbook-entry__name {
    font-size: clamp(11px, 1.5vw, 13px);
    color: #D8C7A3;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    line-height: 15px;
    text-transform: uppercase;
}


.guestbook-entry__date {
    font-family: 'Lato', sans-serif;
    font-size: clamp(10px, 1.3vw, 13px);
    color: #7a6f67;
    letter-spacing: 1px;
    white-space: nowrap;
}

.guestbook-entry__message {
    font-size: clamp(11px, 1.5vw, 18px);
    font-family: 'Inter';
    font-style: italic;
    font-weight: 400;
    line-height: 24px;
    color: #D8C7A3;
}

.guestbook-entry__message::before {
    content: none;
}

/* empty state */
.guestbook-empty {
    font-family: "Cormorant", serif;
    font-style: italic;
    text-align: center;
    color: var(--on-dark-text-subtle);
    font-size: clamp(14px, 2vw, 18px);
    padding: 28px 0;
    letter-spacing: 0.06em;
}

/* Template 5 guestbook layout with the template 1 red palette. */
.guestbook-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--t1-primary);
    text-align: center;
}

.guestbook-grid {
    width: min(100%, 500px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    align-self: center;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.guestbook-section__title {
    margin: 0;
    color: var(--t1-secondary);
    font-family: "Great Vibes", cursive;
    font-size: 42px;
    font-style: normal;
    font-weight: 400;
    line-height: 48px;
    text-align: center;
}

.guestbook-section__subtitle {
    max-width: 350px;
    margin: 0;
    color: rgba(104, 14, 14, 0.9);
    font-family: "Literata", serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: normal;
    text-align: center;
    text-transform: none;
}

.guestbook-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.guestbook-field {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.guestbook-field input,
.guestbook-field textarea {
    width: 100%;
    min-height: 45px;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(136, 41, 37, 0.68);
    border-radius: 15px;
    background: rgba(255, 250, 246, 0.58);
    color: #4f1714;
    caret-color: rgb(136, 41, 37);
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.guestbook-field textarea {
    min-height: 96px;
    resize: vertical;
}

.guestbook-field input::placeholder,
.guestbook-field textarea::placeholder {
    color: rgba(104, 14, 14, 0.68);
    opacity: 1;
}

.guestbook-field input:focus,
.guestbook-field textarea:focus {
    border-color: rgb(136, 41, 37);
    background: rgba(255, 250, 246, 0.82);
    box-shadow: 0 0 0 3px rgba(136, 41, 37, 0.14);
}

.guestbook-actions {
    width: 100%;
    display: flex;
    padding: 0;
}

.btn-guestbook {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border: 0;
    border-radius: 999px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 180ms ease, opacity 180ms ease;
    background: var(--t1-red);
    color: #fff;
}

.btn-guestbook:hover {
    opacity: 0.9;
}

/* .btn-guestbook:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
} */

.guestbook-notice {
    width: 100%;
    color: var(--t1-secondary);
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: normal;
    text-align: center;
    text-transform: none;
}

.guestbook-list-wrap,
.guestbook-list {
    width: 100%;
}

.guestbook-list-wrap {
    padding: 0 6px 0 0;
}

.guestbook-list {
    gap: 0;
    max-height: 250px;
    margin: 0;
    overflow-y: auto;
    text-align: left;
    scrollbar-color: rgba(136, 41, 37, 0.78) rgba(136, 41, 37, 0.12);
}

.guestbook-list::-webkit-scrollbar {
    width: 4px;
    border-radius: 999px;
}

.guestbook-list::-webkit-scrollbar-track {
    background: rgba(136, 41, 37, 0.12);
    border-radius: 999px;
}

.guestbook-list::-webkit-scrollbar-thumb,
.guestbook-list::-webkit-scrollbar-thumb:hover {
    background: rgba(136, 41, 37, 0.78);
    border: 0;
    border-radius: 999px;
}

.guestbook-entry {
    padding: 12px 0;
    border: 0;
    background: transparent;
}

.guestbook-entry__name {
    color: rgb(136, 41, 37);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-transform: capitalize;
}

.guestbook-entry__message {
    color: rgba(68, 47, 43, 0.94);
    font-size: 14px;
    line-height: 1.4;
}

@media (max-width: 575px) {
    .guestbook-section__title {
        font-size: 38px;
        line-height: 44px;
    }
}

/* rsvp */
.rsvp-btn-confirm {
    font-size: clamp(13px, 1.8vw, 14px);
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    text-align: center;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    line-height: 12px;
    letter-spacing: 1.2px;
    background: #570013;
    color: #FFE088;
    border: 1px solid #D8C7A3;
    cursor: pointer;
    padding: 14px 0;
    margin-top: 32px;
    border-radius: 4px;
    text-transform: uppercase;
}

.rsvp-btn-close {
    font-size: clamp(13px, 1.8vw, 14px);
    border-radius: 4px;
    text-align: center;
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    padding: 10px 0;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    width: 100%;
    gap: 8px;
    cursor: pointer;
    width: min(100%, 500px);
    margin: auto;
    z-index: 10;
    background: #ccc;
    border: 1px solid #ccc;
    color: #000;
}

.rsvp-btn-confirm:hover,
.rsvp-btn-close:hover {
    opacity: 0.9;
    transition: opacity 0.2s ease-in-out;
}

.rsvp__notice {
    border-radius: 4px;
    font-family: 'Inter';
}

.ws-template-1-thanks-footer .vowry-me {
    bottom: -26px;
    color: rgba(68, 47, 43, 0.94);
}
