/*
 * Angaza shared UI kit
 * Keeps public, auth, customer, cart, and dashboard controls on one visual system.
 * Logic stays in the existing Blade/JS; this file only normalizes presentation.
 */

:root {
    --angaza-ui-primary: #062f3f;
    --angaza-ui-primary-2: #041f2b;
    --angaza-ui-primary-3: #083c4f;
    --angaza-ui-gold: #d99a2b;
    --angaza-ui-gold-2: #f1bd54;
    --angaza-ui-bg: #f7f9fb;
    --angaza-ui-cream: #faf7f0;
    --angaza-ui-text: #102a43;
    --angaza-ui-muted: #667085;
    --angaza-ui-border: #e7eaf0;
    --angaza-ui-danger: #b42318;
    --angaza-ui-success: #198754;
    --angaza-ui-shadow: 0 18px 48px rgba(6, 47, 63, 0.12);
    --angaza-ui-soft-shadow: 0 10px 30px rgba(16, 42, 67, 0.08);
    --angaza-ui-radius: 16px;
    --angaza-ui-radius-lg: 22px;
}

body.angaza-public-body,
body.angaza-auth-body,
body.angaza-app-shell,
.site-frame {
    color: var(--angaza-ui-text);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

body.angaza-public-body,
.angaza-search-public-page,
body.angaza-auth-body {
    background:
        radial-gradient(circle at top left, rgba(217, 154, 43, 0.08), transparent 28rem),
        linear-gradient(180deg, #fbfcfd 0%, #f4f7fa 100%);
}

/* Public/auth pages load Font Awesome. Keep the internal LineIcons fallback out of those pages. */
body.angaza-public-body .fa,
body.angaza-public-body .fas,
body.angaza-public-body .far,
body.angaza-public-body .fa-solid,
body.angaza-public-body .fa-regular,
.angaza-search-public-page .fa,
.angaza-search-public-page .fas,
.angaza-search-public-page .far,
.angaza-auth-body .fa,
.angaza-auth-body .fas,
.angaza-auth-body .far {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

body.angaza-public-body .fab,
body.angaza-public-body .fa-brands,
.angaza-search-public-page .fab,
.angaza-auth-body .fab {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

/* Restore common Font Awesome glyphs when older fallback CSS has already overwritten content codes. */
body.angaza-public-body .fa-bars::before,
.angaza-search-public-page .fa-bars::before { content: "\f0c9" !important; }
body.angaza-public-body .fa-search::before,
.angaza-search-public-page .fa-search::before,
.angaza-auth-body .fa-search::before { content: "\f002" !important; }
body.angaza-public-body .fa-user-circle::before,
.angaza-search-public-page .fa-user-circle::before { content: "\f2bd" !important; }
body.angaza-public-body .fa-user::before,
.angaza-auth-body .fa-user::before { content: "\f007" !important; }
body.angaza-public-body .fa-user-plus::before,
.angaza-search-public-page .fa-user-plus::before,
.angaza-auth-body .fa-user-plus::before { content: "\f234" !important; }
body.angaza-public-body .fa-cart-shopping::before,
body.angaza-public-body .fa-shopping-cart::before,
body.angaza-public-body .fa-cart-plus::before,
.angaza-search-public-page .fa-cart-shopping::before { content: "\f07a" !important; }
body.angaza-public-body .fa-receipt::before,
.angaza-search-public-page .fa-receipt::before { content: "\f543" !important; }
body.angaza-public-body .fa-phone::before,
.angaza-auth-body .fa-phone::before { content: "\f095" !important; }
body.angaza-public-body .fa-envelope::before,
.angaza-auth-body .fa-envelope::before { content: "\f0e0" !important; }
body.angaza-public-body .fa-lock::before,
.angaza-auth-body .fa-lock::before { content: "\f023" !important; }
body.angaza-public-body .fa-globe::before { content: "\f0ac" !important; }
body.angaza-public-body .fa-eye::before,
.angaza-auth-body .fa-eye::before { content: "\f06e" !important; }
body.angaza-public-body .fa-trash::before { content: "\f1f8" !important; }
body.angaza-public-body .fa-box-open::before { content: "\f49e" !important; }
body.angaza-public-body .fa-layer-group::before { content: "\f5fd" !important; }
body.angaza-public-body .fa-tag::before { content: "\f02b" !important; }
body.angaza-public-body .fa-cubes::before { content: "\f1b3" !important; }
body.angaza-public-body .fa-credit-card::before { content: "\f09d" !important; }
body.angaza-public-body .fa-bag-shopping::before { content: "\f290" !important; }
body.angaza-public-body .fa-mobile-screen-button::before { content: "\f3cd" !important; }
body.angaza-public-body .fa-qrcode::before { content: "\f029" !important; }
body.angaza-public-body .fa-building-columns::before { content: "\f19c" !important; }
body.angaza-public-body .fa-money-bill-wave::before { content: "\f53a" !important; }
body.angaza-public-body .fa-rotate::before { content: "\f2f1" !important; }
body.angaza-public-body .fa-print::before { content: "\f02f" !important; }
body.angaza-public-body .fa-arrow-left::before { content: "\f060" !important; }
body.angaza-public-body .fa-circle-info::before,
.angaza-auth-body .fa-info-circle::before { content: "\f05a" !important; }
body.angaza-public-body .fa-circle-check::before,
body.angaza-public-body .fa-check-circle::before,
.angaza-auth-body .fa-check-circle::before { content: "\f058" !important; }
body.angaza-public-body .fa-shield-halved::before,
.angaza-auth-body .fa-shield-alt::before { content: "\f3ed" !important; }
body.angaza-public-body .fa-location-dot::before,
body.angaza-public-body .fa-map-marker-alt::before { content: "\f3c5" !important; }
body.angaza-public-body .fa-clock::before { content: "\f017" !important; }
body.angaza-public-body .fa-handshake::before { content: "\f2b5" !important; }
body.angaza-public-body .fa-building::before,
.angaza-auth-body .fa-building::before { content: "\f1ad" !important; }
body.angaza-public-body .fa-star::before { content: "\f005" !important; }
body.angaza-public-body .fa-arrow-right::before,
.angaza-auth-body .fa-arrow-right::before { content: "\f061" !important; }
body.angaza-public-body .fa-chevron-down::before { content: "\f078" !important; }
body.angaza-public-body .fa-briefcase::before { content: "\f0b1" !important; }
body.angaza-public-body .fa-code-branch::before { content: "\f126" !important; }

body.angaza-public-body .fa-whatsapp::before { content: "\f232" !important; }
body.angaza-public-body .fa-facebook-f::before,
body.angaza-public-body .fa-facebook::before { content: "\f39e" !important; }
body.angaza-public-body .fa-twitter::before { content: "\f099" !important; }
body.angaza-public-body .fa-linkedin-in::before,
body.angaza-public-body .fa-linkedin::before { content: "\f0e1" !important; }
body.angaza-public-body .fa-instagram::before { content: "\f16d" !important; }

/* Buttons */
body.angaza-public-body .btn,
body.angaza-auth-body .btn,
body.angaza-app-shell .btn,
.angaza-public-btn,
.angaza-gold-btn,
.more-details-btn,
.soft-action-btn,
.add-to-cart-premium,
.pill-action,
.search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 13px;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.15;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

body.angaza-public-body .btn:hover,
body.angaza-auth-body .btn:hover,
body.angaza-app-shell .btn:hover,
.angaza-public-btn:hover,
.angaza-gold-btn:hover,
.more-details-btn:hover,
.soft-action-btn:hover,
.add-to-cart-premium:hover,
.pill-action:hover,
.search-btn:hover {
    transform: translateY(-1px);
}

body.angaza-public-body .btn-primary,
body.angaza-auth-body .btn-primary,
body.angaza-app-shell .btn-primary,
.angaza-public-btn,
.more-details-btn {
    border-color: var(--angaza-ui-primary) !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--angaza-ui-primary), var(--angaza-ui-primary-2)) !important;
    box-shadow: 0 12px 28px rgba(6, 47, 63, 0.16);
}

body.angaza-public-body .btn-success,
body.angaza-public-body .btn-warning,
body.angaza-auth-body .btn-success,
body.angaza-auth-body .btn-register,
body.angaza-app-shell .btn-success,
body.angaza-app-shell .btn-warning,
.angaza-gold-btn,
.add-to-cart-premium {
    border-color: var(--angaza-ui-gold) !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--angaza-ui-gold), #c88218) !important;
    box-shadow: 0 12px 26px rgba(217, 154, 43, 0.22);
}

body.angaza-public-body .btn-secondary,
body.angaza-auth-body .btn-secondary,
body.angaza-app-shell .btn-secondary,
.soft-action-btn {
    border-color: var(--angaza-ui-border) !important;
    color: var(--angaza-ui-text) !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.angaza-public-body .btn-outline-secondary,
body.angaza-auth-body .btn-outline-secondary,
body.angaza-app-shell .btn-outline-secondary {
    border-color: rgba(6, 47, 63, 0.16) !important;
    color: var(--angaza-ui-primary) !important;
    background: #fff !important;
}

body.angaza-public-body .btn-outline-secondary:hover,
body.angaza-auth-body .btn-outline-secondary:hover,
body.angaza-app-shell .btn-outline-secondary:hover {
    border-color: rgba(217, 154, 43, 0.55) !important;
    color: var(--angaza-ui-primary) !important;
    background: #fff8ea !important;
}

body.angaza-public-body .btn-outline-danger,
body.angaza-auth-body .btn-outline-danger,
body.angaza-app-shell .btn-outline-danger {
    border-color: rgba(180, 35, 24, 0.32) !important;
    color: var(--angaza-ui-danger) !important;
    background: #fff !important;
}

body.angaza-public-body .btn-danger,
body.angaza-auth-body .btn-danger,
body.angaza-app-shell .btn-danger {
    border-color: var(--angaza-ui-danger) !important;
    background: var(--angaza-ui-danger) !important;
}

/* Forms */
body.angaza-public-body .form-control,
body.angaza-public-body .form-select,
body.angaza-auth-body .form-control,
body.angaza-auth-body .form-select,
body.angaza-app-shell .form-control,
body.angaza-app-shell .form-select {
    min-height: 44px;
    border: 1px solid var(--angaza-ui-border) !important;
    border-radius: 13px !important;
    color: var(--angaza-ui-text);
    background-color: #fff;
    box-shadow: none !important;
}

body.angaza-public-body textarea.form-control,
body.angaza-auth-body textarea.form-control,
body.angaza-app-shell textarea.form-control {
    min-height: auto;
}

body.angaza-public-body .form-control:focus,
body.angaza-public-body .form-select:focus,
body.angaza-auth-body .form-control:focus,
body.angaza-auth-body .form-select:focus,
body.angaza-app-shell .form-control:focus,
body.angaza-app-shell .form-select:focus {
    border-color: rgba(217, 154, 43, 0.72) !important;
    box-shadow: 0 0 0 0.22rem rgba(217, 154, 43, 0.16) !important;
}

body.angaza-public-body .form-label,
body.angaza-auth-body .form-label,
body.angaza-app-shell .form-label,
body.angaza-public-body label,
body.angaza-auth-body label,
body.angaza-app-shell label {
    color: var(--angaza-ui-text);
    font-weight: 800;
}

body.angaza-public-body .form-check-input:checked,
body.angaza-auth-body .form-check-input:checked,
body.angaza-app-shell .form-check-input:checked {
    border-color: var(--angaza-ui-gold);
    background-color: var(--angaza-ui-gold);
}

body.angaza-public-body .form-check-input:focus,
body.angaza-auth-body .form-check-input:focus,
body.angaza-app-shell .form-check-input:focus {
    border-color: rgba(217, 154, 43, 0.72);
    box-shadow: 0 0 0 0.22rem rgba(217, 154, 43, 0.16);
}

/* Compact public company search. */
.angaza-company-show .search-card {
    max-width: 850px;
    margin-top: 1.25rem;
    padding: 0.58rem;
    border-radius: 15px;
}

.angaza-company-show .search-panel {
    grid-template-columns: minmax(0, 1fr) 185px 112px;
}

.angaza-company-show .search-input-shell,
.angaza-company-show .location-shell,
.angaza-company-show .search-btn,
.angaza-company-show #search-bar {
    min-height: 50px;
}

.angaza-company-show .search-input-shell,
.angaza-company-show .location-shell {
    padding-inline: 0.9rem;
}

.angaza-company-show .search-btn {
    padding-inline: 18px;
    font-size: 0.86rem;
    box-shadow: 0 10px 20px rgba(217, 154, 43, 0.2);
}

.angaza-company-show .category-shell .form-select {
    min-height: 46px;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent;
    font-size: 0.87rem;
    font-weight: 800;
}

/* Cards, product listings, and cart controls. */
.store-product-card {
    overflow: hidden;
    border: 1px solid var(--angaza-ui-border) !important;
    border-radius: 18px !important;
    background: #fff;
    box-shadow: var(--angaza-ui-soft-shadow) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.store-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(217, 154, 43, 0.42) !important;
    box-shadow: var(--angaza-ui-shadow) !important;
}

.store-product-card .card-img-top {
    width: 100%;
    height: 210px;
    padding: 0.85rem;
    object-fit: contain;
    background: linear-gradient(180deg, #f8fafc, #fff);
    border-bottom: 1px solid var(--angaza-ui-border);
}

.store-product-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.store-product-card .card-title {
    margin: 0;
    color: var(--angaza-ui-text);
    font-size: 1.03rem;
    font-weight: 900;
    line-height: 1.25;
}

.store-product-card .card-text {
    color: var(--angaza-ui-muted) !important;
    font-size: 0.9rem;
}

.store-product-card .mt-auto.d-flex,
.store-product-card .mt-auto > .d-flex {
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center !important;
}

.store-product-card .mt-auto .d-flex .btn,
.store-product-card .btn-sm {
    min-height: 38px;
    padding: 0.48rem 0.72rem;
    font-size: 0.8rem;
}

.badge-price {
    color: var(--angaza-ui-primary);
    font-weight: 950;
}

.text-gold {
    color: var(--angaza-ui-gold) !important;
}

.cart-btn-float {
    z-index: 2600 !important;
}

.cart-btn-float .btn {
    width: 58px !important;
    height: 58px !important;
    color: #fff !important;
    border: 0 !important;
    background: linear-gradient(135deg, var(--angaza-ui-gold), #c88218) !important;
    box-shadow: 0 18px 40px rgba(217, 154, 43, 0.32) !important;
}

.cart-btn-float .badge,
#cartCount,
#cartCountFloat {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    font-size: 0.74rem;
    font-weight: 950;
}

#cartModal .cart-qty {
    width: 86px;
    min-height: 38px;
    text-align: center;
}

#cartModal .cart-item-name-cell {
    min-width: 180px;
    font-weight: 850;
}

