/* Shared certificate checkout: scoped to the two purchase dialogs. */
.certificate-checkout {
    position: fixed; inset: 0 auto auto 0; width: 100vw; height: 100vh; height: 100dvh;
    margin: 0; padding: 0 !important; overflow: hidden; zoom: 1; transition: none;
    background: #18140f55; color: #242424; font: 16px/1.5 'Play-Regular', sans-serif;
}
.certificate-checkout.show { opacity: 1 !important; }
.certificate-checkout *, .certificate-checkout *::before, .certificate-checkout *::after { box-sizing: border-box; }
.certificate-checkout .modal-dialog {
    width: min(960px, calc(100% - 48px)); max-width: none; height: calc(100% - 48px);
    max-height: none; margin: 24px auto; display: flex; align-items: center;
    transform: none !important; min-width: 0;
}
.certificate-checkout .modal-content {
    display: flex; flex-direction: column; width: 100%; max-height: 100%; min-width: 0; overflow: hidden;
    border: 1px solid #f2e2d5; border-radius: 24px; background: #fff; color: #242424;
    box-shadow: 0 24px 80px #24170b33;
}
.certificate-checkout .modal-header {
    display: flex; align-items: flex-start; gap: 20px; flex: 0 0 auto;
    padding: 26px 32px 22px; border-bottom: 1px solid #f2e2d5 !important; background: #fff7ef;
}
.certificate-checkout__eyebrow { display: block; margin-bottom: 6px; color: #a74b05; font-size: 12px; letter-spacing: .06em; }
.certificate-checkout .modal-title { margin: 0; font: 26px/1.2 'Play-Bold', sans-serif; text-transform: none; color: #242424; }
.certificate-checkout__subtitle { margin: 10px 0 0; color: #60646b; font-size: 14px; }
.certificate-checkout .btn-close { flex: 0 0 auto; width: 24px; height: 24px; padding: 10px; margin: -4px -8px 0 auto; border-radius: 50%; background-color: #fff; opacity: .75; }
.certificate-checkout .modal-body { flex: 1 1 auto; min-height: 0; min-width: 0; padding: 28px 32px 8px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; }
.certificate-checkout h6 { font: 18px/1.4 'Play-Bold', sans-serif; color: #242424; margin: 0 0 16px; }
.certificate-checkout .section-divider { height: 1px; background: #ece7e2; margin: 28px 0; }
.certificate-checkout .certificate-checkout__nominals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px !important; }
.certificate-checkout__nominals > .col { width: auto; min-width: 0; padding: 0; margin: 0; }
.certificate-checkout .nominal-option { display: block; width: 100%; height: auto; min-height: 48px; padding: 10px 6px; border: 1px solid #e5ddd5; border-radius: 12px; background: #faf9f7; font: 15px/1.4 'Play-Bold', sans-serif; color: #242424; cursor: pointer; }
.certificate-checkout .nominal-option.active { background: #fff1e4; border: 1px solid #f77514 !important; box-shadow: inset 0 0 0 1px #f77514; line-height: 1.4; }
.certificate-checkout .other-amount-btn { min-height: 44px; padding: 10px 16px; border: 1px solid #e5ddd5; border-radius: 10px; background: white; color: #60646b; font-size: 14px; }
.certificate-checkout .custom-amount-display { font-size: 14px; color: #a74b05 !important; }
.certificate-checkout .custom-amount-display:not(:empty) { border: 1px solid #f77514 !important; }
.certificate-checkout .certificate-swiper { overflow: visible; }
.certificate-checkout [data-certificate-grid] .swiper-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; transform: none !important; height: auto; }
.certificate-checkout .certificate-swiper .swiper-slide { width: 100% !important; height: auto; min-width: 0; margin: 0 !important; padding: 10px; display: flex; flex-direction: column; gap: 10px; align-items: center; border: 1px solid #e8e1da !important; background: #faf9f7; border-radius: 14px; cursor: pointer; }
.certificate-checkout .certificate-swiper .swiper-slide.active { border: 1px solid #f77514 !important; background: #fff2e7; box-shadow: inset 0 0 0 1px #f77514; }
.certificate-checkout .certificate-swiper .swiper-slide img { display: block; width: 100%; max-width: 126px; height: auto; aspect-ratio: 126 / 178; object-fit: contain; border-radius: 8px; }
.certificate-checkout .certificate-swiper .slide-content { display: block; width: 100%; height: auto; margin: 0; padding: 0; color: #242424 !important; font: 13px/1.4 'Play-Bold', sans-serif; overflow-wrap: anywhere; }
.certificate-checkout .section-delivery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 100%; height: auto; margin: 0 0 24px; padding: 6px; border: 1px solid #e8e1da; border-radius: 14px; background: #f7f5f2; }
.certificate-checkout .delivery-option, .certificate-checkout .delivery-option.active { float: none; width: 100%; height: auto; min-height: 46px; margin: 0; padding: 10px; border: 1px solid transparent !important; border-radius: 10px; font: 15px/1.4 'Play-Bold', sans-serif; cursor: pointer; background: transparent; color: #60646b; }
.certificate-checkout .delivery-option.active { background: #f77514; color: #242424; box-shadow: 0 2px 6px #24170b14; }
.certificate-checkout .form-label { display: block; margin-bottom: 8px; font-size: 14px; color: #50545a; }
.certificate-checkout .form-control { min-height: 48px; padding: 12px 14px; border: 1px solid #e5ddd5; border-radius: 12px; background: #fafafa; color: #242424; font: 16px/1.4 'Play-Regular', sans-serif; }
.certificate-checkout .form-control:focus { background: #fff; border-color: #f77514; box-shadow: 0 0 0 3px #f7751420; }
.certificate-checkout .form-text-label { color: #60646b; font: 13px/1.6 'Play-Regular', sans-serif; padding: 0 0 4px; }
.certificate-checkout .office-info { background: #fff7ef; border: 1px solid #f2e2d5; border-radius: 14px; padding: 20px; font-size: 14px; }
.certificate-checkout__consents { padding: 20px; border-radius: 16px; background: #f7f7f7; }
.certificate-checkout .form-check { min-height: 24px; padding-left: 30px; }
.certificate-checkout .form-check-input { width: 20px; height: 20px; margin-left: -30px; cursor: pointer; }
.certificate-checkout .form-check-label { display: block; color: #60646b; font-size: 13px; line-height: 1.6; cursor: pointer; }
#certificateModal .certificate-checkout__consents { min-width: 0; max-width: 100%; }
#certificateModal .certificate-checkout__consent {
    position: relative !important; display: block !important; box-sizing: border-box;
    width: 100% !important; min-width: 0; height: auto !important; min-height: 24px;
    max-height: none !important; margin: 0 !important; padding: 0 0 0 32px !important;
}
#certificateModal .certificate-checkout__consent + .certificate-checkout__consent { margin-top: 18px !important; }
#certificateModal input.certificate-checkout__consent-input {
    appearance: auto !important; -webkit-appearance: checkbox !important;
    position: absolute !important; inset: 3px auto auto 0 !important;
    display: block !important; float: none !important; transform: none !important;
    width: 20px !important; min-width: 20px !important; max-width: 20px !important;
    height: 20px !important; margin: 0 !important; padding: 0 !important;
    accent-color: #f77514; cursor: pointer;
}
#certificateModal label.certificate-checkout__consent-text {
    position: static !important; display: block !important; float: none !important;
    width: auto !important; min-width: 0 !important; max-width: 100% !important;
    height: auto !important; min-height: 24px; max-height: none !important;
    margin: 0 !important; padding: 0 !important; transform: none !important;
    font: 13px/1.65 'Play-Regular', sans-serif !important; color: #60646b;
    white-space: normal !important; overflow-wrap: anywhere !important;
    word-break: normal !important; text-indent: 0 !important; cursor: pointer;
}
.certificate-checkout .modal-footer { display: flex; flex: 0 0 auto; gap: 12px; padding: 18px 32px; margin: 0; border-top: 1px solid #ece7e2; background: #fff; }
.certificate-checkout .modal-footer > * { margin: 0; }
.certificate-checkout .modal-footer .btn { min-height: 48px; padding: 12px 20px; border: 1px solid #e5ddd5; border-radius: 12px; font: 15px/1.4 'Play-Bold', sans-serif; text-transform: none; }
.certificate-checkout .modal-footer .btn-secondary { background: #fff; color: #60646b; }
.certificate-checkout .modal-footer .btn-primary { background: linear-gradient(95deg, #ff6801, #ff8a00); border-color: #ff8a00; color: #242424; }
.certificate-checkout .modal-footer .btn-primary:hover { background: #f77514; }
.certificate-checkout :is(button, input):focus-visible { outline: 3px solid #a74b05; outline-offset: 3px; }
#customAmountModal .modal-dialog { width: min(440px, calc(100% - 32px)); }
#customAmountModal .modal-body { padding-bottom: 28px; }
@media (max-width: 600px) {
    .certificate-checkout .modal-dialog { width: 100%; height: 100%; margin: 0; }
    .certificate-checkout .modal-content { height: 100%; max-height: 100%; border: 0; border-radius: 0; }
    .certificate-checkout .modal-header { padding: max(18px, env(safe-area-inset-top)) 20px 18px; gap: 12px; }
    .certificate-checkout .modal-title { font-size: 23px; }
    .certificate-checkout__subtitle { font-size: 13px; }
    .certificate-checkout .modal-body { padding: 20px 16px 0; }
    .certificate-checkout .certificate-checkout__nominals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .certificate-checkout [data-certificate-grid] .swiper-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .certificate-checkout .modal-footer { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); gap: 8px; flex-wrap: nowrap; }
    .certificate-checkout .modal-footer .btn { padding: 12px; font-size: 13px; }
    .certificate-checkout .submit-certificate-btn { flex: 1; }
    .certificate-checkout__consents { padding: 16px; }
    #customAmountModal .modal-dialog { height: calc(100% - 32px); margin: 16px auto; }
    #customAmountModal .modal-content { height: auto; border-radius: 20px; }
}
