/* Shared layout styles for Site.Master.
   These styles are intentionally namespaced so they do not override the homepage cards. */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e8e8df;
    position: relative;
    z-index: 10;
}

.site-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-nav .brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #173b2b;
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: #176b45;
    color: #ffffff;
    font-size: 19px;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-name em {
    color: #f39a3c;
    font-style: normal;
}

.site-nav .nav-links a {
    color: #263b30;
    font-size: 0.92rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}



.page-content {
    min-height: 50vh;
    padding-top: 0;
    padding-bottom: 0;
}



@media (max-width: 760px) {
    .site-nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 18px;
        gap: 14px;
    }

    .site-nav ul {
        gap: 14px;
    }

    .site-nav .nav-links {
        width: 100%;
        flex-wrap: wrap;
    }

    .site-nav .nav-links a {
        font-size: 0.86rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        padding-left: 18px;
        padding-right: 18px;
    }

    .footer-inner small {
        grid-column: auto;
    }
}


/* ========================================
   CLASS SELECTION PAGE
   ======================================== */

.class-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 24px;
    width: 100%;
    margin: 32px 0;
    align-items: stretch;
}

.class-grid > * {
    min-width: 0;
    margin: 0;
}

.class-card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 220px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e8df;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(28, 55, 38, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.class-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(28, 55, 38, 0.12);
}

.class-icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f4e9;
    color: #176b45;
    font-size: 24px;
}

.class-card h3 {
    margin: 0;
    color: #24392d;
    font-size: 1.15rem;
    line-height: 1.4;
    overflow-wrap: normal;
    word-break: normal;
}

.class-button {
    width: 100%;
    max-width: 180px;
    box-sizing: border-box;
    margin-top: auto;
    padding: 12px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 8px;
    background: #176b45;
    color: #ffffff !important;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: normal;
    transition: background 0.2s ease;
}

.class-button:hover {
    background: #105536;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .class-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .class-card {
        min-height: 200px;
        padding: 22px 14px;
    }
}

@media (max-width: 420px) {
    .class-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .class-card {
        min-height: 180px;
    }
}

/* ========================================
   MAHENDRA BOOKS - BREADCRUMB DESIGN
   ======================================== */

.breadcrumb {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 32px;
    padding: 15px 22px;

    background: linear-gradient(100deg, #edf7ef 0%, #f7f9f3 100%);
    border: 1px solid #dcebdc;
    border-radius: 12px;

    box-shadow: 0 3px 12px rgba(23, 107, 69, 0.05);
    font-size: 14px;
    line-height: 1.6;
}

/* Breadcrumb links */
.breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #176b45;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #e99535;
}

/* Separator arrows */
.breadcrumb .breadcrumb-separator {
    color: #91a69a;
    font-size: 11px;
}

/* Current page */
.breadcrumb .breadcrumb-current {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 7px;
    background: #176b45;
    color: #ffffff;
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 600px) {
    .breadcrumb {
        gap: 7px;
        margin-bottom: 24px;
        padding: 12px 14px;
        font-size: 12px;
        border-radius: 9px;
    }

    .breadcrumb .breadcrumb-current {
        padding: 4px 8px;
    }
}

.page-banner {
    width: 100%;
    margin: 0;
    padding: 28px 0;
    background: linear-gradient(115deg, #145c3b 0%, #208451 60%, #72a943 100%);
    color: #ffffff;
    box-sizing: border-box;
}

.page-banner-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.page-banner-heading h2 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 750;
}

.page-banner-heading p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.98rem;
}

/* Compact breadcrumb inside the banner */
.page-banner .breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 0.88rem;
    line-height: 1.6;
}

.page-banner .breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.page-banner .breadcrumb a:hover {
    color: #ffe0a8;
    text-decoration: underline;
}

.page-banner .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.7rem;
}

.page-banner .breadcrumb-current {
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 600px) {
    .page-banner {
        padding: 22px 0;
    }

    .page-banner-inner {
        gap: 14px;
    }

    .page-banner .breadcrumb {
        gap: 7px;
        font-size: 0.78rem;
    }
}


/* Category selection cards */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e5e8df;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(28, 55, 38, 0.06);
    color: #24392d;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(28, 55, 38, 0.12);
    color: #24392d;
}

.category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 16px;
    font-size: 27px;
}

.category-green {
    background: #e7f4e9;
    color: #176b45;
}

