/* ============================================================
   Bythost — Checkout (upsell + bevestiging)
   Kleuren en fonts via bythost-marketing.css (dependency).
   ============================================================ */

/* ---- Spacing boven checkout (afstand van header) ---- */
#bythost-checkout {
    padding-top: 2.5rem;
}

/* ---- Scoped reset: voorkomt dat thema-stijlen doorlekken ---- */
#bythost-checkout,
.bythost-confirmation {
    font-family: var(--font-body, "Baloo 2", system-ui, sans-serif);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink, #3A1F2E);
}

#bythost-checkout *,
#bythost-checkout *::before,
#bythost-checkout *::after,
.bythost-confirmation *,
.bythost-confirmation *::before,
.bythost-confirmation *::after {
    box-sizing: border-box;
}

#bythost-checkout h2,
#bythost-checkout h3,
.bythost-confirmation h2,
.bythost-confirmation h3 {
    font-family: var(--font-display, "Baloo 2", system-ui, sans-serif);
    margin: 0;
    padding: 0;
    border: none;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink, #3A1F2E);
}

#bythost-checkout ul,
#bythost-checkout ol { margin: 0; padding: 0; list-style: none; }
#bythost-checkout li::before { content: none; }
#bythost-checkout p  { margin: 0; }
#bythost-checkout button { font-family: var(--font-body, "Baloo 2", system-ui, sans-serif); font-size: inherit; }
#bythost-checkout a  { text-decoration: none; }

/* Reset alle knopstijlen van het thema binnen de checkout */
#bythost-checkout button {
    border: none !important;
    box-shadow: none !important;
    outline-offset: 2px;
    font-family: var(--font-body, "Baloo 2", system-ui, sans-serif);
}

/* ---- Gedeeld ---- */
.bythost-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink, #3A1F2E);
    margin: 0 0 1rem;
}

.bythost-btn--full { width: 100%; justify-content: center; }

