html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--background-color);
    color: var(--foreground-color)!important;
}

* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none !important;
    box-shadow: none !important;
}

#amountSelectorDiv, #methodSelectorDiv {
    opacity: 1;
    transition: opacity 0.3s ease;
}

p {
    color: var(--foreground-color)!important;
}

.form-control:focus,
.form-control:focus-visible,
.form-select:focus,
.form-select:focus-visible,
.form-check-input:focus {
    outline: none !important;
    box-shadow: none !important;
    /*border-color: var(--primary-color)!important;*/
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #000 !important;
    caret-color: #000;
    transition: background-color 9999s ease-in-out 0s;
}

.form-control {
    border-color: var(--form-border-color)!important;
    min-height: 45px!important;
    border-radius: var(--border-radius);
}

.input-group-text {
    border-top-left-radius: var(--border-radius)!important;
    border-bottom-left-radius: var(--border-radius)!important;
}

.wrapper {
    margin: 0px auto;
    height: 100%;
}

.container {
    max-width: 1200px;
}

.logo-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.mw-100 {
    max-width: 100%!important;
}

.modal-dialog {
    margin: auto 0 0 0;
    max-width: 100%;
}

.modal-content {
    border-radius: 20px 20px 0 0;
    border: 0;
}

.modal.fade .modal-dialog {
    transform: translateY(100%);
    transition: transform 0.1s ease-out;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.start-screen {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: auto;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
}

.start-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.input-group-text {
    background: #FFF;
    border-right: none;
}

@media (max-width: 767.98px) {
    .start-screen {
        background-position: right bottom;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .start-screen {
        background-position: right bottom;
    }
}

@media (min-width: 992px) {
    .start-screen {
        background-position: center bottom;
    }
}

.bottom-section {
    margin-top: auto;
    margin-bottom: 10px;
}

.w-100 {
    width: 100%;
}

.opacity-10 {
    opacity: 0.1;
}

input:disabled {
    background: #FFFFFF!important;
    color: #000!important;
}

.text-strong {
    font-weight: bold;
}

.payment-image {
    border-radius: var(--border-radius);
    max-width: 100%;
    max-height: 40px;
    margin-bottom: 10px;
}

.above-card {
    margin-top: auto;
    margin-bottom: auto;
    text-align: center;
    font-size: 1.3em;
}

.page-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: var(--primary-color)!important;
}

.payment-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.form-control-lg {
    font-size: 1em;
    padding-left: 0px!important;
}

.btn {
    border-radius: var(--border-radius)!important;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.big-btn {
    min-height: 52px;
}

.btn-link {
    box-shadow: none!important;
    font-size: 1rem;
}

.btn-round {
    border-radius: 30px!important;
}

.btn-primary, .btn-primary:hover, .btn-primary:active, .btn-primary:focus, .btn-primary:focus-visible {
    border-color: var(--primary-color)!important;
    border: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%), var(--primary-color);
    color: #fff;
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: var(--primary-color);
    --bs-btn-disabled-bg: var(--primary-color);
    --bs-btn-disabled-border-color: var(--primary-color);
    --bs-btn-focus-shadow-rgb: 0, 0, 0;
}

.btn-primary, .btn-primary:hover, .btn-primary:active, .btn-primary:focus, .btn-primary:focus-visible {
    border-color: var(--primary-color)!important;
    border: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%), var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12)!important;
}

