﻿/* Source: checkout_timeline.php */
.shop-page {
                    --site-header-offset: 112px;
                }

                .shop-page main.py-4.py-md-5,
                .shop-page main.py-5 {
                    padding-top: calc(var(--site-header-offset) + 1.5rem) !important;
                }

                .checkout-timeline {
                    display: grid;
                    gap: 12px;
                    margin-bottom: 24px;
                }

                .checkout-timeline__track::-webkit-scrollbar {
                    height: 6px;
                }

                .checkout-timeline__track::-webkit-scrollbar-thumb {
                    background: rgba(148, 163, 184, 0.34);
                    border-radius: 999px;
                }

                .checkout-timeline__track {
                    display: grid;
                    grid-template-columns: repeat(4, minmax(0, 1fr));
                    gap: 12px;
                }

                .checkout-timeline__step {
                    position: relative;
                    display: flex;
                    align-items: center;
                    gap: 12px;
                    min-width: 0;
                    padding: 14px 16px;
                    border-radius: 20px;
                    background: rgba(255, 255, 255, 0.82);
                    border: 1px solid rgba(148, 163, 184, 0.16);
                    color: var(--text-secondary);
                    text-decoration: none;
                    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
                }

                .checkout-timeline__step::after {
                    content: "";
                    position: absolute;
                    top: 50%;
                    left: calc(100% + 6px);
                    width: 12px;
                    height: 2px;
                    background: rgba(148, 163, 184, 0.32);
                    transform: translateY(-50%);
                }

                .checkout-timeline__step:last-child::after {
                    display: none;
                }

                .checkout-timeline__step:hover {
                    color: var(--text-primary);
                    border-color: rgba(31, 122, 224, 0.24);
                    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
                    transform: translateY(-1px);
                }

                .checkout-timeline__step.is-complete {
                    background: rgba(255, 255, 255, 0.92);
                    border-color: rgba(148, 163, 184, 0.24);
                    color: var(--text-primary);
                }

                .checkout-timeline__step.is-complete::after {
                    background: rgba(31, 122, 224, 0.24);
                }

                .checkout-timeline__step.is-current {
                    background: rgba(255, 255, 255, 0.98);
                    border-color: rgba(31, 122, 224, 0.22);
                    color: var(--text-primary);
                    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
                }

                .checkout-timeline__step.is-upcoming {
                    opacity: 0.9;
                }

                .checkout-timeline__icon {
                    flex: 0 0 auto;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    width: 40px;
                    height: 40px;
                    border-radius: 999px;
                    background: rgba(255, 255, 255, 0.94);
                    color: var(--text-secondary);
                    border: 1px solid rgba(148, 163, 184, 0.22);
                    font-size: 1rem;
                }

                .checkout-timeline__step.is-complete .checkout-timeline__icon {
                    background: rgba(255, 255, 255, 0.96);
                    color: var(--primary);
                    border-color: rgba(31, 122, 224, 0.18);
                }

                .checkout-timeline__step.is-current .checkout-timeline__icon {
                    background: rgba(248, 250, 252, 0.98);
                    color: var(--primary);
                    border-color: rgba(31, 122, 224, 0.22);
                }

                .checkout-timeline__content {
                    min-width: 0;
                    display: grid;
                    gap: 2px;
                }

                .checkout-timeline__eyebrow {
                    font-size: 0.76rem;
                    font-weight: 800;
                    letter-spacing: 0.04em;
                    text-transform: uppercase;
                    color: inherit;
                    opacity: 0.56;
                }

                .checkout-timeline__label {
                    font-size: 0.95rem;
                    font-weight: 700;
                    line-height: 1.3;
                    color: inherit;
                }

                @media (max-width: 991.98px) {
                    .shop-page {
                        --site-header-offset: 96px;
                    }

                    .checkout-timeline__track {
                        grid-template-columns: repeat(2, minmax(0, 1fr));
                    }

                    .checkout-timeline__step::after {
                        display: none;
                    }
                }

                @media (max-width: 575.98px) {
                    .shop-page {
                        --site-header-offset: 88px;
                    }

                    .checkout-timeline {
                        margin-bottom: 18px;
                    }

                    .checkout-timeline__track {
                        position: relative;
                        grid-template-columns: repeat(4, minmax(0, 1fr));
                        gap: 8px;
                        overflow: visible;
                        padding: 0;
                    }

                    .checkout-timeline__track::before {
                        content: "";
                        position: absolute;
                        top: 17px;
                        left: 12.5%;
                        right: 12.5%;
                        height: 2px;
                        background: rgba(148, 163, 184, 0.24);
                        z-index: 0;
                    }

                    .checkout-timeline__step {
                        flex-direction: column;
                        align-items: center;
                        justify-content: flex-start;
                        gap: 8px;
                        padding: 0;
                        border: 0;
                        border-radius: 0;
                        background: transparent;
                        box-shadow: none;
                        text-align: center;
                    }

                    .checkout-timeline__step.is-complete,
                    .checkout-timeline__step.is-current,
                    .checkout-timeline__step.is-upcoming {
                        background: transparent;
                        border-color: transparent;
                        box-shadow: none;
                    }

                    .checkout-timeline__step.is-current .checkout-timeline__content {
                        transform: translateY(1px);
                    }

                    .checkout-timeline__icon {
                        width: 34px;
                        height: 34px;
                        font-size: 0.9rem;
                        position: relative;
                        z-index: 1;
                        border: 2px solid rgba(255, 255, 255, 0.96);
                    }

                    .checkout-timeline__step.is-current .checkout-timeline__icon {
                        width: 38px;
                        height: 38px;
                        font-size: 1rem;
                        background: rgba(31, 122, 224, 0.12);
                        border-color: rgba(31, 122, 224, 0.18);
                        color: var(--primary);
                        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
                    }

                    .checkout-timeline__step.is-current .checkout-timeline__label {
                        color: var(--text-primary);
                        font-weight: 800;
                    }

                    .checkout-timeline__step.is-upcoming .checkout-timeline__label {
                        color: var(--text-secondary);
                        opacity: 0.78;
                    }

                    .checkout-timeline__eyebrow {
                        display: none;
                    }

                    .checkout-timeline__label {
                        font-size: 0.88rem;
                        line-height: 1.25;
                    }

                    .checkout-timeline__step::after {
                        display: none;
                    }

                    .checkout-timeline__step:hover {
                        transform: none;
                        box-shadow: none;
                    }

                    .checkout-timeline__content {
                        gap: 0;
                        align-items: center;
                    }
                }

                @media (max-width: 420px) {
                    .checkout-timeline__label {
                        font-size: 0.76rem;
                        line-height: 1.2;
                    }

                    .checkout-timeline__icon {
                        width: 30px;
                        height: 30px;
                        font-size: 0.82rem;
                    }

                    .checkout-timeline__step.is-current .checkout-timeline__icon {
                        width: 34px;
                        height: 34px;
                        font-size: 0.92rem;
                    }

                    .checkout-timeline__track::before {
                        top: 15px;
                    }
                }


