/*
 * KanumHost — Blesta Wizard checkout / cart styling
 * Shared across domain registration, Titan Email and other product configurations.
 * CSS only: preserves original forms, IDs, pricing fields, summary JS and checkout actions.
 */

/* Checkout page layout */
#package-config > form#package_config > .row {
    align-items: flex-start;
}

#package-config .section-title {
    margin: 0 0 22px;
}

#package-config .section-title h3 {
    margin: 0 0 8px;
    color: #172b23;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -.025em;
}

#package-config .section-title h3 > i {
    margin-right: 9px;
    color: #16834a;
}

#package-config .section-title p {
    margin: 0;
    color: #687a71;
    font-size: .98rem;
    line-height: 1.6;
}

#package-config h4,
#package-config h5 {
    margin: 22px 0 12px;
    color: #20372d;
    font-weight: 700;
    letter-spacing: -.015em;
}

#package-config h4 {
    font-size: 1.2rem;
}

#package-config h5 {
    font-size: 1.08rem;
}

#package-config .form-group {
    margin-bottom: 17px;
}

#package-config .form-group > label {
    display: inline-block;
    margin-bottom: 7px;
    color: #52655b;
    font-size: .91rem;
    font-weight: 600;
}

#package-config input.form-control,
#package-config select.form-control,
#package-config textarea.form-control {
    min-height: 45px;
    padding: 10px 13px;
    border: 1px solid #d7e2db;
    border-radius: 9px;
    background-color: #fff;
    color: #34443c;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

#package-config input.form-control:focus,
#package-config select.form-control:focus,
#package-config textarea.form-control:focus {
    border-color: #299b62;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(41, 155, 98, .12);
}

#package-config input[type="checkbox"],
#package-config input[type="radio"] {
    accent-color: #16834a;
}

#package-config .checkbox {
    margin-top: 8px;
}

#package-config .checkbox label {
    color: #5d7066;
    line-height: 1.55;
}

#package-config .package_options {
    margin-top: 20px;
    padding: 18px 20px 6px;
    border: 1px solid #e3ebe6;
    border-radius: 12px;
    background: #fbfdfb;
}

#package-config .package_options .pad {
    padding: 0;
}

#package-config .package_options .form-group:last-child {
    margin-bottom: 12px;
}

#package-config a[data-toggle="tooltip"] {
    color: #16834a;
    text-decoration: none;
}

/* Sticky order summary */
#sticker-sticky-wrapper {
    overflow: visible !important;
}

#sticker {
    max-width: 100%;
}

#order-summary {
    position: relative;
}

#summary-details {
    padding: 0;
}

#summary-details .section-title {
    margin: 0 0 18px;
}

#summary-details .section-title h3 {
    margin: 0 0 8px;
    color: #172b23;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.025em;
}

#summary-details .section-title h3 > i {
    margin-right: 8px;
    color: #16834a;
}

#summary-details .section-title p {
    margin: 0;
    color: #687a71;
    font-size: .94rem;
    line-height: 1.55;
}

#summary-details .card-order {
    padding: 22px 22px 18px !important;
    overflow: hidden;
    border: 1px solid #e0e9e3 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 5px 20px rgba(10, 40, 30, .045);
}

#summary-details .card-order::before {
    content: "";
    display: block;
    height: 4px;
    margin: -22px -22px 18px;
    background: linear-gradient(90deg, #205d49, #2cc477);
}

#summary-details .card-order table.table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    color: #43564c;
    font-size: .92rem;
}

#summary-details .card-order table.table th {
    padding: 10px 8px 12px;
    border-top: 0;
    border-bottom: 1px solid #e2eae5;
    color: #687a71;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
}

#summary-details .card-order table.table td {
    padding: 13px 8px;
    border-top: 0;
    border-bottom: 1px solid #edf1ee;
    vertical-align: top;
    line-height: 1.5;
}

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

#summary-details .card-order table.table td:first-child {
    overflow-wrap: anywhere;
}

#summary-details .card-order table.table td strong {
    color: #25392f;
    font-weight: 650;
}

#summary-details .card-order .price-col {
    float: none !important;
    text-align: right;
    white-space: nowrap;
}

#summary-details .card-order .currency_value {
    color: #20372d;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

#summary-details .card-order hr {
    margin: 14px 0;
    border: 0;
    border-top: 1px solid #e6ede8;
}

#summary-details .card-order .row.p-2 {
    margin: 0;
    padding: 8px 0 0 !important;
}

#summary-details .card-order .total-due {
    padding: 0;
    text-align: right;
}

#summary-details .card-order .total-due small {
    display: block;
    margin: 8px 0 3px;
    color: #718079;
    font-size: .82rem;
}

#summary-details .card-order .total-due h4 {
    margin: 0 0 10px;
    color: #147448;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -.035em;
}

#summary-details .card-order .total-due p {
    margin: 0;
    color: #52655b;
    font-size: .94rem;
    line-height: 1.5;
}

#summary-details #empty_cart {
    margin-top: 12px;
    padding: 9px 13px;
    border: 1px solid #dce5df;
    border-radius: 8px;
    background: #f3f6f4;
    color: #52655b;
    font-size: .88rem;
    transition: background .18s ease, border-color .18s ease;
}

#summary-details #empty_cart:hover,
#summary-details #empty_cart:focus {
    border-color: #cbd8d0;
    background: #e8efeb;
    color: #20372d;
}

/* Continue action */
#package-config > form#package_config > .row > .col-md-12:last-child {
    margin-top: 20px;
}

#package-config button.btn.btn-success {
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid #16834a;
    border-radius: 9px;
    background: #16834a;
    color: #fff;
    font-weight: 650;
    box-shadow: 0 3px 8px rgba(22, 131, 74, .13);
    transition: background .18s ease, box-shadow .18s ease;
}

#package-config button.btn.btn-success:hover,
#package-config button.btn.btn-success:focus {
    border-color: #106b3c;
    background: #106b3c;
    color: #fff;
    box-shadow: 0 6px 14px rgba(22, 131, 74, .2);
}

#package-config button.btn.btn-success:focus-visible {
    outline: 3px solid rgba(22, 131, 74, .25);
    outline-offset: 3px;
}

/* Responsive: disable sticky sizing effects on narrower layouts. */
@media (max-width: 991.98px) {
    #package-config > form#package_config > .row > .col-md-6 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    #sticker-sticky-wrapper {
        height: auto !important;
    }

    #sticker {
        position: static !important;
        width: auto !important;
    }

    #summary-details {
        margin-top: 28px;
    }
}

@media (max-width: 575.98px) {
    #summary-details .card-order {
        padding: 17px 13px 14px !important;
        border-radius: 12px !important;
    }

    #summary-details .card-order::before {
        margin: -17px -13px 14px;
    }

    #summary-details .card-order table.table {
        font-size: .84rem;
    }

    #summary-details .card-order table.table th,
    #summary-details .card-order table.table td {
        padding: 10px 5px;
    }

    #summary-details .card-order .total-due h4 {
        font-size: 1.65rem;
    }

    #package-config button.btn.btn-success {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #package-config input.form-control,
    #package-config select.form-control,
    #package-config textarea.form-control,
    #summary-details #empty_cart,
    #package-config button.btn.btn-success {
        transition: none;
    }
}