.btn-light {
    border-color: var(--form-border-color)!important;
    color: var(--primary-color)!important;
    background-color: var(--secondary-color)!important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.btn-link {
    text-decoration: none;
    color: var(--primary-color)!important;
}


.wash-card {
    background: var(--wash-card-background)!important;
    border: var(--wash-card-border);
    border-radius: var(--border-radius);
    padding: 24px 20px;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--foreground-color)!important;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.less-air {
    padding-top: 13px!important;
    padding-bottom: 10px!important;
    padding-left: 10px!important;
    padding-right: 10px!important;
}

.shadow-small {
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px!important;
}

.wash-card-title {
    font-size: 1.2em;
}

.wash-card:active {
    transform: scale(0.98);
}

.no-transform:active {
    transform: scale(1)!important;
}

.wash-card-icon {
    width: 86px;
    height: 86px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(225, 242, 255, 0.75);
    color: #087ff5;
    font-size: 42px;
}

.wash-card h3 {
    margin: 0 0 0px;
    font-size: 1em;
    font-weight: 500;
    line-height: 1.15;
    color: var(--foreground-color)!important;
}

.wash-card p {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.4;
    color: #66758f;
}

.wash-card .btn-select i, .icon-right i {
    position: absolute;
    right: 20px;
}

.wash-card .btn-select:active {
    transform: scale(0.98);
}

.booth, .payment-method {
    font-size: 1.1em;
    font-weight: 400;
    color: #000;
    cursor: pointer;
}

.active-card {
    border-color: var(--primary-color)!important;
    background: var(--secondary-color)!important;
}

.booth-icon {
    margin-right: 20px;
    font-size: 1.3em;
    color: var(--primary-color)!important;
    opacity: 0.5;
}

.dot-icon {
    color: var(--primary-color)!important;
    opacity: 0.5;
}

.active-card .booth-icon, .active-card .dot-icon {
    color: var(--primary-color)!important;
    opacity: 1;
}

.input-group > .input-group-text { border-right: 0; }
.input-group > .form-control { border-left: 0; }

.separator {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #7b8798;
    font-size: 16px;
}

.separator::before,
.separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #cbd5e1;
}

.mb-6 {
    margin-bottom: 4rem !important;
}

.mb-7 {
    margin-bottom: 5rem !important;
}

.mb-8 {
    margin-bottom: 6rem !important;
}

.mb-9 {
    margin-bottom: 8rem !important;
}

.mb-10 {
    margin-bottom: 10rem !important;
}

.modal-content {
    background: rgba(255, 255, 255, 0.92);
}

.modal-content-100 {
    background: rgba(255, 255, 255, 1)!important;
}

.modal-title {
    width: 100%;
    color: #000!important;
    text-align: center!important;
    padding-top: 9px;
}

.modal-footer {
    border-top: none!important;
}

.back-icon {
    position: fixed;
    top: 10px;
    left: 10px;
    font-size: 2em;
    color: var(--primary-color);
    padding-right: 20px;
}

.program-icon {
    font-size: 42px;
    color: var(--primary-color);
}

.contact-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.program-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    background: var(--secondary-color);
    font-size: 42px;
}

.primary-color, .text-primary {
    color: var(--primary-color)!important;
}

.form-switch {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-left: 0px!important;
}

.switch-lg {
    transform: scale(1.8);
    margin-right: 15px!important;
}

.form-check-label {
    font-size: 1.2em;
}

.mr-10 {
    margin-right: 10px;
}

a {
    text-decoration: none!important;
    color: var(--primary-color)!important;
    cursor: pointer!important;
}

.form-switch .form-check-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23adb5bd'/%3e%3c/svg%3e") !important;
}

.form-switch .form-check-input:checked {
    background-color: var(--primary-color)!important;
    border-color: var(--primary-color)!important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e") !important;
}

.form-switch .form-check-input:focus {
    border-color: var(--primary-color)!important;
    box-shadow: none !important;
    /*box-shadow: 0 0 0 0.25rem rgba(79, 124, 255, 0.15);*/
}

.disabled {
    pointer-events: none!important;
    opacity: 0.5!important;
}

.product-type-icon {
    height: 46px;
    width: 56px;
}

.product-type-icon-machinewash {
    background-color: var(--primary-color);
    mask: url('/assets/img/machinewash.svg') center / contain no-repeat;
    -webkit-mask: url('/assets/img/machinewash.svg') center / contain no-repeat;
}

.product-type-icon-selfwash {
    background-color: var(--primary-color);
    mask: url('/assets/img/selfwash.svg') center / contain no-repeat;
    -webkit-mask: url('/assets/img/selfwash.svg') center / contain no-repeat;
}

.product-type-icon-washhall {
    background-color: var(--primary-color);
    mask: url('/assets/img/washhall.svg') center / contain no-repeat;
    -webkit-mask: url('/assets/img/washhall.svg') center / contain no-repeat;
}

