/* ==========================================================================
   CHECKOUT / BOOKING PAGES (Cart + Book Now)
   ========================================================================== */

.cart-wrapper,
.booking-wrapper {
    padding: 60px 0;
}

.cart-card,
.cart-form-card,
.cart-empty,
.booking-tour-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 22px;
}

.cart-table {
    width: 100%;
}

.cart-card:has(.cart-tour-cards) {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.cart-card:has(.cart-tour-cards) .cart-actions {
    margin-bottom: 16px;
}

.cart-tour-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-tour-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.cart-tour-item__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px;
}

.cart-tour-item__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cart-tour-item__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.cart-tour-item__heading {
    min-width: 0;
}

.cart-tour-item__title {
    margin: 0 0 4px;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
}

.cart-tour-item__title a {
    color: inherit;
    text-decoration: none;
}

.cart-tour-item__title a:hover {
    color: #667eea;
}

.cart-tour-item__meta {
    margin: 0;
    font-size: 0.86rem;
    color: #64748b;
}

.cart-tour-item__fields-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 148px;
    gap: 14px;
}

.cart-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.cart-field-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.02em;
}

.cart-date-wrap {
    position: relative;
    width: 100%;
}

.cart-date-input {
    width: 100%;
    min-height: 46px;
    padding: 10px 40px 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #0f172a;
    background: #fff;
}

.cart-date-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
    outline: none;
}

.cart-date-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 0.95rem;
    pointer-events: none;
}

.cart-people-stepper {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    min-height: 46px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.cart-stepper-btn {
    border: 0;
    background: #f8fafc;
    color: #334155;
    font-size: 1.1rem;
    font-weight: 700;
    height: 100%;
    min-height: 46px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.cart-stepper-btn:hover {
    background: #eef2ff;
    color: #667eea;
}

.cart-stepper-value {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.cart-people-select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.cart-cab-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cart-cab-option {
    margin: 0;
    cursor: pointer;
    display: block;
    min-width: 0;
}

.cart-cab-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cart-cab-option__body {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    min-height: 64px;
    padding: 8px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cart-cab-option__thumb {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-cab-option__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-cab-option__body--none .cart-cab-option__thumb {
    color: #94a3b8;
    font-size: 0.95rem;
}

.cart-cab-option__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cart-cab-option__name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.cart-cab-option__price {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.25;
}

.cart-cab-option__capacity {
    font-size: 0.68rem;
    color: #94a3b8;
    line-height: 1.2;
}

.cart-cab-option.is-unavailable {
    cursor: not-allowed;
    opacity: 0.45;
}

.cart-cab-option.is-unavailable .cart-cab-option__body {
    background: #f8fafc;
}

.cart-cab-option input:checked + .cart-cab-option__body {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.14);
    background: #f8faff;
}

.cart-cab-option input:checked + .cart-cab-option__body .cart-cab-option__name {
    color: #667eea;
}

.cart-pickup-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

.cart-pickup-fields[hidden],
.cart-pickup-detail-wrap[hidden],
.cart-pickup-address[hidden],
[data-cart-pickup-wrap][hidden],
[data-cart-pickup-detail-wrap][hidden],
[data-cart-pickup-address][hidden] {
    display: none !important;
}

.cart-pickup-detail-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
}

.cart-pickup-place,
.cart-pickup-detail,
.cart-pickup-address,
.cart-pickup-time {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
}

.cart-pickup-place.is-invalid,
.cart-pickup-detail.is-invalid,
.cart-pickup-address.is-invalid,
.cart-pickup-time.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.cart-tour-item.is-incomplete {
    border-color: #f1aeb5;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.12);
}

.cart-item-field-error {
    margin-top: 6px;
    color: #b42318;
    font-size: 0.86rem;
    font-weight: 600;
}

.cart-validation-alert ul {
    padding-left: 1.1rem;
}

.cart-pickup-place,
.cart-pickup-detail,
.cart-pickup-address,
.cart-pickup-time {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: #0f172a;
    background: #fff;
}

.cart-pickup-address {
    resize: vertical;
    min-height: 72px;
}

.cart-pickup-place:focus,
.cart-pickup-detail:focus,
.cart-pickup-address:focus,
.cart-pickup-time:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
    outline: none;
}

.cart-tour-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
}

.cart-tour-item__total {
    min-width: 0;
}

.cart-tour-item__total-label {
    display: block;
    font-size: 0.76rem;
    color: #64748b;
    margin-bottom: 4px;
}

.cart-tour-item__total-value {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.cart-tour-item__total-amount {
    display: block;
    margin-top: 2px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #667eea;
}

.cart-tour-item__footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cart-update-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 10px;
    border-width: 1.5px;
    white-space: nowrap;
}

.cart-delete-btn {
    width: 42px;
    height: 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #667eea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.cart-delete-btn:hover {
    border-color: #fecaca;
    background: #fef2f2;
    color: #ef4444;
}

.cart-remove-btn {
    border: 0;
    background: transparent;
    color: #ef4444;
    padding: 0;
}

.cart-table th,
.cart-table td {
    padding: 12px 10px;
    vertical-align: middle;
}

.cart-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cart-actions form {
    display: inline;
}

.cart-empty {
    text-align: center;
}

.cart-row-title {
    font-weight: 700;
    color: #0f172a;
}

.cart-tour-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.cart-tour-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    display: block;
}

