/* Included site wide */
#toast-wrapper {
    position: absolute;
    top: 15px;
    right: 15px;
}

#toast-wrapper .toast-content {
    display: inline-block;
    margin-right: 10px;
}

#toast-wrapper .toast {
    box-shadow: none;
    max-width: initial;
}

#toast-wrapper button {
    margin-top: -2px;
}

.btn-primary:focus,
.btn-primary.focus {
    box-shadow: none !important;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
    outline: none !important;
}

/* Mobile navbar */
/* Menu Icon */
.navbar-toggler {
    border: none;
    padding: 0 !important;
    border: none !important;
    width: 2.5rem !important;
    height: 2.2rem !important;
}

.navbar-toggler-icon {
    display: inline-block;
    position: relative;
    width: 1.4em !important;
    height: 1.2em !important;
    vertical-align: unset !important;
}

.navbar-toggler-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    border-radius: 1px;
    opacity: 1;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.navbar-toggler-icon span:nth-child(1) {
    top: 0px;
}

.navbar-toggler-icon span:nth-child(2) {
    top: 10px;
}

.navbar-toggler-icon span:nth-child(3) {
    top: 20px;
}

.navbar-toggler.show .navbar-toggler-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.navbar-toggler.show .navbar-toggler-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.show .navbar-toggler-icon span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* Extra breakpoints for mobile support */

@media (min-width: 540px) and (max-width: 1024px) {
    .container {
        max-width: 800px !important;
    }

    .w-sm-100 {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .w-sm-100 {
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .w-md-unset {
        width: unset !important;
    }
}

@media only screen and (max-width: 600px) {
    h1 {
        font-size: 1.5rem !important;
    }

    .mt-xs-2, .my-xs-2 {
        margin-top: .5rem !important;
    }

    .mt-xs-3, .my-xs-3 {
        margin-top: 1rem !important;
    }

    .mt-xs-0, .mt-xs-0 {
        margin-top: 0 !important;
    }

    .mb-xs-0, .mb-xs-0 {
        margin-bottom: 0 !important;
    }

    .p-xs-0 {
        padding: 0 !important;
    }
}

@media (min-width: 1366px) {
    .position-lg-relative {
        position: relative;
    }

    .order-lg-1 {
        order: 1;
    }

    .order-lg-2 {
        order: 2;
    }

    .left-border-lg {
        border-left: 1px solid #efefef;
    }
}

/* Empty cart */
.empty-cart-container, #empty-cart-container {
    padding: 60px 15px;
}

.empty-cart-container .emptycartbackground svg,
#empty-cart-container .emptycartbackground svg {
    width: 100%;
    max-height: 117px;
}

.empty-cart-container .emptycarticon,
#empty-cart-container .emptycarticon {
    display: block;
    width: 100%;
    max-width: 120px;
    max-height: 120px;
    margin: -15px auto 0;
    box-shadow: 0px 3px 4px 2px rgba(0, 0, 0, 0.19);
    border-collapse: separate;
    border-radius: 50%;
    padding: 17px 22px 25px 25px;
}

.empty-cart-container .emptycarticon svg,
#empty-cart-container .emptycarticon svg {
    width: 100%;
    fill: #434242;
    stroke: #434242;
    max-height: 86px;
}

.left-minus-5 {
    left: -5px;
}

.grecaptcha-badge {
    z-index: 10;
}

/* Site-wide redesign layer: `body ` prefix out-ranks the org Bootstrap theme without !important */
:root {
    --portal-radius-lg: 16px; /* cards, modals */
    --portal-radius: 10px; /* buttons, inputs, menu pills, dropdowns */
    --portal-radius-sm: 8px; /* small controls */
    --portal-border-color: rgba(16, 24, 40, 0.08);
    --portal-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 2px 8px rgba(16, 24, 40, 0.04);
    --portal-shadow-lg: 0 4px 6px rgba(16, 24, 40, 0.05), 0 10px 25px rgba(16, 24, 40, 0.08);
    --portal-muted: #6b7280;
}

/* Cards */
body .card {
    border: 1px solid var(--portal-border-color);
    border-radius: var(--portal-radius-lg);
    box-shadow: var(--portal-shadow);
}

body .card-title {
    font-weight: 600;
}

/* Drop the old design's empty brand-color .card-header strips */
body .card > .card-header:empty {
    display: none;
}

body .card .card-header {
    background: none;
    border-bottom: 0;
}

/* Cards nested inside accordions (announcements) render as flat rows */
body .accordion .card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

body .card .list-group {
    padding: 8px;
}

body .card .list-group-item {
    border: 0;
    border-radius: var(--portal-radius);
    margin-bottom: 2px;
    background: transparent;
}

body .card .list-group-item:last-child {
    margin-bottom: 0;
}

body .card .list-group-item:has(> a):hover {
    background: rgba(16, 24, 40, 0.04);
}

/* Active item: tinted pill instead of the old 5px left bar */
body .active-sub-nav {
    display: none;
}

body .card .list-group-item:has(.active-sub-nav) {
    background: color-mix(in srgb, var(--primary, #007bff) 10%, #fff);
}

body .card .list-group-item:has(.active-sub-nav) a.text-dark {
    color: var(--primary, #007bff) !important; /* .text-dark is !important in Bootstrap */
    font-weight: 600;
}

/* Buttons */
body .btn {
    border-radius: var(--portal-radius);
    font-weight: 600;
}

body .btn-outline-secondary {
    color: #374151;
    border-color: #d6dae0;
    background-color: #fff;
}

body .btn-outline-secondary:hover,
body .btn-outline-secondary:focus,
body .btn-outline-secondary:not(:disabled):not(.disabled):active {
    color: #1f2937;
    background-color: #f3f4f6;
    border-color: #cfd4da;
    box-shadow: none;
}

/* Form controls */
body .form-control,
body .custom-select {
    border-radius: var(--portal-radius);
    border-color: #dfe3e8;
}

body .form-control:focus,
body .custom-select:focus {
    border-color: var(--primary, #007bff);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary, #007bff) 20%, transparent);
}

/* Tables */
body .table thead th {
    border-top: 0;
    border-bottom: 1px solid var(--portal-border-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--portal-muted);
}

body .table td {
    border-top-color: var(--portal-border-color);
    vertical-align: middle;
}

/* Overlays */
body .dropdown-menu {
    border: 1px solid var(--portal-border-color);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow-lg);
    overflow: hidden;
}

body .modal-content {
    border: 0;
    border-radius: var(--portal-radius-lg);
    box-shadow: var(--portal-shadow-lg);
}

body .toast {
    border-radius: var(--portal-radius);
}

body .badge {
    border-radius: 999px;
    padding: 0.35em 0.8em;
    font-weight: 600;
}