.bythost-btn--secondary {
    background: var(--cream, #FFEAD7);
    color: var(--ink, #3A1F2E);
    border: 1.5px solid var(--border, #D5CBB7);
}
.bythost-btn--secondary:hover {
    background: var(--mist, #FBE3D6);
}

.bythost-error-msg {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 6px;
    color: #991b1b;
    padding: .75rem 1rem;
    font-size: .9rem;
    margin-top: 1rem;
}

/* ---- Geselecteerd domein ---- */
.bythost-selected-domain {
    background: var(--mint-50, #F6EEFE);
    border: 1.5px solid var(--mint-200, #D2B4F7);
    border-radius: 8px;
    padding: .75rem 1.25rem;
    margin-bottom: 1.5rem;
}

.bythost-selected-domain-inner {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--mint-700, #4F1AA0);
    font-weight: 600;
}

/* ---- Pakketten ---- */
.bythost-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.bythost-package-card {
    border: 2px solid var(--border, #D5CBB7);
    border-radius: 10px;
    padding: 1.25rem;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    background: var(--white, #fff);
}
.bythost-package-card:hover {
    border-color: var(--mint-300, #B084EE);
}
.bythost-package-card.is-selected {
    border-color: var(--mint-500, #7B3FE4);
    box-shadow: 0 0 0 3px rgba(123, 63, 228, .12);
}
.bythost-package-card.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}

.bythost-package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: .75rem;
}

.bythost-package-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink, #3A1F2E);
    margin: 0;
}

.bythost-package-price   { text-align: right; }

.bythost-package-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mint-500, #7B3FE4);
}
.bythost-package-period {
    font-size: .75rem;
    color: var(--fg-muted, #7A5A52);
    display: block;
}
.bythost-package-status {
    font-size: .8rem;
    color: var(--stone, #C9A48F);
    margin-top: .5rem;
}

.bythost-package-features { list-style: none; padding: 0; margin: 0; }
.bythost-package-features li {
    font-size: .875rem;
    color: var(--fg, #3A1F2E);
    padding: .2rem 0;
}
.bythost-package-features li::before {
    content: "✓ ";
    color: var(--mint-500, #7B3FE4);
    font-weight: 700;
}

/* ---- Paginatitel verbergen op checkout/bevestigingspagina ---- */
.bythost-checkout-page .entry-title,
.bythost-checkout-page .page-title,
.bythost-checkout-page .wp-block-post-title,
.bythost-checkout-page h1.page-title,
.bythost-confirmation-page .entry-title,
.bythost-confirmation-page .page-title,
.bythost-confirmation-page .wp-block-post-title,
.bythost-confirmation-page h1.page-title {
    display: none !important;
}

/* ---- Billing toggle ---- */
.bythost-billing-toggle {
    display: inline-flex;
    border: 1.5px solid var(--border, #D5CBB7);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 0 2rem;
    background: var(--white, #fff);
}

#bythost-checkout .bythost-billing-btn {
    padding: .75rem 1.5rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    font-size: .9rem !important;
    font-weight: 600 !important;
    color: var(--fg-muted, #7A5A52) !important;
    font-family: var(--font-body, "Baloo 2", system-ui, sans-serif) !important;
    transition: background .15s, color .15s;
    display: flex;
    align-items: center;
    gap: .5rem;
    line-height: 1.4;
}

#bythost-checkout .bythost-billing-btn.is-active {
    background: var(--mint-500, #7B3FE4) !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

#bythost-checkout .bythost-billing-btn:hover:not(.is-active) {
    background: var(--mint-50, #F6EEFE) !important;
    color: var(--mint-600, #6325C4) !important;
}

#bythost-checkout .bythost-billing-btn:active {
    background: var(--mint-100, #E9D9FB) !important;
    color: var(--mint-700, #4F1AA0) !important;
    box-shadow: none !important;
}

#bythost-checkout .bythost-billing-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

#bythost-checkout .bythost-billing-btn:focus-visible {
    outline: 2px solid var(--mint-500, #7B3FE4) !important;
    outline-offset: -2px !important;
}

.bythost-save-badge {
    background: var(--mint-100, #E9D9FB);
    color: var(--mint-700, #4F1AA0);
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 99px;
}
.bythost-billing-btn.is-active .bythost-save-badge {
    background: rgba(255,255,255,.2);
    color: #fff;
}

/* ---- Skip hosting — ghost-stijl ---- */
#bythost-checkout .bythost-skip-btn {
    /* Officiële ghost-knopstijl */
    display: inline-flex !important;
    align-items: center !important;
    gap: .4rem !important;
    padding: 11px 22px !important;
    border-radius: var(--r-pill, 999px) !important;
    border: 1.5px solid transparent !important;
    background: transparent !important;
    color: var(--ink, #3A1F2E) !important;
    font-family: var(--font-body, "Baloo 2", system-ui, sans-serif) !important;
    font-size: .9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: none !important;
    margin-top: .5rem;
}
#bythost-checkout .bythost-skip-btn:hover {
    background: var(--mist, #FBE3D6) !important;
    color: var(--ink, #3A1F2E) !important;
    box-shadow: none !important;
}
#bythost-checkout .bythost-skip-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}
#bythost-checkout .bythost-skip-btn:focus-visible {
    outline: 2px solid var(--mint-500, #7B3FE4) !important;
    outline-offset: 2px !important;
}

/* ---- Add-on ---- */
.bythost-addon {
    border: 1.5px dashed var(--mint-300, #B084EE);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--mint-50, #F6EEFE);
}

.bythost-addon-label     { display: flex; gap: 1rem; cursor: pointer; align-items: flex-start; }
.bythost-addon-checkbox  { margin-top: .25rem; width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; accent-color: var(--mint-500, #7B3FE4); }

.bythost-addon-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: .25rem;
}
.bythost-addon-price {
    font-size: .85rem;
    color: var(--mint-600, #6325C4);
    font-weight: 600;
}
.bythost-addon-desc {
    font-size: .875rem;
    color: var(--fg-muted, #7A5A52);
    margin: 0;
}

/* ---- Samenvatting ---- */
.bythost-checkout-summary {
    border: 1.5px solid var(--border, #D5CBB7);
    border-radius: 10px;
    padding: 1.25rem;
    background: var(--white, #fff);
    margin-top: 1.5rem;
}

.bythost-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    color: var(--fg, #3A1F2E);
    padding: .3rem 0;
}

.bythost-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 700;
    padding: .75rem 0 1rem;
    margin-top: .5rem;
    border-top: 1.5px solid var(--border, #D5CBB7);
}

/* ---- Checkout-knop: fullwidth + disabled-staat ---- */
#bythost-checkout .bh-btn-checkout {
    width: 100% !important;
    justify-content: center !important;
    font-size: 1rem !important;
    padding: 14px 24px !important;
    margin-top: .25rem;
}

#bythost-checkout .bh-btn-checkout:disabled {
    background: var(--mint-200, #D2B4F7) !important;
    color: var(--mint-700, #4F1AA0) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none;
}

.bythost-secure-note {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    color: var(--stone, #C9A48F);
    margin: .75rem 0 0;
    justify-content: center;
}

/* ---- Per-domein layout ---- */
.bythost-domains-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.bythost-domain-section {
    border: 1.5px solid var(--border, #D5CBB7);
    border-radius: 12px;
    padding: 1.25rem;
    background: var(--white, #fff);
}

.bythost-domain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--cream, #FFEAD7);
}

.bythost-domain-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--mint-600, #6325C4);
}

.bythost-domain-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink, #3A1F2E);
}

.bythost-domain-price {
    font-size: .9rem;
    font-weight: 600;
    color: var(--fg-muted, #7A5A52);
}

.bythost-domain-price small {
    font-size: .75rem;
    margin-left: 1px;
}

.bythost-section-sub {
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink, #3A1F2E);
    margin: 0 0 .75rem;
}

.bythost-optional {
    font-weight: 400;
    color: var(--stone, #C9A48F);
}

/* "Alleen domein" kaart */
.bythost-package-card--none {
    border-style: dashed;
    opacity: .8;
}
.bythost-package-card--none.is-selected {
    border-style: solid;
    opacity: 1;
}

.bythost-package-desc {
    font-size: .8rem;
    color: var(--stone, #C9A48F);
    margin: .25rem 0 0;
}

.bythost-addon-wrap { margin-top: .75rem; }

/* ---- Bevestigingspagina ---- */
.bythost-confirmation {
    max-width: 560px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
}

.bythost-confirmation-icon {
    width: 64px;
    height: 64px;
    background: var(--mint-100, #E9D9FB);
    color: var(--mint-700, #4F1AA0);
    border-radius: 50%;
    font-size: 2rem;
    line-height: 64px;
    margin: 0 auto 1.5rem;
}

.bythost-confirmation-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ink, #3A1F2E);
    margin: 0 0 .5rem;
}

.bythost-confirmation-subtitle {
    color: var(--fg-muted, #7A5A52);
    margin: 0 0 2rem;
}

.bythost-confirmation-card {
    border: 1.5px solid var(--border, #D5CBB7);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: left;
    margin-bottom: 1.5rem;
    background: var(--white, #fff);
}
.bythost-confirmation-card h3 { margin: 0 0 .75rem; font-size: 1rem; }

.bythost-confirmation-item {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    color: var(--fg, #3A1F2E);
    padding: .3rem 0;
}

.bythost-confirmation-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    padding-top: .75rem;
    margin-top: .5rem;
    border-top: 1.5px solid var(--border, #D5CBB7);
}

.bythost-confirmation-status {
    background: var(--paper, #FFF7EE);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.bythost-status-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .9rem;
    color: var(--fg, #3A1F2E);
}

.bythost-confirmation-pending { padding: 3rem 1rem; }

/* ---- Spinner ---- */
.bythost-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border, #D5CBB7);
    border-top-color: var(--mint-500, #7B3FE4);
    border-radius: 50%;
    animation: bythost-spin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes bythost-spin { to { transform: rotate(360deg); } }