#cartModal .table thead th,
#paymentsModal .table thead th,
body.angaza-app-shell .table thead th {
    color: var(--angaza-ui-muted);
    background: #f8fafc;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#cartModal .table td,
#paymentsModal .table td {
    vertical-align: middle;
}

/* Bootstrap modals and custom terms/privacy popups. */
.modal {
    z-index: 3000;
}

.modal-backdrop {
    z-index: 2990;
    background-color: #041f2b;
}

.auth-premium-modal {
    z-index: 3120;
}

.auth-priority-backdrop {
    z-index: 3110 !important;
}

body.angaza-public-body .modal-content,
body.angaza-auth-body .modal-content,
body.angaza-app-shell .modal-content {
    overflow: hidden;
    border: 1px solid rgba(231, 234, 240, 0.92);
    border-radius: var(--angaza-ui-radius-lg);
    background: #fff;
    box-shadow: 0 28px 80px rgba(6, 47, 63, 0.22);
}

body.angaza-public-body .modal-header,
body.angaza-auth-body .modal-header,
body.angaza-app-shell .modal-header {
    border-bottom: 1px solid var(--angaza-ui-border);
    background:
        radial-gradient(circle at 15% 20%, rgba(217, 154, 43, 0.16), transparent 14rem),
        linear-gradient(135deg, #ffffff, #fbfdff);
}

body.angaza-public-body .modal-title,
body.angaza-auth-body .modal-title,
body.angaza-app-shell .modal-title {
    color: var(--angaza-ui-text);
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 800;
    letter-spacing: 0;
}

body.angaza-public-body .modal-footer,
body.angaza-auth-body .modal-footer,
body.angaza-app-shell .modal-footer {
    border-top: 1px solid var(--angaza-ui-border);
    background: #fbfcfd;
}

body.angaza-public-body .btn-close,
body.angaza-auth-body .btn-close,
body.angaza-app-shell .btn-close,
.angaza-terms-close {
    border-radius: 999px;
    background-color: #eef2f7;
    opacity: 1;
}

.auth-checkout-alert {
    border: 1px solid rgba(217, 154, 43, 0.42);
    border-radius: 14px;
    color: #7a4d08;
    background: #fff8ea;
}

.auth-help {
    cursor: help;
}

.checkout-field-card,
.checkout-summary-card {
    border: 1px solid rgba(231, 234, 240, 0.98) !important;
    border-radius: 18px !important;
    background: #fbfdff !important;
    box-shadow: none !important;
}

.payment-instruction-card {
    border-left: 4px solid var(--angaza-ui-gold) !important;
}

.payment-action-stack {
    min-width: min(100%, 230px);
}

.payment-method-grid .form-check {
    cursor: pointer;
    position: relative;
    align-items: flex-start;
    gap: 0.75rem;
}

.payment-method-grid .form-check:has(.form-check-input:checked) {
    border-color: rgba(217, 154, 43, 0.7);
    background: #fff8ea;
    box-shadow: 0 0 0 3px rgba(217, 154, 43, 0.08);
}

.payment-method-option .form-check-input {
    margin-top: 0.25rem;
}

.payment-method-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--angaza-ui-gold);
    background: #fff4dc;
}

