:root {
    --dark: 0;
    --transition: 0.28s;
    --font-size: .8rem;
    --bg: #344767;
    --color: white;
  }

.card .card-body {
    font-family: "Quicksand", Helvetica, Arial, sans-serif!important;
}

.dropdown-menu::-webkit-scrollbar {
    width: 8px; /* Scrollbar width */
}
.dropdown-menu::-webkit-scrollbar-thumb {
    background-color: #ccc; /* Scrollbar color */
    border-radius: 4px; /* Rounded edges for the scrollbar */
}
.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background-color: #aaa; /* Darker color on hover */
}

.f-montserrat {
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
}
.f-quicksand {
    font-family: "Quicksand", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

.hero-chips {
    font-weight: 600;
    font-size: 0.7rem;
    white-space: nowrap;
    background: #58BF89;
}

.bg-grad {
    background: linear-gradient(180deg, #0052d4, #65c7f7, #9cecfb);
    background: -webkit-linear-gradient(180deg, #0052d4, #65c7f7, #9cecfb);
    background: -moz-linear-gradient(180deg, #0052d4, #65c7f7, #9cecfb);
    background: -o-linear-gradient(180deg, #0052d4, #65c7f7, #9cecfb);
    background: linear-gradient(180deg, #0052d4 0%, #65c7f7 50%, #9cecfb 100%);
}

/* SELECT COUNTRY BUTTONS*/

.sl-btn {
    width: 100%;
    background: transparent;
    border: none!important;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
}
.dropdown-toggle::after {
    font-size: 1.2em!important;
    line-height: 2em!important;
}
.dropdown .btn-secondary.sl-btn:hover, .btn-secondary.sl-btn:active, .btn-secondary.sl-btn:visited, .btn-secondary.sl-btn:focus {
    background-color: #6997e715;
    color: black;
    border: none;
}
.dropdown-menu {
    max-height: 300px;
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden;
    padding-right: 15px;
    width: 95%;
    inset: 4em auto auto !important;
}


.sl-item {
    font-size: 1em;
    color: #000;
    font-weight: 400;
    padding: 1em 2em;
    letter-spacing: .05em;
    font-family: "Quicksand", serif;
    font-optical-sizing: auto;
    font-style: normal;
}
.sl-item:hover, .dropdown-item:hover {
    font-weight: 600;
    color: #0058a5;
}

.sl-label {
    font-size: .8em;
    color: #313550;
    font-family: "Quicksand", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

/* Default state: unselected */
#dropdownCountryFrom, #dropdownCountryTo, #dropdownType {
    font-size: .8em;
    color: #6c757d;
    font-family: "Quicksand", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

/* Selected state */
#dropdownCountryFrom.selected,  #dropdownCountryTo.selected, #dropdownType.selected {
    font-size: 1.2em;
    padding: 0.3em 1.2em;
    color: #0058a5;
    text-transform: none;
    box-shadow: none!important;
    font-family: "Quicksand", serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
}

.nav-link.active {
    background-color: white!important;
    color: #0058a5!important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    font-weight: 700;
    border-radius: 8px;
    border-color: #dee2e6!important;
}

.nav-link {
    border-radius: 8px;
    font-size: .8em;
    color: #6c757d;
    font-family: "Quicksand", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

.alert-up{
    padding: .3rem .5rem .2rem 1rem;
    color: #000000;
    font-size: .8rem;
    background-image: linear-gradient(195deg, #f1f1f1 0%, #f3f3f2 100%);
}

.text-labels-q {
    font-size: .7rem;
    text-transform: uppercase;
    font-weight: 800;
}

.form-select {
    font-size: .9em!important;
}

.label-input .input-group-text {
    border-radius: 0;
    padding: 0 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-left: 1px solid gainsboro;
    height: 80%;
    top: 10%;
    line-height: 1.5rem;
}

.bg-hero {
    background-image: url('/storage/pictures/hero-background.webp');
    height: 100%;
}

.form-add {
    font-size: 1em;
    font-weight: bold;
}

/* Style the select element */
.form-add select {
    font-family: Arial, sans-serif;
    font-size: 0.9em;
    font-weight: normal;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* Add custom arrow */
.form-add select:after {
    content: '▼'; /* Custom dropdown arrow */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Style the dropdown options */
.form-add option {
    font-weight: normal;
    font-size: 0.9em;
    color: #333; /* Text color */
    background-color: #f9f9f9; /* Background */
    padding: 0.5rem; /* Add padding */
}

/* Scrollbar styling for dropdowns */
.form-add select {
    overflow: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #ccc #f9f9f9; /* Firefox */
}

/* Scrollbar for Webkit browsers (Chrome, Edge, Safari) */
.form-add select::-webkit-scrollbar {
    width: 8px;
}

.form-add select::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.form-add select::-webkit-scrollbar-track {
    background: #f9f9f9;
}

/** Fancy Button by Ivan + Free stuff **/
.btn-fancy {
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;

    text-transform: uppercase;

    outline-color: white;
    --padding: calc(var(--font-size) * 0.75);
    cursor: pointer;
    letter-spacing: calc(var(--font-size) * 0.02);

    background: #344767;
    font-size: .8em;
    border-radius: .5em;
    border:
      4px
      solid
      #344767;
    color: white;
    position: relative;
    transition: border-color var(--transition);
}

.btn-fancy > span {
    background: var(--bg);
    padding: calc(var(--font-size) * 0.9) calc(var(--font-size) * 1.36);
    overflow: hidden;
    display: grid;
    grid-template-columns:
      calc((var(--font-size) * 1.75) * (1 - var(--hovered, 0)))
      1fr
      calc((var(--font-size) * 1.75) * var(--hovered, 0));
    align-items: center;
    transition: grid-template-columns var(--transition);
}

.btn-fancy:after {
    content: "";
    position: absolute;
    inset: calc(var(--font-size) * -0.025);
    background: hsl(0 0% calc(var(--dark) * 100%) / 0.45);
    filter: blur(calc(var(--font-size) * 0.75));
    scale: var(--hovered, 0);
    z-index: -1;
    transition: scale var(--transition);
}

.btn-fancy:hover {
    --hovered: 1;
}

.btn-fancy span span:nth-of-type(1) {
    padding-right: var(--padding);
    width: var(--font-size);
}

.btn-fancy span span:nth-of-type(3) {
    padding-left: var(--padding);
    width: var(--font-size);
}

.btn-fancy i {
    display: inline-block;
    transition: translate var(--transition) ease-in-out, opacity var(--transition) ease-in-out;
}

.btn-fancy:is(:focus-visible, :hover) {
    --hovered: 1;
}

.btn-fancy span span:nth-of-type(3) i {
    stroke-width: 3;
    translate: calc((1 - var(--hovered, 0)) * (var(--font-size) * 3)) 8%;
    width: calc(var(--font-size) * 1);
    opacity: var(--hovered, 0);
}

.btn-fancy span span:nth-of-type(1) i {
    stroke-width: 3;
    translate: calc(((var(--hovered, 0) * var(--font-size)) * -3) + 10%) 8%;
    width: calc(var(--font-size) * 0.8);
}

.delivery-card {
    transition: all 0.25s ease-in-out;
    border: 2px solid #ddd !important;
    border-radius: 12px;
}
.btn-check:checked + .delivery-card {
    border: 2px solid #0d6efd !important;
    background-color: #f0f8ff;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
