/*
 * Urban Swaras - event registration, Duka La Swara and checkout.
 * Loaded after registration.css, which provides the shared top bar,
 * header, mobile menu and footer styles.
 */

:root {
    --primary: #1F3C5F;
    --secondary: #6BA2D9;
    --accent: #F57C51;
    --text: #333333;
    --light-bg: #F5F5F5;
    --white: #FFFFFF;
    --neon-yellow: #FFFF00;
    --mpesa-green: #3BB54A;

    --muted: #5f6b7a;
    --border: rgba(31, 60, 95, 0.12);
    --radius: 16px;
    --shadow: 0 10px 30px rgba(31, 60, 95, 0.08);
    --shadow-hover: 0 18px 40px rgba(31, 60, 95, 0.16);
    --heading-font: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

body {
    margin: 0;
    background: var(--light-bg);
    color: var(--text);
    line-height: 1.6;
}

[hidden] {
    display: none !important;
}

/* ---------- demo banner + top bar extras (were inline on other pages) ---------- */

.demo-banner {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    font-size: 13px;
    padding: 6px 16px;
}

.demo-banner i {
    color: var(--neon-yellow);
    margin-right: 6px;
}

.event-name {
    display: block;
    color: var(--primary);
    font-weight: 800;
    margin-top: 4px;
}

.event-summary {
    font-size: 13px;
    color: rgba(51, 51, 51, 0.85);
    margin-top: 6px;
    max-width: 320px;
}

.event-register-btn {
    white-space: nowrap;
}

/* ---------- header cart ---------- */

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(31, 60, 95, 0.06);
    color: var(--primary);
    font-size: 1.25rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cart-link:hover,
.cart-link.active {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.cart-link .cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    border: 2px solid var(--white);
}

.cart-link .cart-count.empty {
    display: none;
}

/* ---------- layout ---------- */

.shop-main {
    padding-bottom: 60px;
}

.shop-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 5% 0;
}

.section-head {
    margin-bottom: 24px;
}

.section-head.with-filters {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.section-head h2,
.checkout-header h1 {
    font-family: var(--heading-font);
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    color: var(--primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.section-head p {
    color: var(--muted);
    margin: 6px 0 0;
}

/* ---------- hero ---------- */

.shop-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2b5486 60%, var(--secondary) 100%);
    color: var(--white);
    overflow: hidden;
}

.shop-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 5%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.shop-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--neon-yellow);
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin: 0 0 18px;
}

.shop-hero h1 {
    font-family: var(--heading-font);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.02;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.shop-subtitle {
    font-size: 1.05rem;
    max-width: 520px;
    opacity: 0.92;
    margin: 0 0 22px;
}

.shop-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shop-hero-chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
}

.shop-hero-chips i {
    color: var(--neon-yellow);
}

.shop-hero-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: rotate(1.5deg);
}

/* ---------- buttons ---------- */

.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.shop-btn:hover {
    transform: translateY(-2px);
}

.shop-btn:focus-visible,
.choice-pill input:focus-visible + span,
.cart-link:focus-visible {
    outline: 3px solid rgba(107, 162, 217, 0.5);
    outline-offset: 3px;
}

.shop-btn-primary {
    background: var(--primary);
    color: var(--white);
}

.shop-btn-primary:hover {
    box-shadow: 0 8px 20px rgba(31, 60, 95, 0.3);
}

.shop-btn-accent {
    background: var(--accent);
    color: var(--white);
}

.shop-btn-accent:hover {
    box-shadow: 0 8px 20px rgba(245, 124, 81, 0.4);
}

.shop-btn-accent.added {
    background: var(--mpesa-green);
}

.shop-btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.shop-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.shop-btn.block {
    width: 100%;
}

.text-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

/* ---------- event cards ---------- */

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.event-card,
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.event-card:hover,
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.event-card.selected {
    border-color: var(--accent);
}

.event-card-image {
    position: relative;
}

.event-card-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.event-card-date {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: var(--neon-yellow);
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 999px;
}