/* Real checkout page. */
.checkout-page-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 10%, rgba(217, 154, 43, 0.12), transparent 25rem),
        linear-gradient(180deg, #fbfcfd 0%, #f6f8fb 100%);
}

.checkout-page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 1rem 0 3.25rem;
    background:
        radial-gradient(circle at 18% 14%, rgba(217, 154, 43, 0.2), transparent 20rem),
        radial-gradient(circle at 85% 10%, rgba(59, 178, 206, 0.14), transparent 24rem),
        linear-gradient(135deg, var(--angaza-ui-primary), var(--angaza-ui-primary-2));
}

.checkout-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 1px, transparent 1.5px);
    background-size: 18px 18px;
    pointer-events: none;
}

.checkout-mini-nav,
.checkout-brand,
.checkout-nav-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.checkout-mini-nav {
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0 2.2rem;
}

.checkout-brand {
    gap: 0.7rem;
    color: #fff;
    text-decoration: none;
}

.checkout-brand:hover {
    color: #ffd36c;
    text-decoration: none;
}

.checkout-brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.checkout-brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.checkout-brand strong {
    color: #fff;
    font-weight: 900;
}

.checkout-brand small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.73rem;
    font-weight: 750;
}

.checkout-nav-actions {
    gap: 0.65rem;
}