/* Source: cart.php */
.cart-shell {
			max-width: 1180px;
			margin: 0 auto;
		}

		.cart-hero {
			padding: 32px;
			background:
				radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 34%),
				linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
		}

		.cart-layout {
			display: grid;
			grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
			gap: 24px;
			align-items: start;
		}

		.cart-panel {
			padding: 0;
			overflow: hidden;
		}

		.cart-panel-header {
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 16px;
			padding: 24px 28px 18px;
			border-bottom: 1px solid rgba(15, 23, 42, 0.08);
		}

		.cart-panel-title {
			font-size: 1.2rem;
			font-weight: 700;
			color: var(--text-primary);
			margin: 0;
		}

		.cart-panel-subtitle {
			font-size: 0.95rem;
			color: var(--text-muted);
			margin: 6px 0 0;
		}

		.cart-back-link {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			gap: 10px;
			min-height: 46px;
			padding: 0 18px;
			border-radius: 16px;
			background: rgba(255, 255, 255, 0.88);
			border: 1px solid rgba(31, 122, 224, 0.12);
			box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
			color: var(--text-primary);
			font-weight: 700;
			text-decoration: none;
			transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
		}

		.cart-back-link:hover {
			color: var(--primary);
			background: rgba(255, 255, 255, 1);
			box-shadow: 0 16px 28px rgba(15, 23, 42, 0.1);
			transform: translateY(-1px);
		}

		.legacy-cart-table {
			width: 100%;
			border-collapse: collapse;
		}

		.legacy-cart-table th,
		.legacy-cart-table td {
			padding: 18px 20px;
			vertical-align: middle;
			border-bottom: 1px solid rgba(15, 23, 42, 0.08);
		}

		.legacy-cart-table th {
			font-weight: 700;
			color: var(--text-primary);
			background: rgba(15, 23, 42, 0.03);
			font-size: 0.82rem;
			text-transform: uppercase;
			letter-spacing: 0.04em;
		}

		.legacy-cart-product {
			display: flex;
			align-items: center;
			gap: 16px;
		}

		.legacy-cart-product .cart-item-image {
			width: 84px;
			height: 84px;
			object-fit: cover;
			border-radius: 22px;
			box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
			flex-shrink: 0;
		}

		.cart-item-meta {
			min-width: 0;
		}

		.cart-item-name {
			font-size: 1.05rem;
			font-weight: 700;
			line-height: 1.4;
			color: var(--text-primary);
			margin: 0 0 8px;
		}

		.cart-item-badges {
			display: flex;
			flex-wrap: wrap;
			gap: 8px;
		}

		.cart-qty-pill {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			min-width: 52px;
			padding: 8px 12px;
			border-radius: 999px;
			background: rgba(31, 122, 224, 0.08);
			color: #1367c8;
			font-weight: 700;
		}

		.cart-qty-controls {
			display: inline-flex;
			align-items: center;
			gap: 8px;
		}

		.cart-qty-btn {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			width: 36px;
			height: 36px;
			border: 0;
			border-radius: 12px;
			background: rgba(31, 122, 224, 0.1);
			color: var(--primary);
			font-size: 1rem;
			font-weight: 800;
			transition: transform .2s ease, background-color .2s ease;
		}

		.cart-qty-btn:hover {
			background: rgba(31, 122, 224, 0.16);
			transform: translateY(-1px);
		}

		.cart-price-main {
			font-weight: 700;
			color: var(--text-primary);
			font-size: 1rem;
		}

		.cart-price-total {
			font-weight: 800;
			color: var(--primary);
			font-size: 1.15rem;
		}

		.legacy-cart-remove img {
			width: 18px;
			height: 18px;
		}

		.cart-remove-button {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			width: 42px;
			height: 42px;
			border-radius: 14px;
			background: rgba(239, 68, 68, 0.08);
			transition: transform .2s ease, background-color .2s ease;
		}

		.cart-remove-button:hover {
			background: rgba(239, 68, 68, 0.14);
			transform: translateY(-1px);
		}

		.cart-summary-card {
			position: sticky;
			top: 24px;
		}

		.cart-summary-body {
			padding: 24px 26px 26px;
		}

		.cart-summary-row {
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 16px;
			padding: 10px 0;
			color: var(--text-secondary);
		}

		.cart-summary-row strong {
			color: var(--text-primary);
			font-weight: 700;
		}

		.cart-summary-total {
			margin-top: 10px;
			padding-top: 18px;
			border-top: 1px solid rgba(15, 23, 42, 0.08);
			font-size: 1.05rem;
		}

		.cart-summary-total strong:last-child {
			font-size: 1.45rem;
			color: var(--primary);
		}

		.cart-discount-card {
			margin-top: 18px;
			padding: 18px;
			border-radius: 22px;
			background: rgba(248, 250, 252, 0.95);
			border: 1px solid rgba(148, 163, 184, 0.18);
		}

		.cart-discount-card label {
			display: block;
			font-size: 0.92rem;
			font-weight: 700;
			color: var(--text-primary);
			margin-bottom: 10px;
		}

		.cart-discount-card .form-control {
			border-radius: 14px;
			min-height: 48px;
		}

		.cart-discount-actions {
			display: grid;
			grid-template-columns: minmax(0, 1fr) auto;
			gap: 10px;
		}

		.cart-summary-actions {
			display: grid;
			gap: 12px;
			margin-top: 22px;
		}

		.cart-summary-actions .btn-modern,
		.cart-summary-actions .btn-primary-modern {
			width: 100%;
			justify-content: center;
			min-height: 52px;
			font-weight: 700;
		}

		.cart-empty {
			padding: 44px;
			text-align: center;
		}

		.cart-empty-icon {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			width: 84px;
			height: 84px;
			margin-bottom: 18px;
			border-radius: 28px;
			background: linear-gradient(135deg, rgba(31, 122, 224, 0.12), rgba(31, 122, 224, 0.04));
			color: var(--primary);
			font-size: 2rem;
		}

		@media (max-width: 991.98px) {
			.cart-shell {
				max-width: 100%;
			}

			.cart-layout {
				grid-template-columns: 1fr;
			}

			.cart-summary-card {
				position: static;
			}

			.cart-hero {
				padding: 26px;
			}

			.cart-panel-header,
			.cart-summary-body {
				padding-left: 22px;
				padding-right: 22px;
			}
		}

		@media (max-width: 767.98px) {
			body {
				overflow-x: hidden;
			}

			main.py-4.py-md-5,
			main.py-5 {
				padding-top: 1.25rem !important;
				padding-bottom: 2.5rem !important;
			}

			.cart-hero {
				padding: 22px;
			}

			.cart-layout {
				grid-template-columns: 1fr;
				gap: 16px;
			}

			.cart-panel-header,
			.cart-summary-body {
				padding-left: 16px;
				padding-right: 16px;
			}

			.legacy-cart-table {
				display: block;
				width: 100%;
			}

			.legacy-cart-table thead,
			.legacy-cart-table tbody,
			.legacy-cart-table tr,
			.legacy-cart-table th,
			.legacy-cart-table td {
				display: block;
				width: 100%;
			}

			.legacy-cart-table thead {
				display: none;
			}

			.legacy-cart-table tbody {
				display: grid;
				gap: 12px;
				padding: 16px;
			}

			.legacy-cart-table tr {
				background: rgba(248, 250, 252, 0.92);
				border: 1px solid rgba(148, 163, 184, 0.16);
				border-radius: 18px;
				padding: 14px;
			}

			.legacy-cart-table td {
				padding: 0;
				border-bottom: 0;
			}

			.legacy-cart-table td+td {
				margin-top: 10px;
			}

			.legacy-cart-table td[data-label] {
				display: flex;
				align-items: center;
				justify-content: space-between;
				gap: 12px;
				font-size: 0.92rem;
				text-align: left !important;
			}

			.legacy-cart-table td[data-label]::before {
				content: attr(data-label);
				font-size: 0.78rem;
				font-weight: 800;
				letter-spacing: 0.04em;
				text-transform: uppercase;
				color: #617086;
			}

			.legacy-cart-table td[data-label="รายการ"] {
				display: block;
			}

			.legacy-cart-table td[data-label="รายการ"]::before {
				display: none;
			}

			.legacy-cart-product {
				align-items: flex-start;
				gap: 12px;
			}

			.legacy-cart-product .cart-item-image {
				width: 72px;
				height: 72px;
				border-radius: 18px;
			}

			.cart-item-name {
				font-size: 0.98rem;
				margin-bottom: 6px;
			}

			.cart-item-badges {
				gap: 6px;
			}

			.cart-qty-pill {
				min-width: 46px;
				padding: 7px 10px;
			}

			.cart-qty-controls {
				width: 100%;
				justify-content: space-between;
			}

			.cart-qty-btn {
				width: 40px;
				height: 40px;
				border-radius: 14px;
			}

			.cart-price-main,
			.cart-price-total {
				font-size: 1rem;
			}

			.cart-remove-button {
				width: 40px;
				height: 40px;
				border-radius: 12px;
			}

			.cart-empty {
				padding: 30px 22px;
			}
		}

		@media (max-width: 575.98px) {
			.container.cart-shell {
				padding-left: 14px;
				padding-right: 14px;
			}

			.card-modern {
				border-radius: 22px;
			}

			.cart-hero {
				padding: 18px;
			}

			.cart-hero h1 {
				font-size: 1.72rem;
				line-height: 1.08;
			}

			.cart-hero .btn-modern {
				width: auto;
			}

			.cart-back-link {
				width: 100%;
				justify-content: center;
			}

			.cart-panel-header {
				padding-top: 18px;
				padding-bottom: 14px;
			}

			.cart-panel-title {
				font-size: 1.05rem;
			}

			.cart-panel-subtitle {
				font-size: 0.88rem;
			}

			.cart-summary-body {
				padding-top: 18px;
				padding-bottom: 20px;
			}

			.cart-summary-row {
				font-size: 0.92rem;
			}

			.cart-summary-total strong:last-child {
				font-size: 1.28rem;
			}

			.cart-discount-card {
				padding: 14px;
				border-radius: 18px;
			}

			.cart-discount-actions {
				grid-template-columns: 1fr;
			}

			.cart-summary-actions {
				gap: 10px;
			}

			.cart-summary-actions .btn-modern,
			.cart-summary-actions .btn-primary-modern {
				min-height: 48px;
				font-size: 0.95rem;
			}

			.legacy-cart-table tbody {
				padding: 14px;
				gap: 10px;
			}

			.legacy-cart-table tr {
				padding: 12px;
				border-radius: 16px;
			}

			.legacy-cart-product {
				gap: 10px;
			}

			.legacy-cart-product .cart-item-image {
				width: 64px;
				height: 64px;
				border-radius: 16px;
			}

			.cart-item-name {
				font-size: 0.94rem;
				line-height: 1.35;
			}

			.cart-item-badges .badge-modern {
				font-size: 0.72rem;
			}

			.cart-qty-controls {
				max-width: 180px;
				margin-left: auto;
			}

			.cart-price-main,
			.cart-price-total {
				font-size: 0.98rem;
			}

			.cart-remove-button {
				width: 38px;
				height: 38px;
			}
		}