.product-type-icon-brushes {
    background-color: var(--primary-color);
    mask: url('/assets/img/brushes.svg') center / contain no-repeat;
    -webkit-mask: url('/assets/img/brushes.svg') center / contain no-repeat;
}

.product-type-icon-brushless {
    background-color: var(--primary-color);
    mask: url('/assets/img/brushless.svg') center / contain no-repeat;
    -webkit-mask: url('/assets/img/brushless.svg') center / contain no-repeat;
}

.ts-control {
    border: none!important;
    font-size: .9em;
    color: #595c5e!important;
}

/*.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 1050;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    box-sizing: content-box;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.bottom-nav-item, .bottom-nav-item:hover {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--foreground-color)!important;
    font-size: 22px;
    text-decoration: none;
    transition: color .2s ease;
}

.bottom-nav-item.active {
    color: var(--primary-color)!important;
}

.bottom-nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    height: 50%;
    width: 1px;
    background: #eee;
}

.bottom-nav-item {
    position: relative;
}*/

.bottom-navbar {
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 560px;
    height: 74px;
    padding: 6px;
    gap: 4px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    /*border-radius: var(--border-radius);*/
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    /*box-shadow: 0 8px 30px rgba(24, 39, 65, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);*/
    box-shadow: var(--box-shadow);
    z-index: 1030;
}

/* Menyknapper – fordeles likt med både tre og fire knapper */
.bottom-nav-item {
    position: relative;
    isolation: isolate;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 4px;
    border: 0;
    border-radius: 22px;
    /*border-radius: var(--inner-radius);*/
    background: transparent;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
}

.bottom-nav-item,
.bottom-nav-item:hover,
.bottom-nav-item:focus {
    color: var(--bottom-nav-item-color, #626875) !important;
    text-decoration: none;
}

/* Bakgrunn som automatisk følger primærfargen */
.bottom-nav-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--primary-color, #cf1033);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Slanke ikoner */
.bottom-nav-item svg {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav-item span {
    white-space: nowrap;
}

/* Aktiv side */
.bottom-nav-item.active {
    --bottom-nav-item-color: var(--primary-color, #cf1033);
}

.bottom-nav-item.active::before {
    opacity: 0.08;
}

/* Synlig fokus ved tastaturnavigasjon */
.bottom-nav-item:focus-visible {
    outline: 2px solid var(--primary-color, #cf1033);
    outline-offset: -3px;
}

.bottom-spacer {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
}

.table {
    --bs-table-bg: transparent;
    --bs-table-accent-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: transparent;
    --bs-table-active-bg: transparent;
}

.carousel-inner {
    box-shadow: var(--box-shadow);
}

.carousel-caption {
	background: rgba(0, 0, 0, 0.7)!important;
	right: 0;
	bottom: 0;
	left: 0;
	font-size: 1.1em;
	color: #FFFFFF;
    padding: 10px!important;
}

.carousel-container {
    height: 260px;
    border-radius: var(--border-radius)!important;
    /*box-shadow: var(--box-shadow);*/
}

.carousel-inner, .carousel {
    border-radius: var(--border-radius)!important;
}

.accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-btn-bg: transparent;
    --bs-accordion-active-bg: transparent;
}

.accordion-container {
    padding: 0px!important;
}

.credit-card {
    height: 200px;
    border-radius: var(--border-radius);
}

.card-number {
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.card-holder {
    text-transform: uppercase;
}

.bg-info {
    background: var(--info-color)!important;
}

.bg-success {
    background: var(--success-color)!important;
}

.bg-danger {
    background: var(--danger-color)!important;
}

.text-larger {
    font-size: 1.5em;
}

.accordion-button > div {
    gap: 4px;
}

.accordion-icon {
    margin-right: 15px;
}

.hidden {
    display: none;
}

.toastify {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box;
}

.toastClass {
    text-align: left!important;
    width: 100%!important;
}

.toastSuccess {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%), var(--success-color);
}

.toastInfo {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%), var(--info-color);
}

.toastDanger {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%), var(--danger-color);
}