.checkout-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.checkout-hero-copy h1 {
    margin: 0.45rem 0 0.75rem;
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.checkout-hero-copy p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

.checkout-page-content {
    margin-top: -2rem;
    padding-bottom: 3rem;
}

.checkout-step-card,
.checkout-summary-panel {
    position: relative;
    z-index: 2;
    margin-bottom: 1.25rem;
    padding: 1.35rem;
    border: 1px solid rgba(231, 234, 240, 0.98);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--angaza-ui-soft-shadow);
}

.checkout-step-header {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.checkout-step-number {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--angaza-ui-primary), var(--angaza-ui-primary-2));
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(6, 47, 63, 0.16);
}

.checkout-step-header h2,
.checkout-summary-panel h2 {
    margin: 0;
    color: var(--angaza-ui-text);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.checkout-step-header p {
    margin: 0.2rem 0 0;
    color: var(--angaza-ui-muted);
    font-size: 0.92rem;
}

.checkout-inline-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.2rem;
}

.checkout-payment-option {
    min-height: 86px;
    padding: 0.9rem !important;
    border: 1px solid var(--angaza-ui-border);
    border-radius: 16px;
    background: #fbfdff;
}

.checkout-payment-option small {
    display: block;
    margin-top: 0.15rem;
    color: var(--angaza-ui-muted);
    font-weight: 600;
    line-height: 1.35;
}

