/* ============================================================
   01 — Order forms (approved v7)
   Source: kanumhost-order-modern-v7.css
   ============================================================ */

/*
 * KanumHost — Order Forms / Blesta Blevo
 * Modern card-grid redesign for /order/forms/
 * Keeps original URLs and checkout behaviour; no Blesta template changes.
 */

.container-md > .row:has(> .order-listing) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 0;
    align-items: stretch;
    width: 100%;
}

.container-md > .row:has(> .order-listing) > .order-listing {
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
    margin: 0;
}

.order-listing > .card {
    position: relative;
    height: 100%;
    min-height: 250px;
    margin: 0;
    padding: 26px 24px 22px !important;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid #e3ebe7 !important;
    border-radius: 16px !important;
    box-shadow: 0 5px 20px rgba(10, 40, 30, .045);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.order-listing > .card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #0e4938, #20b56b);
    opacity: .9;
}

.order-listing > .card:hover {
    transform: translateY(-4px);
    border-color: #b8d9c8 !important;
    box-shadow: 0 14px 34px rgba(10, 55, 38, .10);
}

.order-listing .card > .row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    margin: 0;
    width: 100%;
}

/* Explicitly restore the intended visual order of the original HTML:
   title, description, then CTA. */
.order-listing .card > .row > .head-item:first-child {
    order: 1;
}

.order-listing .card > .row > .col-sm-12 {
    order: 2;
}

.order-listing .card > .row > .head-item:nth-child(2) {
    order: 3;
}

/* Bootstrap column widths must not constrain the title or description. */
.order-listing .card > .row > .head-item,
.order-listing .card > .row > .col-sm-12 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    padding-left: 0;
    padding-right: 0;
}

.order-listing .head-item {
    display: block;
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    min-height: 0;
    padding: 0;
}

.order-listing .head-item:first-child {
    padding-right: 0;
}

.order-listing h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    margin: 0 0 18px;
    color: #14251f;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.025em;
}

/* Real vector icons via inline SVG masks: crisp, consistent, no icon-font dependency. */
.order-listing h3::before {
    content: "";
    display: inline-block;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background-color: #e8f6ee;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 23px 23px;
}

/* Domain: globe */
.container-md > .row:has(> .order-listing) > .order-listing:nth-child(1) h3::before {
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23147448' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9'/%3E%3Cpath d='M3 12h18M5.5 6.5h13M5.5 17.5h13'/%3E%3C/svg%3E");
}

/* Titan Email: envelope */
.container-md > .row:has(> .order-listing) > .order-listing:nth-child(2) h3::before {
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23147448' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E");
}

/* Website Backup: circular restore arrow */
.container-md > .row:has(> .order-listing) > .order-listing:nth-child(3) h3::before {
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23147448' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11a9 9 0 1 0 2.6-6.3L3 7'/%3E%3Cpath d='M3 3v4h4M12 7v5l3 2'/%3E%3C/svg%3E");
}

/* Email Hosting: envelope with @ */
.container-md > .row:has(> .order-listing) > .order-listing:nth-child(4) h3::before {
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23147448' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E");
}

/* SSL Certificates: proper shield */
.container-md > .row:has(> .order-listing) > .order-listing:nth-child(5) h3::before {
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23147448' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 20 6v5c0 5-3.4 8.5-8 10-4.6-1.5-8-5-8-10V6l8-3Z'/%3E%3Cpath d='m8.5 12 2.3 2.3 4.7-4.8'/%3E%3C/svg%3E");
}

/* cWatch Security: shield with a central check */
.container-md > .row:has(> .order-listing) > .order-listing:nth-child(6) h3::before {
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23147448' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 20 6v5c0 5-3.4 8.5-8 10-4.6-1.5-8-5-8-10V6l8-3Z'/%3E%3Cpath d='m8.5 12 2.3 2.3 4.7-4.8'/%3E%3C/svg%3E");
}

.order-listing p {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 22px;
    color: #62746c;
    font-size: .96rem;
    line-height: 1.65;
    white-space: normal;
    overflow-wrap: anywhere;
}

.order-listing .head-item:nth-child(2) {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: auto;
    padding: 0;
}

.order-listing a.btn.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid #16834a;
    border-radius: 9px;
    background: #16834a;
    box-shadow: 0 3px 8px rgba(22, 131, 74, .13);
    color: #fff;
    font-size: 0;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.order-listing a.btn.btn-success::after {
    content: "Encomendar";
    font-size: .94rem;
}

.order-listing a.btn.btn-success:hover,
.order-listing a.btn.btn-success:focus {
    background: #106b3c;
    border-color: #106b3c;
    box-shadow: 0 6px 14px rgba(22, 131, 74, .22);
    color: #fff;
    text-decoration: none;
}

.order-listing a.btn.btn-success:focus-visible {
    outline: 3px solid rgba(22, 131, 74, .28);
    outline-offset: 3px;
}

/* Keep the desktop CTA and the existing mobile CTA from appearing together. */
.order-listing a.btn.btn-success.d-none.d-sm-block {
    display: inline-flex !important;
    width: 100%;
}

.order-listing a.btn.btn-success.d-sm-none {
    display: none !important;
}

@media (max-width: 991.98px) {
    .container-md > .row:has(> .order-listing) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .order-listing > .card {
        min-height: 245px;
        padding: 22px 20px 20px !important;
    }

    .order-listing h3 {
        font-size: 1.15rem;
    }
}