.event-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-card-body h3 {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    color: var(--primary);
    margin: 0 0 4px;
    line-height: 1.1;
}

.event-card-location {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 10px;
}

.event-card-body > p {
    margin: 0 0 12px;
    font-size: 15px;
}

.event-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.event-card-tags span {
    background: rgba(107, 162, 217, 0.15);
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
}

.event-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.from-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.event-card-footer strong {
    font-size: 1.25rem;
    color: var(--primary);
}

.spots-left {
    font-size: 13px;
    color: var(--muted);
    margin: 12px 0 0 !important;
}

/* ---------- panels & forms ---------- */

.shop-panel {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.register-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.panel-head {
    border-bottom: 3px solid var(--neon-yellow);
    padding-bottom: 16px;
    margin-bottom: 8px;
}

.panel-step {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    font-weight: 700;
}

.panel-head h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--primary);
    margin: 2px 0 4px;
    line-height: 1.1;
}

.panel-meta {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
}

.form-block {
    border: none;
    margin: 0;
    padding: 20px 0 0;
    min-width: 0;
}

.shop-panel.form-block {
    padding: 28px;
}

.form-block legend {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
    padding: 0;
    margin-bottom: 14px;
    float: left;
    width: 100%;
}

.form-block legend + * {
    clear: both;
}

.legend-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    font-size: 14px;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    clear: both;
}

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

.field label,
.field-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 6px;
}

.field input,
.field textarea,
.addon-size {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e1e6ed;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fafbfc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.addon-size:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(107, 162, 217, 0.18);
    background: var(--white);
}

.field input:user-invalid,
.field textarea:user-invalid {
    border-color: #e5484d;
}

.hint {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 14px;
    clear: both;
}

/* pills (distance, gender, size, colour) */

.choice-row,
.swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    clear: both;
}

.choice-pill {
    position: relative;
    cursor: pointer;
}

.choice-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-pill span {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid #dce3ec;
    border-radius: 999px;
    font-weight: 700;
    color: var(--primary);
    background: var(--white);
    transition: all 0.15s ease;
}

.choice-pill.small span {
    padding: 6px 12px;
    font-size: 13px;
}

.choice-pill:hover span {
    border-color: var(--secondary);
}

.choice-pill input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* add-ons and delivery options */

.addon-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    clear: both;
}

.addon-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.addon-check {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e1e6ed;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.addon-check:hover {
    border-color: var(--secondary);
}

.addon-check:has(input:checked) {
    border-color: var(--accent);
    background: rgba(245, 124, 81, 0.06);
}

.addon-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.addon-label {
    flex: 1;
    font-weight: 600;
}

.addon-price {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.addon-size {
    width: 90px;
    flex-shrink: 0;
}

.addon-size:disabled {
    opacity: 0.4;
}

#deliveryAddress {
    margin-top: 14px;
}

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 24px 0 0;
    font-size: 14px;
}

.consent input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.consent a,
.secure-note a {
    color: var(--primary);
    font-weight: 600;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.form-actions.centered {
    justify-content: center;
}

/* ---------- summary sidebar ---------- */

.summary-panel {
    position: sticky;
    top: 20px;
}

.summary-panel h3,
.confirmation h3 {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 1.15rem;
}

.summary-event {
    color: var(--accent);
    font-weight: 700;
    margin: 0 0 14px;
}

.summary-lines {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

.summary-lines li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 15px;
}

.summary-lines small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    background: var(--neon-yellow);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 700;
    color: var(--primary);
}

.summary-total strong {
    font-size: 1.4rem;
}

.summary-upsell {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 12px;
    background: rgba(107, 162, 217, 0.12);
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}

.summary-upsell i {
    font-size: 1.4rem;
    color: var(--accent);
}

.secure-note {
    font-size: 13px;
    color: var(--muted);
    margin: 14px 0 0;
}

/* ---------- shop ---------- */