.checkout-summary-panel {
    top: 1rem;
    margin-bottom: 0;
    padding: 1.45rem;
}

.checkout-summary-panel h2 {
    margin: 0.3rem 0 1rem;
}

.checkout-items-list {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkout-summary-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem;
    border: 1px solid var(--angaza-ui-border);
    border-radius: 15px;
    background: #fbfdff;
}

.checkout-summary-item strong {
    display: block;
    color: var(--angaza-ui-text);
    font-weight: 900;
    line-height: 1.25;
}

.checkout-summary-item small {
    display: block;
    margin-top: 0.2rem;
    color: var(--angaza-ui-muted);
    font-weight: 650;
}

.checkout-summary-item span {
    color: var(--angaza-ui-primary);
    font-weight: 950;
    white-space: nowrap;
}

.checkout-security-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 1rem 0;
    padding: 0.8rem;
    border: 1px solid rgba(217, 154, 43, 0.36);
    border-radius: 15px;
    color: #7a4d08;
    background: #fff8ea;
    font-size: 0.86rem;
    font-weight: 750;
}

.checkout-security-note i {
    margin-top: 0.2rem;
    color: var(--angaza-ui-gold);
}

.checkout-empty-state {
    padding: 2rem 1rem;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #fbfdff;
}

.checkout-empty-state i {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    border-radius: 50%;
    color: var(--angaza-ui-gold);
    background: var(--angaza-ui-primary);
    font-size: 1.35rem;
}