@media (max-width: 575.98px) {
    .container-md > .row:has(> .order-listing) {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .order-listing > .card {
        min-height: 0;
        padding: 22px 20px 20px !important;
        border-radius: 13px !important;
    }

    .order-listing h3 {
        margin-bottom: 14px;
        font-size: 1.12rem;
    }

    .order-listing p {
        margin-bottom: 18px;
        font-size: .94rem;
    }

    .order-listing a.btn.btn-success.d-none.d-sm-block {
        display: inline-flex !important;
    }

    .order-listing a.btn.btn-success.d-sm-none {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .order-listing > .card,
    .order-listing a.btn.btn-success {
        transition: none;
    }
}


/* ============================================================
   02 — Product/package list
   Source: kanumhost-package-list.css
   ============================================================ */

/*
 * KanumHost — Blesta Wizard Order Form package list
 * Modern styling for .card-order.package-list.
 * Supports any number of packages (2, 3, 4 or more) without nth-child assumptions.
 * Keeps native form fields, pricing selectors, JavaScript and checkout behaviour intact.
 */

.card-order.package-list {
    position: relative;
    margin: 0 0 18px;
    padding: 24px 26px !important;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid #dfe9e3 !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(10, 40, 30, .045);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.card-order.package-list::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #205d49, #2cc477);
}

.card-order.package-list:hover {
    border-color: #bfd9ca !important;
    box-shadow: 0 10px 28px rgba(10, 55, 38, .085);
    transform: translateY(-2px);
}

.card-order.package-list > form,
.card-order.package-list form > .row {
    margin: 0;
}

.card-order.package-list form > .row {
    display: grid;
    grid-template-columns: minmax(220px, 1.05fr) minmax(230px, 1fr) minmax(180px, .72fr);
    align-items: center;
    gap: 24px;
}

.card-order.package-list form > .row > [class*="col-"] {
    float: none;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
}

.card-order.package-list .package-item h3,
.card-order.package-list .package-item h3.float-right {
    float: none !important;
    margin: 0 0 12px;
    color: #172b23;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.025em;
}

.card-order.package-list .instructions {
    margin: 0 0 8px;
    color: #718079;
    font-size: .92rem;
    line-height: 1.45;
}

.card-order.package-list .instructions i {
    color: #16834a;
    opacity: .85;
}

.card-order.package-list select.form-control {
    width: 100%;
    min-height: 46px;
    padding: 10px 38px 10px 13px;
    border: 1px solid #d5e0d9;
    border-radius: 9px;
    background-color: #fff;
    color: #34443c;
    font-size: .96rem;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.card-order.package-list select.form-control:focus {
    border-color: #299b62;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(41, 155, 98, .13);
}

.card-order.package-list .package-description ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.card-order.package-list .package-description li {
    position: relative;
    margin: 0 0 7px;
    padding-left: 22px;
    color: #5d7066;
    font-size: .94rem;
    line-height: 1.45;
}

.card-order.package-list .package-description li:last-child {
    margin-bottom: 0;
}

.card-order.package-list .package-description li::before {
    content: "";
    position: absolute;
    top: .22em;
    left: 0;
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316834a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E");
}

.card-order.package-list .package-item:last-child {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
}

.card-order.package-list .package-item:last-child h3 {
    margin: 0;
    text-align: left;
}

.card-order.package-list .package-item:last-child h3 .term {
    display: block;
    margin: 0 0 4px;
    color: #718079;
    font-size: .82rem;
    font-style: normal;
    font-weight: 500;
}

.card-order.package-list .package-item:last-child h3 .price {
    color: #147448;
    font-size: 1.85rem;
    font-weight: 750;
    letter-spacing: -.035em;
}

.card-order.package-list .package-item:last-child .clearfix {
    display: none;
}

.card-order.package-list button.btn.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 11px 16px;
    float: none !important;
    border: 1px solid #16834a;
    border-radius: 9px;
    background: #16834a;
    color: #fff;
    font-size: .96rem;
    font-weight: 650;
    box-shadow: 0 3px 8px rgba(22, 131, 74, .13);
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

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

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

.card-order.package-list button.btn.btn-success i {
    margin-left: 9px;
}

/* Cart action beneath the package list */
.container-md > .row > .float-right:has(> a[href*="/order/cart/"]) {
    margin-top: 6px;
}

.container-md > .row > .float-right > a[href*="/order/cart/"] {
    border-radius: 9px;
    padding: 11px 17px;
}

/* Medium screens: retain the list format but reduce the column widths. */
@media (max-width: 991.98px) {
    .card-order.package-list {
        padding: 22px 20px !important;
    }

    .card-order.package-list form > .row {
        grid-template-columns: minmax(190px, 1fr) minmax(200px, 1fr);
        gap: 20px 24px;
    }

    .card-order.package-list .package-description {
        grid-column: 1;
    }

    .card-order.package-list .package-item:last-child {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

/* Phones: stack the same content in a clear, readable order. */
@media (max-width: 575.98px) {
    .card-order.package-list {
        margin-bottom: 14px;
        padding: 22px 18px 18px !important;
        border-radius: 13px !important;
    }

    .card-order.package-list form > .row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .card-order.package-list form > .row > [class*="col-"] {
        width: 100%;
    }

    .card-order.package-list .package-item h3,
    .card-order.package-list .package-item h3.float-right {
        font-size: 1.2rem;
    }

    .card-order.package-list .package-item:last-child {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .card-order.package-list .package-item:last-child h3 .price {
        font-size: 1.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card-order.package-list,
    .card-order.package-list button.btn.btn-success,
    .card-order.package-list select.form-control {
        transition: none;
    }
}


/* ============================================================
   03 — Checkout configuration (approved v3)
   Source: kanumhost-checkout-v3.css
   ============================================================ */

/*
 * 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;
    }
}


/* ============================================================
   04 — Checkout cart and account form overrides
   Source: kanumhost-checkout-overrides.css
   ============================================================ */

/*
 * 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;
    }
}
