/* ======================================================================
   GIFT CARD V2 — shared host registry + guest wishlist
   ====================================================================== */

:root {
    --surface-keyline-fallback: rgba(30, 30, 30, 0.34);
    --surface-shadow-fallback: rgba(30, 30, 30, 0.20);
    --surface-keyline: color-mix(in oklab, #1e1e1e 34%, transparent);
    --surface-shadow: color-mix(in oklab, #1e1e1e 20%, transparent);
}

:root[data-wishlist-bg-dark="true"] {
    --surface-keyline-fallback: rgba(237, 230, 220, 0.34);
    --surface-shadow-fallback: rgba(237, 230, 220, 0.20);
    --surface-keyline: color-mix(in oklab, #ede6dc 34%, transparent);
    --surface-shadow: color-mix(in oklab, #ede6dc 20%, transparent);
}

.gift-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
    gap: 20px;
    padding: 0 40px 60px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    justify-items: center;
    align-items: start;
}

body.registry-page .gift-list {
    padding: 60px 40px;
    gap: 12px;
}

.gift-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 224px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    align-self: start;
    transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.host-registry-page .gift-card,
body.registry-page .gift-card {
    background: #ffffff;
    border-radius: 0px;
    border: none;
    overflow: hidden;
}

@media (hover: hover) {
    .gift-card:hover {
        transform: translate(-2px, -2px);
        box-shadow: 6px 6px 0 0 var(--coral);
        outline: none;
        border: none;
    }
}

.gift-card-image {
    width: 100%;
    aspect-ratio: 1;
    -webkit-clip-path: inset(0);
    clip-path: inset(0);
    position: relative;
    overflow: hidden;
    background-color: #e3dcd6;
    cursor: pointer;
    contain: paint;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.gift-card-image:focus {
    outline: none;
}

.gift-card:focus,
.gift-card:focus-visible {
    outline: none;
}

.gift-card-image::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-image: var(--gift-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px) brightness(1.1);
    opacity: 0.6;
    z-index: 0;
    border-radius: 0px;
}

.gift-card-image.white-edges {
    background-color: var(--edge-color, white);
}

.gift-card-image.white-edges::before {
    filter: none;
    background: var(--edge-color, white);
    background-image: none;
    opacity: 1;
}

.gift-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--gift-image);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
    border-radius: 0px;
}

body.host-registry-page .gift-card-image,
body.host-registry-page .gift-card-image::before,
body.host-registry-page .gift-card-image::after,
body.registry-page .gift-card-image,
body.registry-page .gift-card-image::before,
body.registry-page .gift-card-image::after {
    border-radius: 0px;
}

.gift-card-image[onclick],
.gift-card-image:focus {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    outline: none;
}

.gift-card-image:hover {
    outline: none;
    border: none;
}

.gift-card-content {
    display: flex;
    flex-direction: column;
    padding: 0;
    width: 100%;
    position: relative;
    z-index: 2;
    opacity: 1;
    visibility: visible;
}

.card-title-price-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    min-height: calc(2.4em + 34px);
    height: auto;
    line-height: 1.2;
    font-size: 18px;
    padding: 14px 16px 16px;
    margin-bottom: 0;
    overflow: visible;
}

.card-title {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 400;
    color: var(--maroon);
    letter-spacing: -0.02em;
    font-family: 'Nanum Myeongjo', serif;
    text-align: left;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
    min-height: 2.4em;
    flex-shrink: 0;
}

.card-user-count {
    color: #262e2e;
    padding: 0;
    font-size: 18px;
    font-weight: 500;
    font-family: 'Nanum Myeongjo', serif;
    text-align: left;
    line-height: 1.2;
    margin: 0;
    display: block;
    flex-shrink: 0;
}

.card-user-count .attribute-value {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 15px;
    color: #262e2e;
}

.card-progress-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid color-mix(in oklab, var(--maroon) 9%, transparent);
    padding: 11px 16px 16px;
    margin-bottom: 0;
}

.card-progress-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.card-progress-pct {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--gift-card-accent);
}

.card-progress-pct.fully-funded {
    color: color-mix(in oklab, var(--yellow) 78%, var(--black));
}

