/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

:root {
    --primary: #1D7BBF;
}

fieldset[disabled] {
display: none;
}

.order-footer  {
    position: relative;
    background-image: url('../images/bg-wightfibre-light.jpg');
    background-size: cover;
}

.order-footer span {
    font-size: 1.5rem;
}

.bg-wforder {
    background-color: #1c7ce0;
    position: relative;
    background-image: url('../images/bg-wightfibre-order.png');
    background-repeat: repeat-x;
    background-position: top center;
}

.rounded-xlg {
    border-radius: 20px;
}

.rounded-top-xlg {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

h3 .smaller {
    display: block;
    font-size: 18px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

.wforder-modal .modal-body {
    max-height: 50vh;
}

.order-progress {
    display: inline-grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
}

.order-progress li {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
}

.order-progress li:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #000;
    top: 35px;
    left: -10px;
    z-index: 0;
    opacity: 0.4;
}

.order-progress li:first-child:after {
    content: none;
}

.order-progress li i {
    font-size: 3rem;
    opacity: 0.4;
}

.order-progress li.active i {
    opacity: 1;
    color: var(--primary);
}

.package-speed__desc {
    line-height: 20px;
}

.checkout-container {
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 1000;
    padding: 0 20px;
}

#checkout-drawer {
    bottom: 16px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    border-radius: 40px;
    position: relative;
    z-index: 1000;
    cursor: pointer;
    box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.5);
}

.drawer-toggle {
    cursor: pointer;
}

.drawer-toggle .bi::before {
    transform: rotate(0deg);
    transition: transform 0.5s;
}

.drawer-toggle .bi.open::before {
    transform: rotate(180deg);
}

.drawer-toggle__mobile {
    height: 3px;
    background-color: var(--primary);
    max-width: 75px;
    margin: 0 auto;
}

.drawer {
    position: fixed;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    right: 0;
    width: 100%;
    max-width: 900px;
    height: 50%;
    background-color: #FFF;
    transition: bottom 0.3s ease;
    box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.5);
    overflow: hidden;
    z-index: 999;
}

.drawer-content {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 140px;
}

.drawer-price {
    font-size: 1.3rem;
}

@media (min-width: 768px) {
    .drawer-content {
        padding: 40px;
    }

    .drawer-price {
        font-size: 1.75rem;
    }
}

.wforder-heading {
    font-family: 'Bariol Bold';
    font-weight: bold;
    display: block;
}

label {
    display: block;
    font-weight: bold;
}

.address-select {
    max-height: 300px;
    overflow-y: scroll;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    text-align: left;
}

.address-select label {
    margin: 0;
    width: 100%;
    position: relative;
}

.address-select input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
}

.address-select span {
    display: block;
    padding: 10px 10px 10px 10px;
    box-shadow: 0 0 1px 0 rgb(206 212 218 / 100%);
}

.address-select label:hover {
    cursor: pointer;
    background-color: #B8D4E9;
}

.address-select label input[type="radio"]:checked + span {
    background-color: #B8D4E9;
}

.swiper-slide {
    height: auto !important;
}

#loader {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(63, 121, 186, 0.7);
    z-index: 100000;
}

.loader__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    flex-direction: column;
}

.loader__message {
    color: var(--light); 
    font-weight: bold;
}

.lds-ring, .lds-ring div {
    box-sizing: border-box;
}

.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid var(--light);
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--light) transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.calendar {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .month-header {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
  }
  
  .day-names-row {
    display: flex;
    gap: 5px;
    justify-content: space-around;
  }
  
  .day-name {
    flex: 1;
    text-align: center;
  }
  
  .week-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    justify-content: space-around;
  }
  
  .date-container {
    flex: 1;
    text-align: center;
    padding: 10px;
  }

  .date-container button {
    border-radius: 50%;
    border: 1px solid #000;
    background-color: var(--green);
    color: #FFF;
    line-height: 0px;
    display: inline-block;
    padding-top: 25%;
    padding-bottom: 25%;
    aspect-ratio: 1/1;
    cursor: pointer;
  }

  .date-container button.selected, .date-container button:hover {
    background-color: var(--primary);
    color: #FFF;
  }

#time-slots button {
    cursor: pointer;
    border-radius: 20px;
    border: 1px solid #000;
    margin: 0 5px;
    padding: 5px 10px;
    background-color: var(--green);
    color: #FFF;
}

#time-slots button.selected, #time-slots button:hover {
    background-color: var(--primary);
    color: #FFF;
  }

button.select-product.selected {
    color: #212529;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

button.select-product.selected .notselected__text {
    display: none;
}
button.select-product.selected .selected__text {
    display: inline-block;
}
button.select-product .selected__text {
    display: none;
}
button.select-product .notselected__text {
    display: inline-block;
}

/* button.select-product.disabled .selected__text {
    display: none;
} */
button.select-product.disabled .notselected__text {
    display: none;
}

button.select-product .disabled__text {
    display: none;
}

button.select-product.disabled .disabled__text {
    display: inline-block;
}

.edit-link {
    position: absolute;
    top: 0;
    right: 0;
}

.card.card__product {
    border-radius: 20px;
    border: 0;
}

.card-tab {
    position: absolute;
    display: inline-block;
    top: 0;
    background-color: #8ED94D;
    color: #FFF;
    border-color: #8ED94D;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding: 3px 15px;
    transform: translateY(-100%) translateX(-50%);
    left: 50%;
    text-align: center;
    z-index: 10;
    white-space: nowrap;
}

.swiper-slide {
    margin-top: 32px;
}

.swiper-nav i {
    color: white;
    cursor: pointer;
}

.swiper-nav:hover {
    opacity: 0.95;
}

.swiper-nav.swiper-nav-dark i {
    color: #575756;
}

.button-next, .button-prev {
    position: relative !important;
    display: inline-block;
    font-size: 55px;
}

.swiper-button-disabled i {
    opacity: 0.2;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.product-description p:not(:last-child){
    margin-bottom: 0.8rem;
    line-height: 1.4rem;
}

@media (max-width: 768px) {
    .product-description p:not(:last-child){
        margin-bottom: 0.4rem !important;
        line-height: 1.4rem !important;
    }
}