.cart-tour-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-tour-info {
    min-width: 0;
}

.cart-help {
    color: #64748b;
    font-size: 14px;
}

.cart-total {
    font-weight: 800;
    font-size: 20px;
}

.cart-remove-btn {
    border: 0;
    background: transparent;
    color: #ef4444;
    padding: 0;
}

.cart-input {
    width: 100%;
    max-width: 220px;
}

.cart-input-sm {
    width: 100%;
    max-width: 140px;
}

.cart-grid,
.booking-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.cart-total-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.cart-total-box .amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}

.cart-total-box .breakdown {
    margin-top: 8px;
    font-size: 0.88rem;
    color: #64748b;
}

.cart-total-box .breakdown span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.payment-options {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.payment-option input {
    margin-top: 4px;
}

.payment-option.is-active {
    border-color: #667eea;
    background: #f8faff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.payment-option strong {
    display: block;
    color: #0f172a;
}

.payment-option span {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 2px;
}

.payment-option.is-disabled {
    opacity: 0.72;
    cursor: not-allowed;
    background: #f8fafc;
}

.payment-option.is-disabled input {
    pointer-events: none;
}

.payment-option .razorpay-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.payment-option .razorpay-badge img {
    height: 18px;
    width: auto;
}

.payment-setup-note {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 10px 12px;
    color: #9a3412;
    font-size: 0.85rem;
    margin-top: 8px;
}

.cart-form-card .cart-field,
.booking-tour-card .cart-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.cart-form-card .cart-form-label,
.booking-tour-card .cart-form-label {
    display: block;
    position: static;
    order: 0;
    margin: 0 0 8px;
    padding: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #374151;
    line-height: 1.4;
    transform: none;
    pointer-events: auto;
}

.cart-form-card .cart-form-label::before,
.cart-form-card .cart-form-label::after,
.booking-tour-card .cart-form-label::before,
.booking-tour-card .cart-form-label::after {
    display: none !important;
    content: none !important;
}

.cart-form-card .cart-form-label i,
.booking-tour-card .cart-form-label i {
    color: #667eea;
    margin-right: 6px;
    font-size: 0.9rem;
}

.cart-form-card .cart-field .form-control,
.cart-form-card .cart-field .form-select,
.booking-tour-card .cart-field .form-control,
.booking-tour-card .cart-field .form-select {
    order: 1;
    margin: 0;
    width: 100%;
    min-height: 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    box-shadow: none;
}

.cart-form-card .cart-field .form-control:focus,
.cart-form-card .cart-field .form-select:focus,
.booking-tour-card .cart-field .form-control:focus,
.booking-tour-card .cart-field .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
    transform: none;
}

.cart-form-card .cart-field textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

.cart-form-card .cart-payment-block {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #eef2f7;
}

.cart-form-card .cart-terms-check {
    margin: 18px 0 16px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.cart-form-card .cart-gst-check {
    margin-bottom: 0;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.cart-form-card .cart-gst-check .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    min-height: 0;
}

.cart-form-card .cart-gst-check .form-check-input {
    margin-top: 0;
}

.cart-form-card .cart-gst-check .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.cart-form-card .cart-gst-check .form-check-label {
    font-size: 0.92rem;
    color: #374151;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cart-form-card .cart-gst-check .form-check-label i {
    color: #667eea;
}

.cart-form-card .cart-gst-optional {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.88em;
}

.cart-form-card .cart-gst-number-wrap {
    margin-top: 12px;
}

.cart-form-card .cart-gst-number-wrap .cart-help {
    display: block;
    margin-top: 6px;
}

.cart-form-card .cart-email-otp-block {
    margin-top: 10px;
}

.cart-form-card .cart-email-otp-block .alert {
    margin-bottom: 10px;
    font-size: 0.88rem;
}

.cart-form-card .cart-email-verified {
    margin-top: 10px;
}

.cart-form-card .cart-email-verified .badge {
    font-size: 0.85rem;
    padding: 0.45rem 0.65rem;
}

.cart-form-card .cart-terms-check .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.cart-form-card .cart-terms-check .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.cart-form-card .cart-terms-check .form-check-label {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.cart-form-card .cart-terms-check a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.cart-form-card .cart-terms-check a:hover {
    text-decoration: underline;
}

.login-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.login-notice a {
    color: #1d4ed8;
    font-weight: 700;
}

.booking-tour-title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
}

.booking-tour-location {
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 14px;
}

.booking-tour-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.booking-tour-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.82rem;
    color: #475569;
    font-weight: 600;
}

.booking-tour-badge i {
    color: #667eea;
    margin-right: 4px;
}

.booking-price-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 18px;
}

.booking-price-line .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #667eea;
}

.booking-price-line .original {
    font-size: 0.95rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.booking-price-line .unit {
    font-size: 0.85rem;
    color: #64748b;
}

.booking-tour-card .section-title {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

@media (min-width: 992px) {
    .cart-grid,
    .booking-grid {
        grid-template-columns: 1.35fr 0.65fr;
    }
}

@media (max-width: 991px) {
    .cart-tour-item__fields-row {
        grid-template-columns: 1fr;
    }

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

    .cart-tour-item__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-tour-item__footer-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 520px) {
    .cart-cab-grid {
        grid-template-columns: 1fr;
    }
}