.card-progress-label {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: color-mix(in oklab, var(--black) 38%, transparent);
}

.card-progress-label.fully-funded {
    color: color-mix(in oklab, var(--yellow) 65%, var(--black));
    font-weight: 700;
}

.card-progress-bar {
    width: 100%;
    height: 5px;
    background-color: color-mix(in oklab, var(--maroon) 9%, transparent);
    overflow: visible;
    position: relative;
}

.card-progress-fill {
    height: 100%;
    background-color: var(--gift-card-accent);
    transition: width 0.3s ease;
    position: relative;
}

.card-progress-fill::after {
    content: "";
    position: absolute;
    right: 0;
    top: -3px;
    width: 2px;
    height: 11px;
    background: inherit;
}

/* Slower, eased growth used right after a contribution so the guest sees the bar travel from
   its previous position to the new one. */
.card-progress-fill--filling {
    transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.card-progress-fill.fully-funded {
    background-color: var(--yellow);
}

.card-progress-fill.fully-funded::after {
    background: var(--yellow);
}

.gift-card-view-product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    background: var(--cream);
    border: 1px solid transparent;
    color: var(--maroon);
    font-family: 'Nanum Myeongjo', serif;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.gift-card-view-product-btn:hover {
    background: white;
    border-color: var(--maroon);
}

.gift-card-view-product-btn:hover i,
.gift-card-view-product-btn:hover span {
    color: var(--maroon);
}

.gift-card-view-product-btn i {
    font-size: 10px;
    transition: color 0.2s ease;
}

.gift-card-view-product-btn span {
    letter-spacing: -0.2px;
    transition: color 0.2s ease;
}

.gift-card-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    background: var(--yellow);
    border: 1px solid transparent;
    border-radius: 0px;
    color: var(--maroon);
    font-family: 'Nanum Myeongjo', serif;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.gift-card-buy-btn:hover {
    background: color-mix(in oklab, var(--yellow) 82%, var(--black));
    border-color: transparent;
}

.gift-card-buy-btn:hover i,
.gift-card-buy-btn:hover span {
    color: var(--maroon);
}

.gift-card-buy-btn i {
    font-size: 10px;
    transition: color 0.2s ease;
}

.gift-card-buy-btn span {
    letter-spacing: -0.2px;
    transition: color 0.2s ease;
}

.gift-card-contribute-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 0px;
    background: var(--gift-card-accent);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
}

.reserved-bar,
.gifted-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 15;
    pointer-events: none;
}

.reserved-bar {
    background: var(--maroon);
    transform: translateY(0);
    animation: reservedBarSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reserved-bar--yours {
    gap: 6px;
}

.reserved-bar--yours {
    background: var(--hzl-pink, #e163c3);
}

@keyframes reservedBarSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

body.registry-page .gift-card--completed:has(.reserved-bar) .gift-card-image::before {
    filter: blur(20px) brightness(0.82) saturate(0.45);
    opacity: 0.5;
    transition: filter 0.35s ease, opacity 0.35s ease;
}

body.registry-page .gift-card--completed:has(.reserved-bar) .gift-card-image::after {
    filter: saturate(0.45) brightness(0.82);
    transition: filter 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
    .reserved-bar {
        animation: none;
    }

    body.registry-page .gift-card--completed:has(.reserved-bar) .gift-card-image::before,
    body.registry-page .gift-card--completed:has(.reserved-bar) .gift-card-image::after {
        transition: none;
    }
}

.gifted-bar {
    background: var(--yellow);
}

.reserved-bar::before,
.reserved-bar::after {
    content: "";
    width: 16px;
    height: 1px;
    background: rgba(237, 230, 220, 0.35);
}

.reserved-bar--yours::before,
.reserved-bar--yours::after {
    width: 10px;
    background: rgba(237, 230, 220, 0.45);
}

.gifted-bar::before,
.gifted-bar::after {
    content: "";
    width: 16px;
    height: 1px;
    background: rgba(86, 16, 35, 0.35);
}

.reserved-bar-text {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--cream);
}

.reserved-bar--yours .reserved-bar-text {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream, #ede6dc);
    white-space: nowrap;
}

.gifted-bar-text {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--maroon);
}

