/* Holiday palette: cranberry primary, pine secondary, warm gold/cream accents.
   Kendo/Telerik components read their theme from these --kendo-* custom
   properties, so overriding them here retints the wizard's buttons, selected
   toggle states, dropdowns, and stepper without touching every component. */
:root {
    --holiday-red: #b3202d;
    --holiday-red-hover: #971a26;
    --holiday-red-active: #7d1620;
    --holiday-green: #1f5c3f;
    --holiday-gold: #c9a227;
    --holiday-cream: #fbf7ef;

    /* !important: the Telerik theme stylesheet loads after app.css and
       re-declares these same variables on :root, which would otherwise win
       the cascade at equal specificity and silently discard our palette. */
    --kendo-color-primary: var(--holiday-red) !important;
    --kendo-color-primary-hover: var(--holiday-red-hover) !important;
    --kendo-color-primary-active: var(--holiday-red-active) !important;
    --kendo-color-primary-emphasis: rgba(179, 32, 45, 0.4) !important;
    --kendo-color-primary-subtle: #f8dce0 !important;
    --kendo-color-primary-subtle-hover: #f2c6cc !important;
    --kendo-color-primary-subtle-active: #ecb0b8 !important;

    --bs-primary: var(--holiday-red);
    --bs-primary-rgb: 179, 32, 45;
    --bs-primary-text-emphasis: #4a0d13;
    --bs-primary-bg-subtle: #f8dce0;
    --bs-primary-border-subtle: #ecb0b8;
    --bs-link-color: var(--holiday-red);
    --bs-link-hover-color: var(--holiday-red-active);
    --bs-focus-ring-color: rgba(179, 32, 45, 0.25);
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--holiday-cream);
}

a, .btn-link {
    color: var(--holiday-red);
}

.btn-primary {
    color: #fff;
    background-color: var(--holiday-red);
    border-color: var(--holiday-red-hover);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(179, 32, 45, 0.5);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e51680;
}

.validation-message {
    color: #e51680;
}

.blazor-error-boundary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IDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* App.razor forces every `.container` to min-height:100vh for the
   full-page screens outside the wizard; inside the wizard's own
   viewport-constrained content pane that forces every step to be at
   least a full viewport tall (and scroll), regardless of actual content. */
.k-wizard-content .container {
    min-height: auto;
}

.sbWizard {
    text-align: center;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    border-top: 6px solid var(--holiday-red) !important;
    margin-top: 1.5rem;
}

.sbWizard h1 {
    color: var(--holiday-green);
}

/* Consistent "framed photo" treatment for the card/design/greeting preview
   images, so they read as a curated set instead of loose product shots. */
.card-preview-img {
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
    border: 3px solid #fff;
    outline: 1px solid #e9e2d2;
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.card-preview-img:hover {
    transform: scale(1.02);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.vertical-buttons {
    flex-flow: row nowrap;
}

/* set block display */
.block-buttons {
    display: flex;
}

.order-summary {
    max-width: 40rem;
    background-color: var(--holiday-cream);
    border: 1px solid var(--holiday-gold);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
}

.order-summary dt {
    color: var(--holiday-green);
    font-weight: 600;
}

.order-summary dd {
    margin-bottom: 0.5rem;
}

/* Step labels get squeezed into ~7 equal-width columns on the horizontal
   stepper; below ~576px there isn't room for a single line, so let them
   wrap onto two lines instead of ellipsis-truncating to an unreadable sliver. */
@media (max-width: 576px) {
    .k-step-list-horizontal .k-step-text {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        font-size: 0.65rem !important;
        line-height: 1.05 !important;
    }

    .k-step-list-horizontal .k-step-link {
        height: auto !important;
        min-height: 3.5rem !important;
    }
}