.checkout-empty-state h3 {
    color: var(--angaza-ui-text);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 800;
}

.checkout-submit-btn {
    min-height: 52px;
    border-radius: 15px !important;
}

.angaza-terms-modal {
    z-index: 3300 !important;
}

.angaza-terms-backdrop {
    background: rgba(4, 31, 43, 0.78) !important;
    backdrop-filter: blur(6px);
}

.angaza-terms-dialog {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px !important;
    box-shadow: 0 30px 90px rgba(4, 31, 43, 0.28) !important;
}

.angaza-terms-dialog h2 {
    color: var(--angaza-ui-text);
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 800;
}

body.angaza-terms-lock {
    overflow: hidden;
}

/* SweetAlert should always appear above carts/auth modals and follow the same theme. */
.swal2-container {
    z-index: 3700 !important;
}

.swal2-popup {
    border-radius: 22px !important;
    color: var(--angaza-ui-text) !important;
    box-shadow: 0 30px 80px rgba(6, 47, 63, 0.24) !important;
}

.swal2-title {
    color: var(--angaza-ui-text) !important;
    font-family: "Playfair Display", Georgia, serif !important;
    font-weight: 800 !important;
}

.swal2-confirm {
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--angaza-ui-primary), var(--angaza-ui-primary-2)) !important;
    font-weight: 850 !important;
}

.swal2-cancel {
    border-radius: 12px !important;
    color: var(--angaza-ui-text) !important;
    background: #eef2f7 !important;
    font-weight: 850 !important;
}

/* Dashboard/app consistency without forcing public hero styling onto internal pages. */
body.angaza-app-shell .main-wrapper {
    background:
        radial-gradient(circle at top left, rgba(217, 154, 43, 0.055), transparent 24rem),
        #f6f8fb !important;
}

body.angaza-app-shell .card,
body.angaza-app-shell .card-style,
body.angaza-app-shell .dashboard-table-card,
body.angaza-app-shell .chart-card,
body.angaza-app-shell .stat-card,
body.angaza-app-shell .quick-action-card,
body.angaza-app-shell .module-card {
    border-color: var(--angaza-ui-border) !important;
    border-radius: 18px !important;
    box-shadow: var(--angaza-ui-soft-shadow) !important;
}

body.angaza-app-shell .card-header {
    border-color: var(--angaza-ui-border) !important;
    background: #fbfdff;
}

@media (max-width: 991.98px) {
    .angaza-company-show .search-card {
        max-width: 100%;
    }

    .angaza-company-show .search-panel {
        grid-template-columns: 1fr;
    }

    .angaza-company-show .search-input-shell,
    .angaza-company-show .location-shell,
    .angaza-company-show .search-btn,
    .angaza-company-show #search-bar {
        min-height: 48px;
    }

    .angaza-company-show .search-btn {
        width: 100%;
        margin-top: 0.55rem;
    }

    .store-product-card .mt-auto.d-flex,
    .store-product-card .mt-auto > .d-flex,
    .store-product-card .mt-auto .d-flex {
        width: 100%;
    }

    .store-product-card .mt-auto .d-flex .btn,
    .store-product-card .btn-sm {
        flex: 1 1 100%;
        width: 100%;
    }

    .checkout-mini-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-nav-actions {
        width: 100%;
    }

    .checkout-nav-actions .btn {
        flex: 1 1 0;
    }

    .checkout-page-content {
        margin-top: -1.4rem;
    }
}

@media (max-width: 575.98px) {
    body.angaza-public-body .modal-dialog,
    body.angaza-auth-body .modal-dialog {
        margin: 0.75rem;
    }

    body.angaza-public-body .modal-footer,
    body.angaza-auth-body .modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    body.angaza-public-body .modal-footer .btn,
    body.angaza-auth-body .modal-footer .btn {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .cart-btn-float {
        right: 12px !important;
        bottom: 12px !important;
    }

    .checkout-page-hero {
        padding-bottom: 2.4rem;
    }

    .checkout-step-card,
    .checkout-summary-panel {
        padding: 1rem;
        border-radius: 18px;
    }

    .checkout-summary-item {
        flex-direction: column;
        gap: 0.45rem;
    }

    .checkout-summary-item span {
        white-space: normal;
    }
}