.gift-card:hover .gift-card-contribute-btn,
.gift-card-image:hover .gift-card-contribute-btn {
    opacity: 1;
    visibility: visible;
}

.gift-card--completed:hover .gift-card-contribute-btn,
.gift-card--completed .gift-card-image:hover .gift-card-contribute-btn {
    opacity: 1;
    visibility: visible;
}

.gift-card-contribute-btn i {
    font-size: 15px;
    transition: color 0.2s ease;
}

.gift-card-contribute-btn:hover {
    background: white;
}

.gift-card-contribute-btn:hover i {
    color: var(--gift-card-accent);
}

.card-delete-button {
    position: absolute;
    top: 12px;
    right: 56px;
    width: 32px;
    height: 32px;
    border-radius: 0px;
    background-color: var(--gift-card-accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, color 0.2s ease;
    font-size: 20px;
    color: white;
    font-weight: 500;
    line-height: 1;
    padding: 0;
    opacity: 0;
    visibility: hidden;
}

.gift-card:hover .card-delete-button,
.gift-card-image:hover .card-delete-button {
    opacity: 1;
    visibility: visible;
}

.card-delete-button:hover {
    background-color: white;
    color: var(--gift-card-accent);
}

.card-delete-button::before {
    content: '−';
    display: block;
}

@media screen and (max-width: 1024px) and (min-width: 641px) {
    .gift-list,
    body.registry-page .gift-list,
    body.host-registry-page .gift-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 640px) {
    .gift-list,
    body.registry-page .gift-list,
    body.host-registry-page .gift-list {
        grid-template-columns: minmax(0, 1fr) !important;
        max-width: 380px !important;
        margin: 0 auto !important;
        gap: 24px !important;
        padding: 0 16px 48px !important;
        justify-items: center !important;
    }

    .gift-card {
        width: 100% !important;
        max-width: 380px !important;
    }

    body.host-registry-page .gift-card--split,
    .gift-card--split {
        display: block !important;
        width: 100% !important;
        max-width: 380px !important;
        margin: 0 auto !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .gift-card--split .split-card-sizer {
        display: none !important;
    }

    .gift-card--split .split-card {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
    }

    .split-half {
        height: 116px !important;
        min-height: 116px !important;
        padding: 14px 10px 12px !important;
        gap: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: space-between !important;
        text-align: center !important;
        border-radius: 0px !important;
        border: none !important;
        box-shadow: 4px 4px 0 var(--surface-shadow, rgba(86, 16, 35, 0.2)) !important;
        transition: transform 0.12s ease, box-shadow 0.12s ease !important;
        cursor: pointer !important;
    }

    .split-half:active {
        transform: translate(2px, 2px) !important;
        box-shadow: 2px 2px 0 var(--coral, #e45558) !important;
    }

    .split-half--top {
        background: #ffffff !important;
    }

    .split-half--bottom {
        background: var(--hzl-maroon, #561023) !important;
        flex-direction: column !important;
    }

    .split-half__icon-wrap {
        width: 38px !important;
        height: 38px !important;
        flex: 0 0 38px !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

    .split-half--top .split-half__icon-wrap {
        background: transparent !important;
        border: none !important;
    }

    .split-half--bottom .split-half__icon-wrap {
        background: transparent !important;
        border: none !important;
    }

    .split-half__icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
    }

    .split-half__label {
        font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        letter-spacing: -0.01em !important;
        line-height: 1.2 !important;
        text-align: center !important;
        margin: 0 auto !important;
        white-space: normal !important;
        min-height: 34px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .split-half--top .split-half__label {
        color: var(--hzl-maroon, #561023) !important;
    }

    .split-half--bottom .split-half__label {
        color: var(--cream, #ede6dc) !important;
    }

    .split-half__label br {
        display: block !important;
    }

    .gift-card-view-product-btn,
    .gift-card-buy-btn {
        width: auto !important;
        height: auto !important;
        padding: 6px 12px !important;
        gap: 6px !important;
    }

    .gift-card-view-product-btn .view-btn-text,
    .gift-card-buy-btn .view-btn-text {
        display: inline !important;
    }
}

@media screen and (max-width: 1024px) {
    body.registry-page .gift-list {
        gap: 12px;
        padding: 20px;
    }

    .gift-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .card-title-price-container {
        min-height: calc(2.4em + 36px);
        height: auto;
        font-size: 15px;
        overflow: visible;
    }

    .card-title {
        font-size: 25px;
        line-height: 1.2;
        min-height: 2.4em;
    }

    .card-user-count,
    .card-user-count .attribute-value,
    body.registry-page .card-user-count--remaining .attribute-value,
    body.host-registry-page .card-user-count--remaining .attribute-value {
        font-size: 18px !important;
    }

    .card-progress-container {
        gap: 6px;
    }

    .gift-card-view-product-btn,
    .gift-card-buy-btn {
        width: 32px;
        height: 32px;
        padding: 0;
        gap: 0;
        border-radius: 0px;
    }

    .gift-card-view-product-btn i,
    .gift-card-buy-btn i {
        font-size: 13px;
    }

    .gift-card-view-product-btn .view-btn-text,
    .gift-card-buy-btn .view-btn-text {
        display: none;
    }

    .gift-card-contribute-btn {
        opacity: 1 !important;
        visibility: visible !important;
        width: 36px;
        height: 36px;
    }

    .gift-card-contribute-btn i {
        font-size: 15px;
    }

    body.host-registry-page .card-delete-button {
        display: none !important;
    }
}

/* Guest + host wishlist cards — price switches between a simple value and contribution progress. */
body.registry-page .card-price-row,
body.host-registry-page .card-price-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 36px;
    min-height: 36px;
    box-sizing: border-box;
}

body.registry-page .card-user-count--remaining,
body.host-registry-page .card-user-count--remaining {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

body.registry-page .card-user-count--remaining .attribute-value,
body.host-registry-page .card-user-count--remaining .attribute-value {
    font-size: 14px;
}

body.registry-page .card-remaining-label,
body.host-registry-page .card-remaining-label {
    font-family: 'Nanum Myeongjo', serif;
    text-transform: uppercase;
}

body.registry-page .card-remaining-label,
body.host-registry-page .card-remaining-label {
    color: color-mix(in oklab, var(--black) 38%, transparent);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
}

body.registry-page .card-price-row--progress .card-progress-container,
body.host-registry-page .card-price-row--progress .card-progress-container {
    border: 0;
    padding: 0;
    margin: 8px 0 0;
}

body.host-registry-page .card-price-row {
    align-items: stretch;
    gap: 0;
}

body.host-registry-page .card-price-details {
    display: flex;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

body.host-registry-page .card-price-row--progress .card-progress-container {
    width: 100%;
    margin-top: 6px;
}

body.host-registry-page .card-product-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding: 0 16px 14px;
    box-sizing: border-box;
}

body.host-registry-page .card-product-row .gift-card-view-product-btn,
body.host-registry-page .card-product-row .gift-card-buy-btn {
    width: auto;
    height: auto;
    padding: 6px 10px;
    gap: 4px;
    border-radius: 0px;
}

body.host-registry-page .card-product-row .gift-card-view-product-btn .view-btn-text,
body.host-registry-page .card-product-row .gift-card-buy-btn .view-btn-text {
    display: inline;
}

body.registry-page .card-price-row--reserved-by-user {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
}

body.registry-page .gift-card-contribute-btn {
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    opacity: 1;
    visibility: visible;
    width: clamp(34px, 18%, 48px);
    height: auto;
    aspect-ratio: 1;
    box-shadow: none;
}

body.registry-page .gift-card-contribute-btn i {
    font-size: 13px;
}

body.registry-page .gift-card-contributions-unavailable {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 20;
    min-height: 34px;
    padding: 7px 9px;
    border: none;
    border-radius: 0;
    background: rgba(237, 230, 220, 0.92);
    color: rgba(86, 16, 35, 0.72);
    cursor: not-allowed;
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: clamp(8px, 2.3vw, 10px);
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
}

body.registry-page .gift-card-contribute-btn--unreserve {
    background: var(--hzl-pink, #e163c3);
    color: var(--cream, #ede6dc);
}

body.registry-page .gift-card-contribute-btn--unreserve:hover {
    background: color-mix(in oklab, var(--hzl-pink, #e163c3) 85%, black);
}

body.registry-page .gift-card-contribute-btn--unreserve:hover i {
    color: var(--cream, #ede6dc);
}

body.registry-page .card-price-row .gift-card-contribute-btn--unreserve {
    position: static;
    width: 28px;
    height: 28px;
    aspect-ratio: auto;
    flex: 0 0 28px;
    margin-right: 8px;
}

body.registry-page .card-price-row .gift-card-contribute-btn--unreserve i {
    font-size: 11px;
}

body.registry-page .gift-card,
body.registry-page .gift-card:hover,
body.registry-page .gift-card:active {
    transform: none;
    box-shadow: none;
    transition: box-shadow 90ms ease;
}

body.registry-page .gift-card.gift-card--tap-highlight,
body.registry-page .gift-card.gift-card--tap-highlight:hover,
body.registry-page .gift-card.gift-card--tap-highlight:active {
    transform: none;
    box-shadow: 4px 4px 0 0 var(--coral);
}

body.host-registry-page .gift-card.gift-card--tap-highlight,
body.host-registry-page .gift-card.gift-card--tap-highlight:hover,
body.host-registry-page .gift-card.gift-card--tap-highlight:active {
    transform: none;
    box-shadow: 4px 4px 0 0 var(--coral);
}

/* Guest + host registry — gift description preview */
.gc-note {
    padding: 0 16px 14px;
    width: 100%;
    box-sizing: border-box;
}

.gc-note__msg {
    margin: 0;
    padding: 10px 12px;
    background: color-mix(in oklab, var(--cream) 55%, white);
    border-left: 3px solid var(--coral);
    box-sizing: border-box;
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 0.92rem;
    line-height: 1.4;
    color: #262e2e;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    height: calc(2.8em + 12px);
}

.gc-note--clickable {
    cursor: pointer;
}

/* Host and guest cards use one background-derived separation treatment.
   Static declarations remain as fallbacks for browsers without color-mix. */
body.registry-page .gift-card:not(.gift-card--split),
body.registry-page .gift-card:not(.gift-card--split):hover,
body.registry-page .gift-card:not(.gift-card--split):active,
body.registry-page .gift-card:not(.gift-card--split).gift-card--tap-highlight,
body.host-registry-page .gift-card:not(.gift-card--split),
body.host-registry-page .gift-card:not(.gift-card--split):hover,
body.host-registry-page .gift-card:not(.gift-card--split):active,
body.host-registry-page .gift-card:not(.gift-card--split).gift-card--tap-highlight {
    transform: none;
    /* border: 1px solid var(--surface-keyline-fallback);
    border-color: var(--surface-keyline); */
    box-shadow: 6px 6px 0 var(--surface-shadow-fallback);
    box-shadow: 6px 6px 0 var(--surface-shadow);
    transition: none;
}

/* ======================================================================
   CONTRIBUTION BAR LOADING SHIMMER
   Shown on a single card while its funding state is re-fetched after a
   contribution. Only the bar shimmers - the product image is untouched.
   ====================================================================== */

.card-progress-container--loading .card-progress-bar {
    background-image: linear-gradient(
        90deg,
        color-mix(in oklab, var(--maroon) 7%, transparent) 0%,
        color-mix(in oklab, var(--maroon) 22%, transparent) 50%,
        color-mix(in oklab, var(--maroon) 7%, transparent) 100%
    );
    background-size: 200% 100%;
    animation: card-progress-shimmer 1.2s ease-in-out infinite;
}

.card-progress-container--loading .card-progress-fill {
    opacity: 0;
}

@keyframes card-progress-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .card-progress-container--loading .card-progress-bar {
        animation: none;
    }

    .card-progress-fill--filling {
        transition: none;
    }
}
