/*
 * KanumHost — Blesta order checkout polish
 * Custom overrides; keep separate from the Blesta/plugin CSS.
 * Scope: order checkout summary and account forms only.
 */

#create-account {
    margin-top: 2rem;
    padding: 2rem 0 0;
    border-top: 1px solid #e1eae5;
}

#create-account > .row {
    row-gap: 1rem;
}

#create-account .section-title {
    margin: 0 0 1.25rem;
}

#create-account .section-title h3 {
    margin: 0 0 .4rem;
    color: #183d31;
    font-size: 1.45rem;
    font-weight: 700;
}

#create-account .section-title p {
    margin: 0;
    color: #718279;
    font-size: .98rem;
    line-height: 1.6;
}

/* Order summary */
.card-order {
    position: relative;
    overflow: hidden;
    margin: 0 0 1rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid #deebe3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(18, 58, 43, .055);
    color: #244136;
    font-size: .95rem;
}

.card-order::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #17634b, #22c875);
    content: "";
}

.card-order .table {
    margin-bottom: .5rem;
    color: inherit;
}

.card-order .table > thead > tr > th {
    padding: .8rem .55rem;
    border: 0;
    border-bottom: 1px solid #e1eae5;
    background: transparent;
    color: #718279;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
    vertical-align: middle;
}

.card-order .table > tbody > tr > td {
    padding: 1rem .55rem;
    border: 0;
    border-bottom: 1px solid #edf2ee;
    vertical-align: middle;
}

.card-order .table > tbody > tr:last-child > td {
    border-bottom: 0;
}

.card-order .table-responsive {
    border: 0;
}

.card-order .btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.card-order .btn-group .btn {
    border-radius: 7px !important;
    font-size: .8rem;
}

.card-order hr {
    margin: 1rem 0;
    border-color: #e5ede8;
    opacity: 1;
}

.card-order .total-due {
    text-align: right;
}

.card-order .total-due small {
    display: block;
    margin-top: .4rem;
    color: #7b8c83;
    font-size: .82rem;
}

.card-order .total-due h4 {
    margin: .2rem 0 .7rem;
    color: #176f4d;
    font-size: 1.9rem;
    font-weight: 750;
}

.card-order .total-due p {
    margin: .2rem 0 0;
    color: #4d6559;
}

.card-order .price-col {
    white-space: nowrap;
}

.card-order .currency_value {
    font-variant-numeric: tabular-nums;
}

#queue_nonempty_btns,
#queue_continue_btns {
    display: none;
}

/* Continue / order-more actions */
#summary-details .btn,
#create-account .btn {
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

#summary-details .btn-success,
#create-account .btn-success {
    border: 0;
    border-radius: 9px;
    background: #22a447;
    box-shadow: 0 4px 10px rgba(24, 116, 57, .14);
    font-weight: 650;
}

#summary-details .btn-success:hover,
#create-account .btn-success:hover {
    background: #19883a;
    box-shadow: 0 6px 14px rgba(24, 116, 57, .2);
    transform: translateY(-1px);
}

#summary-details .btn-secondary,
#create-account .btn-secondary {
    border: 1px solid #d8e0dc;
    border-radius: 8px;
    background: #f4f7f5;
    color: #42574d;
}

#summary-details > .float-right {
    text-align: right;
}

#summary-details > .float-right small {
    display: inline-block;
    margin-top: .45rem;
    color: #7b8c83;
}

/* Login / signup choice */
#create-account > .row > .col-md-12 > .radio {
    display: inline-flex;
    margin: 0 .65rem .8rem 0;
}

#create-account .radio label {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    padding: .75rem 1rem;
    border: 1px solid #dce8e0;
    border-radius: 10px;
    background: #fff;
    color: #294638;
    cursor: pointer;
    font-weight: 600;
    transition: border-color .15s ease, background .15s ease;
}

#create-account .radio label:has(input:checked) {
    border-color: #1a8052;
    background: #eff9f2;
}

#create-account input[type="radio"],
#create-account input[type="checkbox"] {
    accent-color: #16804e;
}

#create-account .option_section {
    margin-top: .45rem;
    padding: 1.5rem;
    border: 1px solid #e0ebe4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(18, 58, 43, .045);
}

#create-account .option_section form > .row {
    row-gap: .25rem;
}

#create-account .option_section h4 {
    margin: .25rem 0 1rem;
    color: #183d31;
    font-size: 1.15rem;
    font-weight: 700;
}

#create-account .option_section .form-group {
    margin-bottom: 1rem;
}

#create-account .option_section label {
    color: #52675c;
    font-size: .9rem;
    font-weight: 600;
}

#create-account .option_section .form-control {
    min-height: 44px;
    border: 1px solid #d6e2da;
    border-radius: 8px;
    background-color: #fff;
    color: #263d32;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

#create-account .option_section .form-control:focus {
    border-color: #25a45b;
    box-shadow: 0 0 0 3px rgba(37, 164, 91, .12);
    outline: 0;
}

#create-account .option_section .well {
    border: 1px solid #e2ebe5;
    border-radius: 9px;
    background: #f7faf8;
    box-shadow: none;
}

#create-account .option_section .border-top {
    border-color: #e4ece7 !important;
}

#create-account .option_section .pass-reset {
    padding-top: .65rem;
    font-size: .85rem;
    font-style: normal;
}

#create-account .option_section small {
    display: inline-block;
    margin-top: .5rem;
    color: #718279;
    line-height: 1.5;
}

#create-account .option_section .float-right {
    text-align: right;
}

#create-account .option_section .btn-lg {
    min-height: 46px;
    padding: .7rem 1.25rem;
    border-radius: 9px;
}

/* Cloudflare Turnstile stays naturally sized and visible */
#create-account .cf-turnstile {
    max-width: 100%;
    margin: .25rem 0 1rem;
}

/* Mobile layout */
@media (max-width: 767.98px) {
    #create-account {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    #create-account .option_section {
        padding: 1rem;
    }

    .card-order {
        padding: 1rem .75rem;
        border-radius: 12px;
    }

    .card-order .table-responsive {
        overflow-x: auto;
    }

    .card-order .table > thead > tr > th,
    .card-order .table > tbody > tr > td {
        padding: .7rem .35rem;
    }

    .card-order .total-due {
        text-align: right;
    }

    #summary-details > .float-right,
    #create-account .option_section .float-right {
        float: none !important;
        text-align: left;
    }

    #summary-details > .float-right .btn,
    #create-account .option_section .btn {
        width: 100%;
        margin: .35rem 0;
    }

    #create-account .option_section .btn-lg {
        white-space: normal;
    }
}