.category-orange {
    background: #fff0df;
    color: #dc8127;
}

.category-yellow {
    background: #fff7d8;
    color: #a77b0b;
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: #173b2b;
}

.category-card p {
    margin: 0 0 24px;
    color: #657168;
    line-height: 1.6;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    color: #176b45;
    font-weight: 700;
}

@media (max-width: 850px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-card {
        padding: 22px;
    }
}


.loose-book-layout {
    padding: 20px 0 30px;
}

.loose-book-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    height: 100%;
    box-shadow: 0 3px 10px rgba(0,0,0,.04);
}

.loose-book-panel h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.loose-book-panel .panel-description {
    color: #64748b;
    font-size: .82rem;
    margin-bottom: 12px;
}

.loose-book-list {
    max-height: none;
    overflow-y: visible;
}

.loose-book-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid #e5e7eb;
}

.loose-book-row:last-child {
    border-bottom: none;
}

.loose-book-check {
    padding-top: 2px;
}

.loose-book-check input {
    margin: 0;
    transform: scale(.9);
}

.loose-book-details {
    flex: 1;
    min-width: 0;
}

.loose-book-name {
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
}

.loose-book-publisher {
    color: #64748b;
    font-size: .75rem;
}

.loose-book-price {
    color: #15803d;
    font-size: .84rem;
    font-weight: 700;
    margin-top: 3px;
}

.loose-book-quantity {
    width: 65px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 3px 6px !important;
    margin: 5px 0 0 !important;
    font-size: .8rem !important;
}

.loose-summary-empty {
    padding: 16px 10px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border-radius: 8px;
    font-size: .85rem;
}

.loose-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}

.loose-summary-table th,
.loose-summary-table td {
    padding: 8px 5px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.loose-summary-table th {
    font-size: .78rem;
    background: #f8fafc;
}

.loose-summary-table th:last-child,
.loose-summary-table td:last-child {
    text-align: right;
    white-space: nowrap;
}

.loose-summary-total {
    margin-top: 15px;
    padding: 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: .84rem;
}

.loose-summary-total-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.loose-summary-grand {
    padding-top: 10px;
    border-top: 1px solid #bbf7d0;
    color: #166534;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0;
}

.loose-summary-message {
    display: block;
    margin-top: 10px;
    color: #475569;
    font-size: .8rem;
}

.loose-book-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.loose-book-actions button {
    font-size: .8rem;
    padding: 7px 12px;
}

@media (max-width: 767px) {
    .loose-book-layout {
        padding: 15px 0 25px;
    }

    .loose-book-panel {
        padding: 12px;
    }
}
.loose-book-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.loose-book-row:last-child {
    border-bottom: none;
}

.loose-book-check {
    padding-top: 3px;
}

.loose-book-check input {
    margin: 0;
    transform: scale(.9);
}

.loose-book-details {
    flex: 1;
    min-width: 0;
}

.loose-book-name {
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 2px;
}

.loose-book-publisher {
    color: #64748b;
    font-size: .73rem;
    margin-bottom: 5px;
}

.loose-book-price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #15803d;
    font-size: .8rem;
    font-weight: 700;
    margin: 0 12px 0 0;
}

.loose-book-price::before {
    content: "Price:";
    color: #64748b;
    font-weight: 400;
}

.loose-book-quantity {
    display: inline-block !important;
    vertical-align: middle;
    width: 60px !important;
    height: 27px !important;
    min-height: 27px !important;
    padding: 2px 5px !important;
    margin: 0 !important;
    font-size: .78rem !important;
}

.loose-book-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.loose-book-quantity::before {
    content: "Qty";
}
.loose-qty-label {
    color: #64748b;
    font-size: .78rem;
}

/* Main section */
.loose-book-layout {
    padding: 20px 0 30px;
}

/* Both panels */
.loose-book-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .04);
    height: 100%;
}