/* Source: checkout.php */
.checkout-shell {
            max-width: 1180px;
            margin: 0 auto;
        }

        .checkout-hero {
            padding: 32px;
            background: radial-gradient(circle at top right, rgba(59, 130, 246, .14), transparent 34%), linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(244, 248, 255, .96));
        }

        .checkout-layout {
            display: grid;
            grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
            gap: 24px;
            align-items: start;
        }

        .checkout-stack {
            display: grid;
            gap: 20px;
        }

        .checkout-panel {
            overflow: hidden;
        }

        .checkout-panel-header {
            padding: 24px 28px 18px;
            border-bottom: 1px solid rgba(15, 23, 42, .08);
        }

        .checkout-panel-title {
            margin: 0;
            font-size: 1.22rem;
            font-weight: 700;
            color: var(--text-dark);
        }

        .checkout-panel-subtitle {
            margin: 8px 0 0;
            color: var(--text-muted);
            font-size: .94rem;
        }

        .checkout-panel-body {
            padding: 24px 28px 28px;
        }

        .checkout-form-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 18px;
        }

        .checkout-otp-entry {
            display: flex;
            justify-content: center;
            margin-bottom: 10px;
        }

        .checkout-otp-panel {
            display: grid;
            gap: 10px;
            padding: 0;
            margin-bottom: 18px;
            background: transparent;
            border: 0;
        }

        .checkout-otp-toggle {
            flex: 0 0 auto;
            display: inline-grid;
            gap: 2px;
            justify-items: center;
            min-width: 420px;
            padding: 0;
            border: 0;
            background: transparent;
            color: var(--primary);
            font-weight: 700;
            font-size: 0.95rem;
            text-align: center;
            box-shadow: none;
            transition: transform .2s ease, opacity .2s ease;
        }

        .checkout-otp-toggle:hover {
            transform: translateY(-1px);
            opacity: 0.92;
        }

        .checkout-otp-toggle__eyebrow {
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-muted);
        }

        .checkout-otp-toggle__label {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 46px;
            padding: 0 22px;
            border-radius: 999px;
            background: #fff;
            border: 1px solid rgba(148, 163, 184, 0.2);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
        }

        .checkout-otp-panel__content {
            display: none;
            gap: 16px;
            width: 100%;
            max-width: none;
            margin: 0;
            padding: 24px 26px;
            border-radius: 22px;
            background: #fff;
            border: 1px solid rgba(148, 163, 184, 0.18);
            box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
        }

        .checkout-otp-panel__content.is-open {
            display: grid;
        }

        .checkout-otp-panel__header {
            display: grid;
            gap: 2px;
        }

        .checkout-otp-panel__header strong {
            font-size: 0.96rem;
            font-weight: 700;
            color: var(--text-dark);
        }

        .checkout-otp-panel__header span {
            font-size: 0.88rem;
            color: var(--text-secondary);
        }

        .checkout-otp-panel__grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 18px;
        }

        .checkout-otp-panel__field {
            display: grid;
            gap: 10px;
            min-width: 0;
        }

        .checkout-otp-panel__field:first-child {
            grid-column: 1 / -1;
        }

        .checkout-otp-panel__field .form-label {
            margin-bottom: 0;
            font-size: 0.92rem;
        }

        .checkout-otp-panel__field .form-input {
            min-height: 52px;
            padding-inline: 16px;
            border-radius: 14px;
        }

        .checkout-otp-panel__field:first-child .form-label,
        .checkout-otp-panel__field:first-child .form-input {
            max-width: none;
        }

        .checkout-otp-panel__field--code {
            grid-column: 1 / -1;
        }

        .checkout-otp-panel__field--code .form-label,
        .checkout-otp-panel__field--code .checkout-otp-code,
        .checkout-otp-panel__field--code .checkout-otp-code__slots {
            max-width: none;
        }

        .checkout-otp-code {
            position: relative;
        }

        .checkout-otp-code__input {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: text;
            z-index: 2;
        }

        .checkout-otp-code__slots {
            display: grid;
            grid-template-columns: repeat(6, minmax(0, 1fr));
            gap: 10px;
        }

        .checkout-otp-code__slot {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 64px;
            border-radius: 16px;
            border: 1px solid rgba(148, 163, 184, 0.26);
            background: #fff;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-dark);
            transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
        }

        .checkout-otp-code__slot.is-filled {
            border-color: rgba(31, 122, 224, 0.26);
            box-shadow: 0 10px 18px rgba(15, 23, 42, 0.04);
        }

        .checkout-otp-code__slots.is-focused .checkout-otp-code__slot.is-active {
            border-color: rgba(31, 122, 224, 0.5);
            box-shadow: 0 0 0 4px rgba(31, 122, 224, 0.08);
            transform: translateY(-1px);
        }

        .checkout-otp-panel__actions {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
        }

        .checkout-otp-panel__actions .btn-modern,
        .checkout-otp-panel__actions .btn-primary-modern {
            min-height: 48px;
            justify-content: center;
            font-weight: 700;
            padding-inline: 18px;
        }

        .checkout-otp-link {
            border: 0;
            background: transparent;
            padding: 0 4px;
            color: var(--text-muted);
            font-size: 0.9rem;
            font-weight: 600;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .checkout-otp-link:hover {
            color: var(--primary);
        }

        .checkout-otp-panel__feedback {
            padding: 12px 14px;
            border-radius: 14px;
            background: rgba(248, 250, 252, 0.9);
            border: 1px solid rgba(148, 163, 184, 0.14);
            color: var(--text-secondary);
            font-size: 0.87rem;
            line-height: 1.5;
        }

        .checkout-otp-panel__feedback.is-success {
            background: rgba(22, 163, 74, 0.08);
            border-color: rgba(22, 163, 74, 0.14);
            color: #166534;
        }

        .checkout-otp-panel__feedback.is-error {
            background: rgba(239, 68, 68, 0.08);
            border-color: rgba(239, 68, 68, 0.14);
            color: #b91c1c;
        }

        .checkout-otp-panel__feedback.is-muted {
            color: var(--text-secondary);
        }

        .checkout-alternative-divider {
            display: flex;
            align-items: center;
            gap: 14px;
            margin: 8px 0 20px;
            color: var(--text-muted);
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.02em;
            text-transform: uppercase;
        }

        .checkout-alternative-divider::before,
        .checkout-alternative-divider::after {
            content: "";
            flex: 1 1 auto;
            height: 1px;
            background: rgba(148, 163, 184, 0.22);
        }

        .checkout-form-intro {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 16px 18px;
            margin-bottom: 18px;
            border-radius: 18px;
            background: rgba(239, 246, 255, 0.7);
            border: 1px solid rgba(31, 122, 224, 0.1);
            color: #35506e;
        }

        .checkout-form-intro i {
            flex: 0 0 auto;
            font-size: 1rem;
            color: var(--primary);
            margin-top: 2px;
        }

        .checkout-form-intro strong {
            display: block;
            margin-bottom: 3px;
            color: var(--text-dark);
        }

        .checkout-form-section {
            grid-column: 1 / -1;
            display: grid;
            gap: 6px;
            margin-top: 4px;
            padding-top: 12px;
            border-top: 1px solid rgba(148, 163, 184, 0.16);
        }

        .checkout-form-grid > .checkout-form-section:first-child {
            margin-top: 0;
            padding-top: 0;
            border-top: 0;
        }

        .checkout-form-section-title {
            margin: 0;
            font-size: 1.02rem;
            font-weight: 800;
            color: var(--text-dark);
        }

        .checkout-form-section-text {
            margin: 0;
            font-size: .88rem;
            color: var(--text-muted);
        }

        .checkout-form-field {
            display: grid;
            gap: 8px;
        }

        .checkout-form-field.is-full {
            grid-column: 1 / -1;
        }

        .checkout-form-field label {
            font-weight: 700;
            color: var(--text-dark);
            font-size: .94rem;
        }

        @media (min-width: 768px) {
            .checkout-form-grid .checkout-form-field {
                height: 100%;
                align-content: start;
            }

            .checkout-form-grid .checkout-form-field label {
                min-height: 2.8em;
                display: flex;
                align-items: flex-end;
            }

            .checkout-form-grid .checkout-form-field .form-helper {
                min-height: 3em;
            }

            .checkout-form-grid .checkout-form-field.is-full label {
                min-height: 0;
                display: block;
            }

            .checkout-form-grid .checkout-form-field.is-full .form-helper {
                min-height: 0;
            }
        }

        .checkout-form-field label span {
            color: #ef4444;
        }

        .checkout-form-field .form-control,
        .checkout-form-field .form-select {
            min-height: 52px;
            border-radius: 16px;
            border-color: rgba(148, 163, 184, .26);
            padding-left: 16px;
            padding-right: 16px;
            font-size: 1rem;
        }

        .checkout-date-input {
            min-height: 52px;
            border-radius: 16px;
            padding-right: 48px;
            appearance: none;
            -webkit-appearance: none;
            color: var(--text-dark);
        }

        .checkout-date-picker {
            position: relative;
        }

        .checkout-date-native-picker {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            pointer-events: none;
        }

        .checkout-date-trigger {
            position: absolute;
            top: 50%;
            right: 10px;
            transform: translateY(-50%);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border: 0;
            border-radius: 12px;
            background: rgba(31, 122, 224, 0.08);
            color: var(--primary);
            cursor: pointer;
            transition: background-color .2s ease, transform .2s ease;
        }

        .checkout-date-trigger:hover {
            background: rgba(31, 122, 224, 0.14);
        }

        .checkout-date-trigger:focus-visible {
            outline: 2px solid rgba(31, 122, 224, 0.28);
            outline-offset: 2px;
        }

        .checkout-date-input::-webkit-calendar-picker-indicator {
            opacity: .9;
            cursor: pointer;
        }

        .checkout-date-input::-webkit-date-and-time-value {
            text-align: left;
        }

        .checkout-date-input:invalid,
        .checkout-date-input.is-empty {
            color: #8a94a6;
        }

        .checkout-form-field .form-control:focus,
        .checkout-form-field .form-select:focus {
            box-shadow: 0 0 0 .25rem rgba(0, 120, 193, .14);
            border-color: rgba(0, 120, 193, .34);
        }

        .checkout-note {
            padding: 16px 18px;
            border-radius: 18px;
            background: rgba(239, 246, 255, .9);
            border: 1px solid rgba(0, 120, 193, .1);
            color: #37506b;
            font-size: .93rem;
        }

        .checkout-consent {
            display: grid;
            gap: 10px;
            padding: 18px;
            border-radius: 20px;
            background: rgba(248, 250, 252, .92);
            border: 1px solid rgba(148, 163, 184, .18);
        }

        .checkout-consent p {
            margin: 0;
            font-size: .92rem;
            color: var(--text-secondary);
        }

        .checkout-consent a {
            font-weight: 700;
        }

        .checkout-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 6px;
        }

        .checkout-actions .btn-primary-modern,
        .checkout-actions .btn-modern {
            min-height: 52px;
            justify-content: center;
            font-weight: 700;
        }

        .checkout-order-card {
            position: sticky;
            top: 24px;
        }

        .checkout-summary-list {
            display: grid;
            gap: 14px;
        }

        .checkout-summary-item {
            display: grid;
            grid-template-columns: 72px minmax(0, 1fr);
            gap: 14px;
            align-items: center;
            padding: 14px;
            border-radius: 20px;
            background: rgba(248, 250, 252, .94);
            border: 1px solid rgba(148, 163, 184, .14);
        }

        .checkout-summary-item img {
            width: 72px;
            height: 72px;
            object-fit: cover;
            border-radius: 20px;
            box-shadow: 0 14px 24px rgba(15, 23, 42, .12);
        }

        .checkout-summary-name {
            margin: 0 0 6px;
            font-size: .98rem;
            font-weight: 700;
            line-height: 1.45;
            color: var(--text-dark);
        }

        .checkout-summary-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 8px;
        }

        .checkout-summary-price {
            font-weight: 800;
            color: var(--primary);
        }

        .checkout-totals {
            display: grid;
            gap: 10px;
            margin-top: 18px;
            padding-top: 18px;
            border-top: 1px solid rgba(15, 23, 42, .08);
        }

        .checkout-total-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            font-size: .96rem;
            color: var(--text-secondary);
        }

        .checkout-total-row strong {
            color: var(--text-dark);
        }

        .checkout-total-row.is-grand {
            margin-top: 2px;
            padding-top: 12px;
            border-top: 1px dashed rgba(148, 163, 184, .32);
            font-size: 1.05rem;
        }

        .checkout-total-row.is-grand strong:last-child {
            font-size: 1.44rem;
            color: var(--primary);
        }

        .checkout-discount-card {
            margin-top: 18px;
            padding: 18px;
            border-radius: 20px;
            background: rgba(248, 250, 252, .96);
            border: 1px solid rgba(148, 163, 184, .18);
        }

        .checkout-discount-card label {
            display: block;
            margin-bottom: 10px;
            font-size: .92rem;
            font-weight: 700;
            color: var(--text-dark);
        }

        .checkout-discount-actions {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 10px;
        }

        .checkout-discount-actions .form-control {
            min-height: 50px;
            border-radius: 14px;
        }

        .checkout-empty {
            padding: 46px 28px;
            text-align: center;
        }

        .checkout-empty-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 86px;
            height: 86px;
            margin-bottom: 18px;
            border-radius: 28px;
            background: linear-gradient(135deg, rgba(31, 122, 224, .12), rgba(31, 122, 224, .04));
            color: var(--primary);
            font-size: 2rem;
        }

        .checkout-back-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            min-height: 46px;
            padding: 0 18px;
            border-radius: 16px;
            background: rgba(255, 255, 255, .88);
            border: 1px solid rgba(31, 122, 224, .12);
            box-shadow: 0 12px 24px rgba(15, 23, 42, .06);
            color: var(--text-dark);
            font-weight: 700;
            text-decoration: none;
            transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
        }

        .checkout-back-link:hover {
            color: var(--primary);
            background: rgba(255, 255, 255, 1);
            box-shadow: 0 16px 28px rgba(15, 23, 42, .1);
            transform: translateY(-1px);
        }

        @media (max-width: 991.98px) {
            .checkout-layout {
                grid-template-columns: 1fr;
            }

            .checkout-order-card {
                position: static;
            }
        }

        @media (max-width: 767.98px) {

            main.py-4.py-md-5,
            main.py-5 {
                padding-top: 1.25rem !important;
                padding-bottom: 2.5rem !important;
            }

            .checkout-hero,
            .checkout-panel-header,
            .checkout-panel-body {
                padding-left: 18px;
                padding-right: 18px;
            }

            .checkout-hero {
                padding-top: 22px;
                padding-bottom: 22px;
            }

            .checkout-form-grid {
                grid-template-columns: 1fr;
            }

            .checkout-form-field {
                gap: 6px;
            }

            .checkout-form-field .form-control,
            .checkout-form-field .form-select,
            .checkout-form-field .form-input {
                min-height: 50px;
                font-size: 16px;
            }

            .checkout-date-input {
                min-height: 50px;
            }

            .checkout-form-field label {
                font-size: .9rem;
            }

            .checkout-form-field .form-helper {
                font-size: .84rem;
                line-height: 1.45;
            }

            .checkout-form-field .form-helper {
                display: none;
            }

            .checkout-form-field.is-essential .form-helper,
            .checkout-form-field.has-error .form-helper {
                display: block;
            }

            .checkout-form-section-title {
                font-size: .98rem;
            }

            .checkout-form-section-text {
                font-size: .86rem;
            }

            .checkout-form-intro {
                margin-bottom: 16px;
                padding: 14px 15px;
                border-radius: 16px;
            }

            .checkout-otp-panel {
                margin-bottom: 16px;
            }

            .checkout-otp-panel__header {
                align-items: flex-start;
            }

            .checkout-otp-panel__grid,
            .checkout-otp-panel__actions {
                display: grid;
            }

            .checkout-otp-entry {
                margin-bottom: 12px;
            }

            .checkout-otp-toggle {
                width: 100%;
                min-width: 0;
            }

            .checkout-otp-panel__content {
                padding: 16px;
            }

            .checkout-otp-panel__field:first-child .form-label,
            .checkout-otp-panel__field:first-child .form-input,
            .checkout-otp-panel__field--code .form-label,
            .checkout-otp-panel__field--code .checkout-otp-code,
            .checkout-otp-panel__field--code .checkout-otp-code__slots {
                max-width: 100%;
            }

            .checkout-alternative-divider {
                gap: 10px;
                margin-bottom: 18px;
                font-size: 0.78rem;
            }

            .checkout-otp-panel__actions .btn-modern,
            .checkout-otp-panel__actions .btn-primary-modern {
                width: 100%;
            }

            .checkout-otp-link {
                padding-left: 2px;
            }

            .checkout-otp-code__slots {
                gap: 8px;
            }

            .checkout-otp-code__slot {
                min-height: 52px;
            }

            .checkout-discount-actions {
                grid-template-columns: 1fr;
            }

            .checkout-actions {
                display: grid;
            }

            .checkout-actions .btn-primary-modern,
            .checkout-actions .btn-modern,
            .checkout-back-link {
                width: 100%;
            }

            .checkout-actions .btn-primary-modern {
                order: 1;
            }

            .checkout-actions .btn-modern {
                order: 2;
            }

            .checkout-summary-item {
                grid-template-columns: 64px minmax(0, 1fr);
                gap: 12px;
                padding: 12px;
                border-radius: 18px;
            }

            .checkout-summary-item img {
                width: 64px;
                height: 64px;
                border-radius: 16px;
            }

            .checkout-summary-name {
                font-size: .94rem;
                line-height: 1.38;
            }

            .checkout-total-row {
                font-size: .92rem;
            }
        }

        @media (max-width: 575.98px) {
            .container.checkout-shell {
                padding-left: 14px;
                padding-right: 14px;
            }

            .checkout-hero {
                padding: 18px;
            }

            .checkout-hero h1 {
                font-size: 1.72rem;
                line-height: 1.08;
            }

            .checkout-summary-item {
                grid-template-columns: 1fr;
            }

            .checkout-summary-item img {
                width: 100%;
                height: 160px;
            }

            .checkout-panel-title {
                font-size: 1.08rem;
            }

            .checkout-panel-subtitle {
                font-size: .88rem;
            }

            .checkout-panel-body {
                padding-top: 18px;
                padding-bottom: 20px;
            }

            .checkout-form-grid {
                gap: 12px;
            }

            .checkout-form-section {
                gap: 4px;
                margin-top: 4px;
                padding-top: 8px;
            }

            .checkout-consent {
                padding: 14px;
                border-radius: 18px;
            }

            .checkout-consent p {
                font-size: .88rem;
            }

            .checkout-actions .btn-primary-modern,
            .checkout-actions .btn-modern,
            .checkout-back-link {
                min-height: 48px;
                font-size: .95rem;
            }

            .checkout-total-row.is-grand strong:last-child {
                font-size: 1.28rem;
            }

            .checkout-empty {
                padding: 34px 20px;
            }
        }


