/* Optional gift dialog: native browser modality, existing storefront tokens. */
.pc-gift-dialog {
    box-sizing: border-box;
    width: min(540px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    margin: auto;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: var(--pc-ink);
    background: var(--pc-white);
    border: 1px solid var(--pc-border);
    border-radius: 12px;
    box-shadow: var(--pc-shadow);
    font-family: var(--pc-font-body);
    line-height: 1.55;
}
.pc-gift-dialog:not([open]) {
    display: none;
}
.pc-gift-dialog::backdrop {
    background: rgba(25, 37, 56, .48);
}
.pc-gift-dialog__content {
    position: relative;
    padding: 28px;
}
.pc-gift-dialog .pc-gift-dialog__title {
    margin: 0 32px 12px 0;
    color: var(--pc-ink);
    font-family: var(--pc-font-body);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
}
.pc-gift-dialog__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    color: var(--pc-ink);
    background: transparent;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    font: 28px/1 var(--pc-font-body);
    cursor: pointer;
}
.pc-gift-dialog__close:hover {
    background: var(--pc-blush);
}
.pc-gift-dialog__description,
.pc-gift-dialog__delivery {
    margin: 0;
    color: var(--pc-muted);
    font-size: 15px;
    line-height: 1.6;
}
.pc-gift-dialog__product {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 24px 0;
}
.pc-gift-dialog__image {
    flex: 0 0 auto;
    width: 112px;
    height: 140px;
    object-fit: contain;
}
.pc-gift-dialog__image[hidden] {
    display: none;
}
.pc-gift-dialog__details {
    min-width: 0;
}
.pc-gift-dialog__badge {
    margin: 0 0 7px;
    color: var(--pc-coral-dark);
    font-size: 13px;
    font-weight: 800;
}
.pc-gift-dialog .pc-gift-dialog__product-name {
    margin: 0;
    color: var(--pc-ink);
    font-family: var(--pc-font-body);
    font-size: 18px;
    font-weight: 750;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.pc-gift-dialog__actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}
.pc-gift-dialog__actions .pc-button {
    width: 100%;
    min-height: 48px;
    margin: 0;
    box-shadow: none;
    font-family: var(--pc-font-body);
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
}
.pc-gift-dialog__actions .pc-gift-dialog__accept {
    color: var(--pc-ink);
    background: var(--pc-coral);
}
.pc-gift-dialog__actions .pc-gift-dialog__accept:hover {
    color: var(--pc-white);
    background: var(--pc-coral-hover);
}
.pc-gift-dialog__error {
    margin: 16px 0 0;
    color: var(--pc-coral-dark);
    font-size: 14px;
    line-height: 1.55;
}
.pc-gift-dialog button:disabled {
    opacity: .6;
    cursor: wait;
}
@media (max-width: 380px) {
    .pc-gift-dialog__content {
        padding: 22px 20px;
    }
    .pc-gift-dialog .pc-gift-dialog__title {
        font-size: 22px;
    }
    .pc-gift-dialog__product {
        gap: 14px;
    }
    .pc-gift-dialog__image {
        width: 82px;
        height: 110px;
    }
    .pc-gift-dialog .pc-gift-dialog__product-name {
        font-size: 16px;
    }
}