.loose-book-panel h3 {
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.loose-book-panel .panel-description {
    color: #64748b;
    font-size: .8rem;
    margin-bottom: 10px;
}

/* Only the book list scrolls */
.loose-book-list {
    height: 480px;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 7px;
    border-top: 1px solid #e5e7eb;
}

/* Compact book rows */
.loose-book-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.loose-book-row:last-child {
    border-bottom: none;
}

.loose-book-check {
    padding-top: 3px;
}

.loose-book-check input {
    margin: 0;
    transform: scale(.9);
}

.loose-book-details {
    flex: 1;
    min-width: 0;
}

.loose-book-name {
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 2px;
}

.loose-book-publisher {
    color: #64748b;
    font-size: .73rem;
    margin-bottom: 5px;
}

.loose-book-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.loose-book-price {
    color: #15803d;
    font-size: .8rem;
    font-weight: 700;
    margin: 0;
}

.loose-qty-label {
    color: #64748b;
    font-size: .78rem;
}

.loose-book-quantity {
    width: 60px !important;
    height: 27px !important;
    min-height: 27px !important;
    padding: 2px 5px !important;
    margin: 0 !important;
    font-size: .78rem !important;
}

/* Summary panel */
.loose-summary-table-wrap {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: auto;
}

.loose-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8rem;
}

.loose-summary-table th,
.loose-summary-table td {
    padding: 7px 5px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.loose-summary-table th {
    font-size: .76rem;
    background: #f8fafc;
}

.loose-summary-table th:last-child,
.loose-summary-table td:last-child {
    text-align: right;
    white-space: nowrap;
}

.loose-summary-empty {
    padding: 15px 8px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border-radius: 8px;
    font-size: .82rem;
}

.loose-summary-total {
    margin-top: 12px;
    padding: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: .82rem;
}

.loose-summary-total-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.loose-summary-grand {
    padding-top: 9px;
    border-top: 1px solid #bbf7d0;
    color: #166534;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0;
}

.loose-summary-message {
    display: block;
    margin-top: 8px;
    color: #475569;
    font-size: .78rem;
}

.loose-book-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.loose-book-actions button {
    font-size: .8rem;
    padding: 7px 12px;
}

/* Smaller screens */
@media (max-width: 767px) {
    .loose-book-layout {
        padding: 12px 0 20px;
    }

    .loose-book-panel {
        padding: 11px;
    }

    .loose-book-list {
        height: 350px;
        max-height: 55vh;
    }
}

   /* Book list tables */
        .book-list-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
            background: #fff;
            margin-bottom: 18px;
        }

        .book-list-table th {
            background: #f1f5f9;
            color: #334155;
            font-weight: 600;
            border-bottom: 2px solid #dbe3eb;
        }

        .book-list-table td,
        .book-list-table th {
            padding: 9px 12px !important;
            border-bottom: 1px solid #e5e7eb;
        }

        .book-list-table tbody tr:hover {
            background: #f8fafc;
        }

        .book-list-table tbody td:last-child {
            color: #166534;
            font-weight: 600;
        }

        .book-list-table tfoot th {
            background: #f0fdf4;
            color: #166534;
            border-top: 1px solid #bbf7d0;
            border-bottom: 1px solid #bbf7d0;
        }

        /* Grand total highlight */
        .grand-total-box {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            margin-top: 24px;
            padding: 20px 24px;
            background: #f0fdf4;
            border: 1px solid #86efac;
            border-left: 5px solid #16a34a;
            border-radius: 10px;
            box-shadow: 0 3px 10px rgba(22, 101, 52, 0.08);
        }

        .grand-total-box h3 {
            margin: 0 0 5px;
            color: #166534;
            font-size: 1.15rem;
            font-weight: 700;
        }

        .grand-total-box p {
            margin: 0;
            color: #64748b;
            font-size: 13px;
        }

        .grand-total-box .grand-total-amount {
            margin: 0;
            color: #15803d;
            font-size: 1.7rem;
            font-weight: 800;
            white-space: nowrap;
        }

        @media (max-width: 576px) {
            .grand-total-box {
                padding: 14px;
                gap: 10px;
            }

            .grand-total-box h3 {
                font-size: 1rem;
            }

            .grand-total-box .grand-total-amount {
                font-size: 1.25rem;
            }
        }
.product-quantity {
    width: 60px;
    min-height: 28px;
    padding: 3px 5px;
    font-size: .8rem;
}

.product-cart-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.product-cart-actions #lblCartMessage {
    font-size: .85rem;
}

.book-set-selection {
    margin: 12px 0 18px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: .9rem;
}

.book-set-selection input[type="checkbox"] {
    margin-right: 6px;
}

.product-cart-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.product-cart-actions #lblCartMessage {
    font-size: .85rem;
}


/* ===== Mahendra Books Checkout Styling ===== */

:root {
    --pico-font-family: "Segoe UI", Arial, sans-serif;
    --pico-primary: #2457a7;
    --pico-primary-hover: #194580;
    --pico-border-radius: 10px;
}