/* Source: payment.php */
body {
            background: var(--bg-light);
        }

        .payment-shell {
            max-width: 1320px;
        }

        .payment-hero {
            padding: var(--space-8);
        }

        .payment-hero-logo {
            max-width: 240px;
            height: auto;
        }

        .payment-layout {
            display: grid;
            grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
            gap: var(--space-6);
        }

        .payment-stack {
            display: grid;
            gap: var(--space-6);
        }

        .payment-panel {
            overflow: hidden;
        }

        .payment-panel-header,
        .payment-panel-body {
            padding: var(--space-6);
        }

        .payment-panel-header {
            border-bottom: 1px solid var(--border-color);
            background: var(--bg-white);
        }

        .payment-panel-title {
            margin-bottom: var(--space-2);
        }

        .payment-panel-subtitle {
            margin-bottom: 0;
        }

        .payment-summary-list {
            display: grid;
            gap: var(--space-4);
        }

        .payment-summary-item {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: var(--space-4);
            padding: var(--space-5);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            background: var(--bg-white);
        }

        .payment-summary-item-name {
            font-family: var(--font-heading);
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: var(--space-2);
        }

        .payment-summary-meta {
            display: flex;
            flex-wrap: wrap;
            gap: var(--space-2);
            margin-bottom: var(--space-2);
        }

        .payment-summary-price {
            text-align: right;
            font-family: var(--font-heading);
            font-weight: 700;
            color: var(--text-primary);
        }

        .payment-totals {
            display: grid;
            gap: var(--space-3);
            padding-top: var(--space-5);
            border-top: 1px solid var(--border-color);
        }

        .payment-total-row {
            display: flex;
            justify-content: space-between;
            gap: var(--space-4);
            color: var(--text-secondary);
        }

        .payment-total-row strong {
            color: var(--text-primary);
        }

        .payment-total-row.is-grand {
            padding-top: var(--space-3);
            margin-top: var(--space-2);
            border-top: 1px dashed var(--border-color);
        }

        .payment-total-row.is-grand strong:last-child {
            font-size: 1.5rem;
            color: var(--primary);
        }

        .payment-method-grid {
            display: grid;
            gap: var(--space-4);
        }

        .payment-method-card {
            position: relative;
            display: block;
            cursor: pointer;
            width: 100%;
        }

        .payment-method-card input {
            position: absolute;
            inset: 0;
            opacity: 0;
            pointer-events: none;
        }

        .payment-method-card span {
            display: flex;
            align-items: center;
            gap: var(--space-4);
            width: 100%;
            min-height: 88px;
            padding: var(--space-5);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            background: var(--bg-white);
            color: var(--text-primary);
            font-family: var(--font-heading);
            font-weight: 600;
            box-shadow: var(--shadow-sm);
            transition: var(--transition-fast);
        }

        .payment-method-card span i {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            border-radius: var(--radius-md);
            background: var(--primary-light);
            color: var(--primary);
            font-size: 1.2rem;
        }

        .payment-method-card input:checked+span {
            border-color: var(--primary);
            background: var(--primary-light);
            box-shadow: var(--shadow-primary);
        }

        .payment-method-card input:checked+span i {
            background: var(--primary);
            color: var(--text-inverse);
        }

        .payment-dynamic-block {
            margin-top: var(--space-5);
            padding: var(--space-5);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-xl);
            background: var(--bg-section);
        }

        .payment-dynamic-block.d-none {
            display: none !important;
        }

        .payment-dynamic-block.credit_card {
            padding: var(--space-6);
            border-radius: var(--radius-2xl);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
            box-shadow: var(--shadow-md);
        }

        .payment-qr-image {
            display: block;
            width: min(100%, 320px);
            margin: 0 auto var(--space-4);
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-md);
        }

        .payment-helper {
            margin-bottom: 0;
            font-size: 0.95rem;
            color: var(--text-secondary);
        }

        .payment-success-shell {
            max-width: 760px;
            margin: 0 auto;
            text-align: center;
            padding: var(--space-10) var(--space-6);
        }

        .payment-success-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 96px;
            height: 96px;
            border-radius: var(--radius-xl);
            background: var(--success-light);
            color: var(--success);
            box-shadow: var(--shadow-sm);
            margin-bottom: var(--space-5);
        }

        .payment-success-icon img {
            width: 52px;
            height: 52px;
        }

        #checkout-form {
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
        }

        #gb-form {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            width: 100%;
            max-width: 100%;
            min-height: 720px;
            margin: 0 auto;
            overflow: visible;
        }

        #gb-form iframe {
            width: calc(100% / 1.14) !important;
            max-width: none !important;
            min-width: 460px;
            min-height: 640px !important;
            border: 0;
            transform: scale(1.14);
            transform-origin: top center;
        }

        @media (max-width: 991.98px) {
            .payment-layout {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 767.98px) {

            .payment-hero,
            .payment-panel-header,
            .payment-panel-body {
                padding: var(--space-5);
            }

            .payment-summary-item {
                grid-template-columns: 1fr;
            }

            .payment-summary-price {
                text-align: left;
            }

            .payment-dynamic-block.credit_card {
                padding: var(--space-5);
            }

            #gb-form {
                min-height: 640px;
            }

            #gb-form iframe {
                width: 100% !important;
                min-width: 100%;
                min-height: 620px !important;
                transform: none;
            }
        }