.shop-filters {
    display: flex;
    gap: 6px;
    background: var(--white);
    padding: 5px;
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.shop-filters button {
    border: none;
    background: transparent;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-family: inherit;
    color: var(--primary);
    cursor: pointer;
}

.shop-filters button.active {
    background: var(--primary);
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-image {
    position: relative;
    background: #f3f4f6;
}

.product-image img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    display: block;
    padding: 12px;
    transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}

.product-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-body h3 {
    font-family: var(--heading-font);
    font-size: 1.45rem;
    color: var(--primary);
    margin: 0 0 6px;
    line-height: 1.1;
}

.product-body > p {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 12px;
}

.option-group {
    margin-bottom: 12px;
}

.option-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 6px;
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 1.25rem;
    color: var(--primary);
}

.product-footer .shop-btn {
    padding: 10px 16px;
    font-size: 14px;
}

.cross-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--neon-yellow);
    border-radius: var(--radius);
    padding: 28px 32px;
    text-decoration: none;
    color: var(--primary);
}

.cross-banner h3 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    margin: 0;
    text-transform: uppercase;
}

.cross-banner p {
    margin: 4px 0 0;
}

/* ---------- toast ---------- */

.shop-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 120px);
    background: var(--primary);
    color: var(--white);
    padding: 14px 20px;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    max-width: calc(100% - 32px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shop-toast.show {
    transform: translate(-50%, 0);
}

.shop-toast i {
    color: var(--neon-yellow);
}

.shop-toast a {
    color: var(--neon-yellow);
    white-space: nowrap;
}

/* ---------- checkout ---------- */

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.checkout-steps {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: none;
}

.checkout-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--muted);
}

.checkout-steps li:not(:last-child)::after {
    content: '';
    width: 28px;
    height: 2px;
    background: #d6dce4;
    margin-left: 4px;
}

.checkout-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #d6dce4;
    color: var(--white);
    font-size: 13px;
}

.checkout-steps[data-step="2"] li:nth-child(-n+2),
.checkout-steps[data-step="3"] li {
    color: var(--primary);
}

.checkout-steps[data-step="2"] li:nth-child(-n+2) span,
.checkout-steps[data-step="3"] li span {
    background: var(--accent);
}

.panel-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.panel-title-row h2 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0;
}

.panel-title-row small {
    color: var(--muted);
    font-weight: 500;
}

.cart-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    object-fit: cover;
    background: #f3f4f6;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(245, 124, 81, 0.12);
    color: var(--accent);
}

.cart-item-type.event {
    background: rgba(107, 162, 217, 0.18);
    color: var(--primary);
}

.cart-item h4 {
    margin: 4px 0 2px;
    color: var(--primary);
    font-size: 1rem;
}

.cart-item p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    border: 2px solid #e1e6ed;
    border-radius: 999px;
    overflow: hidden;
}

.qty-control button {
    border: none;
    background: transparent;
    width: 32px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    color: var(--primary);
}

.qty-control button:hover {
    background: var(--light-bg);
}

.qty-control span {
    min-width: 26px;
    text-align: center;
    font-weight: 700;
}

.cart-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.cart-item-side strong {
    color: var(--primary);
    white-space: nowrap;
}

.remove-item {
    border: none;
    background: transparent;
    color: #9aa5b1;
    cursor: pointer;
    font-size: 15px;
    padding: 6px;
}

.remove-item:hover {
    color: #e5484d;
}

.pay-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid #e1e6ed;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    clear: both;
}

.pay-option:has(input:checked) {
    border-color: var(--mpesa-green);
    background: rgba(59, 181, 74, 0.06);
}

.pay-option.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.pay-option input {
    accent-color: var(--mpesa-green);
    width: 18px;
    height: 18px;
}

.pay-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--white);
    flex-shrink: 0;
}

.pay-icon.mpesa {
    background: var(--mpesa-green);
}

.pay-text {
    flex: 1;
}

.pay-text strong {
    display: block;
    color: var(--primary);
}

.pay-text small {
    color: var(--muted);
}