body {
    margin: 0;
    background: #f3f6fb;
    color: #202b3c;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* Navigation */
.site-nav {
    background: #ffffff;
    border-bottom: 1px solid #e1e7f0;
    box-shadow: 0 2px 8px rgba(25, 45, 75, 0.04);
    padding: 15px 0;
}

.site-nav-inner {
    max-width: 1150px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.brand {
    color: #173b70;
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
}

.site-nav-inner > a:last-child {
    color: #2457a7;
    font-weight: 600;
    text-decoration: none;
}

/* Main layout */
main.container {
    max-width: 1150px;
    padding: 35px 20px 55px;
}

.page-heading,
main.container > header {
    margin-bottom: 25px;
}

.page-heading h1,
main.container > header h1 {
    color: #173b70;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 8px;
}

.page-heading p,
main.container > header p {
    color: #66748a;
}

/* Two-column checkout layout */
.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.9fr);
    gap: 25px;
    align-items: start;
}

/* Form and order summary cards */
.panel {
    background: #ffffff;
    padding: 28px;
    border: 1px solid #e3e9f2;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(24, 48, 82, 0.06);
    min-width: 0;
}

.panel h2 {
    color: #173b70;
    font-size: 1.3rem;
    margin-bottom: 22px;
}

/* Form fields */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 4px;
}

.full-width {
    grid-column: 1 / -1;
}

.form-grid label {
    display: block;
    color: #34435a;
    font-size: 0.94rem;
    font-weight: 650;
    margin-bottom: 7px;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
    width: 100%;
    box-sizing: border-box;
    background: #fbfcfe;
    border: 1px solid #d6deea;
    border-radius: 9px;
    padding: 12px 13px;
    margin-bottom: 12px;
    font-size: 0.96rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
    border-color: #3975c7;
    box-shadow: 0 0 0 3px rgba(57, 117, 199, 0.12);
    outline: none;
}

.form-grid textarea {
    min-height: 105px;
    resize: vertical;
}

/* Validation messages */
.message {
    display: block;
    color: #b42318;
    font-size: 0.84rem;
    margin: -5px 0 12px;
}

/* Helpful checkout note */
.info-note {
    background: #eef5ff;
    color: #31527f;
    border: 1px solid #d9e8ff;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Buttons */
.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.actions input[type="submit"],
.actions button,
.actions a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 45px;
    padding: 11px 18px;
    border-radius: 9px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.actions input[type="submit"] {
    background: #2457a7;
    border: 1px solid #2457a7;
    color: #ffffff;
}

.actions input[type="submit"]:hover {
    background: #194580;
    transform: translateY(-1px);
}

.actions a {
    border: 1px solid #cbd5e3;
    color: #34435a;
    background: #ffffff;
}

/* Order summary */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #edf0f5;
}

.summary-row > div:last-child {
    white-space: nowrap;
    font-weight: 650;
}

.summary-name {
    color: #26364d;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.muted {
    color: #718096;
    font-size: 0.87rem;
    line-height: 1.5;
}

.grand-total {
    border-top: 2px solid #dce5f0;
    border-bottom: none;
    margin-top: 10px;
    padding-top: 20px;
    color: #173b70;
    font-size: 1.2rem;
    font-weight: 800;
}

.grand-total span,
.grand-total label {
    font-weight: 800;
}

/* Empty cart panel */
#pnlEmptyCart {
    text-align: center;
    padding: 45px 25px;
}

#pnlEmptyCart h2 {
    margin-bottom: 10px;
}

#pnlEmptyCart a {
    display: inline-block;
    margin-top: 12px;
}

/* Footer */
footer {
    border-top: 1px solid #e1e7f0;
    background: #ffffff;
    color: #718096;
    text-align: center;
    padding: 22px 15px;
    font-size: 0.85rem;
}

/* Tablet and mobile */
@media (max-width: 850px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 22px;
    }
}

@media (max-width: 560px) {
    main.container {
        padding: 24px 12px 35px;
    }

    .site-nav-inner {
        padding: 0 12px;
    }

    .brand {
        font-size: 1.12rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .panel {
        padding: 18px;
        border-radius: 12px;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .actions input[type="submit"],
    .actions a {
        width: 100%;
        box-sizing: border-box;
    }

    .summary-row {
        gap: 10px;
    }
}
