/* ── Presents section ── */

.presents-heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.gift-icon {
    width: 1.4em;
    height: 1.4em;
    margin-right: 0.2rem;
    display: inline-block;
    flex: none;
    transform: translateY(-0.08em);
}

/* Bow-tying animation: loops draw the two bow loops from the center outward */
.gift-bow-left,
.gift-bow-right {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: bowTie 3s ease-in-out infinite;
}

.gift-bow-right {
    animation-delay: 0.3s;
}

.gift-bow-tail-left,
.gift-bow-tail-right {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: bowTail 3s ease-in-out infinite 0.6s;
}

.gift-bow-knot {
    opacity: 0;
    animation: bowKnot 3s ease-in-out infinite 0.9s;
}

@keyframes bowTie {
    0%   { stroke-dashoffset: 60; }
    30%  { stroke-dashoffset: 0; }
    70%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 60; }
}

@keyframes bowTail {
    0%   { stroke-dashoffset: 30; }
    25%  { stroke-dashoffset: 0; }
    70%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 30; }
}

@keyframes bowKnot {
    0%   { opacity: 0; }
    20%  { opacity: 1; }
    70%  { opacity: 1; }
    100% { opacity: 0; }
}

/* Payment details: two buttons side by side */
.presents-details {
    display: flex;
    gap: 0.7rem;
    justify-content: center;
    margin-top: 1rem;
}

/* ── Presents modal ── */
.presents-backdrop {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.presents-backdrop[hidden] {
    display: none;
}

.presents-modal {
    background: var(--cream);
    border-radius: 16px;
    border: 2px solid rgba(90, 110, 60, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    padding: 1.5rem 1.5rem 1.2rem;
    max-width: 340px;
    width: 100%;
    position: relative;
    text-align: center;
}

.presents-modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    appearance: none;
    border: 0;
    background: transparent;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.presents-modal-close:hover {
    background: rgba(90, 110, 60, 0.1);
}

.presents-modal-close svg {
    width: 16px;
    height: 16px;
    stroke: var(--brown);
    stroke-width: 2.6;
    stroke-linecap: round;
}

.presents-modal-title {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 0.8rem;
}

.presents-modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.presents-modal-body button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg);
    border: 1.5px dashed var(--green);
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: var(--brown);
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    width: 100%;
}

.presents-modal-body button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.presents-modal-body button:active {
    transform: translateY(0);
}

.copy-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.5;
}

.presents-modal-feedback {
    font-family: 'Caveat', cursive;
    font-size: 1.05rem;
    color: var(--green);
    min-height: 1.6em;
    margin-top: 0.4rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .gift-bow-left,
    .gift-bow-right,
    .gift-bow-tail-left,
    .gift-bow-tail-right {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
        animation: none;
    }
    .gift-bow-knot {
        opacity: 1;
        animation: none;
    }
}