.soon-badge,
.demo-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--neon-yellow);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 999px;
}

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

.empty-cart > i {
    font-size: 3rem;
    color: var(--secondary);
}

.empty-cart h2 {
    color: var(--primary);
    margin: 12px 0 4px;
}

.empty-cart p {
    color: var(--muted);
    margin: 0;
}

/* confirmation */

.confirmation-head {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--neon-yellow);
    margin-bottom: 24px;
}

.confirmation-head > i {
    font-size: 3.5rem;
    color: var(--mpesa-green);
}

.confirmation-head h2 {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    color: var(--primary);
    margin: 8px 0 4px;
    text-transform: uppercase;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.confirmation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.pay-instructions {
    background: linear-gradient(135deg, rgba(107, 162, 217, 0.1), rgba(245, 124, 81, 0.1));
    border-left: 4px solid var(--mpesa-green);
    border-radius: 12px;
    padding: 20px;
}

.pay-instructions h3 i {
    color: var(--mpesa-green);
}

.pay-instructions ol {
    padding-left: 20px;
    margin: 12px 0;
}

.pay-instructions li {
    margin-bottom: 6px;
}

/* ---------- responsive ---------- */

@media (max-width: 991px) {
    .shop-hero-inner {
        grid-template-columns: 1fr;
        padding: 40px 16px;
        gap: 28px;
    }

    .shop-hero-image img {
        transform: none;
        aspect-ratio: 16 / 9;
    }

    .register-layout,
    .checkout-layout,
    .confirmation-grid {
        grid-template-columns: 1fr;
    }

    .summary-panel {
        position: static;
    }
}

@media (max-width: 600px) {
    .shop-section {
        padding: 32px 16px 0;
    }

    .shop-panel,
    .shop-panel.form-block {
        padding: 20px 16px;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .form-actions .shop-btn {
        width: 100%;
    }

    .event-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .cart-link {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .cart-item img {
        width: 64px;
        height: 64px;
    }

    .checkout-steps li:not(:last-child)::after {
        width: 12px;
    }

    .addon-row {
        flex-wrap: wrap;
    }

    .addon-size {
        width: 100%;
    }

    .cross-banner {
        padding: 22px 20px;
    }
}

/* ---------- live checkout: errors, loading and M-Pesa payment states ---------- */

.form-error {
    background: #fde2e2;
    color: #9b2c2c;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 14px;
}

.load-error,
.empty-note {
    grid-column: 1 / -1;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 20px;
    color: var(--muted);
}

.load-error i {
    font-size: 2rem;
    color: var(--accent);
}

.spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 4px solid rgba(59, 181, 74, 0.25);
    border-top-color: var(--mpesa-green);
    border-radius: 50%;
    animation: shop-spin 0.9s linear infinite;
    flex-shrink: 0;
}

.spinner.small {
    width: 16px;
    height: 16px;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.4);
    border-top-color: var(--white);
}

@keyframes shop-spin {
    to {
        transform: rotate(360deg);
    }
}

.stk-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stk-row input {
    flex: 1;
    min-width: 160px;
    padding: 12px 14px;
    border: 2px solid #e1e6ed;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
}

.stk-row input:focus {
    outline: none;
    border-color: var(--mpesa-green);
}

.stk-waiting {
    display: flex;
    gap: 14px;
    align-items: center;
}

.stk-waiting p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.stk-message {
    margin: 12px 0 0;
    color: #9b2c2c;
    font-weight: 600;
    font-size: 14px;
}

.pay-instructions + .pay-instructions {
    margin-top: 16px;
}

.pay-instructions.paybill {
    border-left-color: var(--secondary);
}

.pay-instructions.paid {
    background: rgba(59, 181, 74, 0.1);
}

.status-badge.paid {
    background: #dcf5e3;
    color: #1f6e33;
}

.status-badge.cancelled {
    background: #fde2e2;
    color: #9b2c2c;
}

.confirmation-head > i.fa-receipt {
    color: var(--secondary);
}

.shop-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