/* Source: thankyou.php */
body {
            margin: 0;
            background: var(--bg-light);
            color: var(--text-primary);
            font-family: var(--font-body);
        }

        .receipt-shell {
            padding: calc(var(--site-header-offset) + var(--space-5)) 0 var(--space-8);
        }

        .receipt-container {
            max-width: 850px;
        }

        .receipt-card {
            background: var(--bg-white);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-md);
        }

        .receipt-logo {
            max-width: 160px;
            height: auto;
        }

        .badge-paid {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.35rem 0.85rem;
            border-radius: var(--radius-full);
            background: var(--success-light);
            color: var(--success-dark);
            font-size: 0.85rem;
            font-weight: 600;
        }

        .info-label {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .receipt-info-list {
            display: grid;
            gap: 10px;
        }

        .receipt-info-item {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: baseline;
        }

        .receipt-info-item .info-label {
            margin: 0;
        }

        .receipt-info-value {
            font-weight: 500;
            color: var(--text-primary);
        }

        .table-modern th {
            background: var(--primary-50);
            color: var(--secondary);
            font-family: var(--font-heading);
            font-weight: 600;
            border-bottom: 2px solid var(--border-color);
            padding: 1rem;
        }

        .table-modern td {
            padding: 1rem;
            border-bottom: 1px solid var(--border-color);
            vertical-align: middle;
        }

        .table-modern {
            width: 100%;
            table-layout: fixed;
        }

        .table-item-name {
            white-space: normal;
            word-break: break-word;
            overflow-wrap: anywhere;
            line-height: 1.45;
        }

        .table-modern tbody tr:last-child td {
            border-bottom: none;
        }

        .summary-card {
            background: var(--bg-section);
            border-radius: var(--radius-md);
        }

        .receipt-meta-card {
            max-width: 260px;
        }

        .receipt-signature {
            min-width: 220px;
        }

        .receipt-signature-line {
            height: 1px;
            border-bottom: 1px dashed var(--border-color);
        }

        .receipt-note {
            font-family: var(--font-body);
        }

        @media (max-width: 575.98px) {
            .receipt-shell {
                padding: calc(var(--site-header-offset) + var(--space-3)) 0 var(--space-6);
            }

            .receipt-container {
                padding-left: var(--space-3);
                padding-right: var(--space-3);
            }

            .receipt-card {
                border-radius: var(--radius-md);
            }

            .receipt-logo {
                max-width: 132px;
            }

            .receipt-meta-card,
            .receipt-signature {
                max-width: 100%;
                min-width: 0;
            }

            .table-modern th,
            .table-modern td {
                padding: 0.75rem;
            }

            .table-item-name {
                font-size: 0.94rem;
            }

            .receipt-info-item {
                gap: 6px;
            }
        }

        @media print {
            body {
                background: #fff;
            }

            .no-print {
                display: none !important;
            }

            .receipt-card {
                box-shadow: none;
                border: none;
            }
        }

