html {
}

body {
    background-color: #f5f5f5;
    font-family: 'Roboto RE', sans-serif;
    margin: auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

:root {
    height: 100%;
    touch-action: pan-x pan-y;
}

body, span, div {
    color: #344258;
    font-size: 13px;
}

h1, h2, h3, h4, h5, h6 {
    margin-block-start: 0;
}

/*LAYOUT*/

.altapay-logo {
    display: flex;
    align-items: center;
    margin-left: 35px;
}

.altapay-logo img {
    width: 170px;
}

.heading {
    display: flex;
    justify-content: center;
    background: #424242;
    padding: 20px 0;
}

.main {
    box-sizing: border-box;
    display: flex;
    flex: 1;
}

.container {
    display: flex;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.container-error {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 200px auto;
    height: 100%;
}

.middle-line {
    margin-bottom: 10px;
    margin-top: 20px;
}

/*BASKET*/

.basket {
    height: 100%;
    box-sizing: border-box;
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 4px;
    box-shadow: rgba(50, 50, 93, 0.25) 0 2px 5px -1px;
    padding: 40px 80px;
    -webkit-box-flex: 1;
    flex: 40%;
}

.basket hr {
    margin: 10px 0;
}

/*PAYMENTS*/

.payment {
    box-sizing: border-box;
    height: 100%;
    -webkit-box-flex: 1;
    flex: 60%;
    background-color: #f5f5f5;
    padding: 40px 160px;
}

.payment-method-element {
    margin-top: 10px;
    padding: 10px;
}

#payment-methods-list {
    width: 100%;
}

.payment-method-element > * {
    line-height: 30px;
    vertical-align: middle;
}

.payment-method-element > * > p {
    margin-bottom: 0px;
    margin-top: 8px;
}

.payment-item-container {
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

.payment-item-container input {
    margin: 0
}

.payment-item-container input[type='radio'] {
    appearance: none;
    background-clip: content-box;
    background-color: transparent;
    border: 1px solid dimgrey;
    border-radius: 50%;
    display: inline-block;
    height: 18px;
    padding: 3px;
    width: 18px;
}

.payment-item-container input[type='radio']:checked {
    background-color: #23B9D0;
    border: 1px solid #23B9D0;
}

.payment-item {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-right: 20px;
}

.image {
    aspect-ratio: 1/1;
    display: block;
    height: 30px;
    object-fit: contain;
    object-position: center;
    width: 30px;
}

.payment-description {
    margin-left: 10px;
}

.button-fixed-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.payment-button {
    width: 200px;
    border: none;
    border-radius: 20px;
    box-sizing: border-box;
    color: white;
    cursor: pointer;
    font-weight: bold;
    padding: 10px 20px;
}


.payment-button-fixed {
    border: none;
    border-radius: 20px;
    bottom: 5%;
    font-weight: bold;
    margin-top: 10px;
    padding: 10px 20px;
    position: fixed;
    width: calc(100% - 96px);
}

.payment-button-disabled {
    background-color: #E4E4E4;
    cursor: default;

}

.payment-button-enabled {
    background-color: #31C37E;
    color: white;
    cursor: pointer;
}

.submit-form-button-container {
    display: flex;
    justify-content: end;
    margin-top: 20px;
    width: 100%;
}

.submit-form-button {
    width: 200px;
    border: none;
    border-radius: 20px;
    box-sizing: border-box;
    color: white;
    cursor: pointer;
    font-weight: bold;
    padding: 10px 20px;
    background-color: black;
}

/*UTILS*/

.grid-payment-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grid-cols-2 {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: 2fr 1fr;
}

.grid-cols-3 {
    display: grid;
    grid-gap: 1px;
    grid-template-columns: 0.25fr 3fr 1fr;
}

.grid-cols-4 {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: 0.5fr 2fr 0.5fr 1.5fr;
}

.right-align {
    text-align: right;
}

.align-items-center {
    align-items: center;
}

.spinner {
    animation: rotation 1s linear infinite;
    border: 4px solid black;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box;
    display: inline-block;
    margin: 8px;
}

.spinner-small {
    height: 20px;
    width: 20px;
}

.spinner-medium {
    height: 44px;
    width: 44px;
}

.spinner-large {
    height: 60px;
    width: 60px;
}

.payment-processing-icon {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 70px;
    text-align: center;
}

.payment-processing-icon img {
    aspect-ratio: 1/1;
    display: block;
    height: 80px;
    object-fit: contain;
    object-position: center;
    width: 80px;
}

.payment-methods-loading {
    margin-top: 100px;
    text-align: center;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/*MARGIN*/

.mt-0-5 {
    margin-top: 5px;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mt-4 {
    margin-top: 40px;
}

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

.mr-2 {
    margin-right: 20px;
}

.mr-3 {
    margin-right: 30px;
}

.mr-4 {
    margin-right: 40px;
}

.ml-1 {
    margin-left: 10px;
}

.ml-2 {
    margin-left: 20px;
}

.ml-3 {
    margin-left: 30px;
}

.ml-4 {
    margin-left: 40px;
}

.align-center {
    align-items: center;
}


.pb-1 {
    padding-bottom: 10px;
}

.pb-2 {
    padding-bottom: 20px;
}

.pb-3 {
    padding-bottom: 30px;
}

/*spinner*/

.lds-ring {
    display: inline-block;
    height: 60px;
    position: relative;
    width: 60px;
}

.lds-ring div {
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border: 4px solid black;
    border-color: black transparent transparent transparent;
    border-radius: 50%;
    box-sizing: border-box;
    display: block;
    height: 44px;
    margin: 8px;
    position: absolute;
    width: 44px;
}

.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);
    }
}

.bold {
    font-weight: bold;
}

.center-align {
    text-align: center;
}

.total-include-price, .total-include-delivery {
    font-size: 15px;
    font-weight: bold;
    margin-block-end: 0;
    margin-block-start: 0;
}

.errorCard {
    align-items: center;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: rgba(50, 50, 93, 0.25) 0 2px 5px -1px;
    display: flex;
    justify-content: center;
    padding: 64px 84px;
    width: 300px;
    /*f;*/
}

.errorMessage {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.page-not-found {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 200px;
}

.page-not-found h1 {
    font-size: 70px;
    font-weight: bold;
    margin: 0;
}

.page-not-found p {
    font-size: 20px;
}

.payment-card > .lds-ring {
    margin: 60px auto
}


.footer {
    display: flex;
    justify-content: space-between;
    background: #424242;
    padding: 20px 80px 20px 160px;
}

.altapay-logo-footer img {
    height: 35px;
    object-fit: contain;
}

.footer p, a {
    color: white;
}

.footer a {
    text-decoration: none;
}

/*ACCORDION*/

.accordionItem {
    float: left;
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Open-sans', Arial, sans-serif;
}

.accordionItemHeading {
    cursor: pointer;
    padding: 32px;
    background: #fff;
    color: #344258;
    width: 100%;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 3px -2px, rgba(0, 0, 0, 0.14) 0px 3px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 8px 0px;
}

.close .accordionItemContent {
    height: 0px;
    transition: height 1s ease-out;
    -webkit-transform: scaleY(0);
    -o-transform: scaleY(0);
    -ms-transform: scaleY(0);
    transform: scaleY(0);
    float: left;
    display: block;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 3px -2px, rgba(0, 0, 0, 0.14) 0px 3px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 8px 0px;
}

.open .accordionItemHeading {
    margin: 0px;
    -webkit-border-top-left-radius: 3px;
    -webkit-border-top-right-radius: 3px;
    -moz-border-radius-topleft: 3px;
    -moz-border-radius-topright: 3px;
    -webkit-border-bottom-right-radius: 0px;
    -webkit-border-bottom-left-radius: 0px;
    -moz-border-radius-bottomright: 0px;
    -moz-border-radius-bottomleft: 0px;
    background-color: #fff;
    color: #344258;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    padding: 32px 32px 0 32px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 3px -2px, rgba(0, 0, 0, 0.14) 0px 3px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 8px 0px;
}

.open .accordionItemContent {
    padding: 32px;
    background-color: #fff;
    width: 100%;
    margin: 0px 0px 10px 0px;
    display: block;
    -webkit-transform: scaleY(1);
    -o-transform: scaleY(1);
    -ms-transform: scaleY(1);
    transform: scaleY(1);
    -webkit-transform-origin: top;
    -o-transform-origin: top;
    -ms-transform-origin: top;
    transform-origin: top;
    -webkit-transition: -webkit-transform 0.4s ease-out;
    -o-transition: -o-transform 0.4s ease;
    -ms-transition: -ms-transform 0.4s ease;
    transition: transform 0.4s ease;
    box-sizing: border-box;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 3px -2px, rgba(0, 0, 0, 0.14) 0px 3px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 8px -8px;
}

/*TEXT FIELD*/

fieldset {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding-top: 0;
    padding-bottom: 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    margin-inline-start: 0;
}

legend {
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    padding-left: 10px;
    padding-right: 4px;
    font-weight: 400;
}

.input-container {
    padding: 12px 14px 16px 4px;
}

.input-container input, .input-container select {
    width: 100%;
    font-size: 14px;
    border: none;
    outline: none;
    background-color: transparent;
}

.checkbox-input-container {
    display: flex;
    align-items: center;
    gap: 10px
}

.checkbox-input-container label {
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    cursor: pointer;
}

.checkbox-input-container input {
    width: auto;
    height: 20px;
    transform: scale(1.5);
    cursor: pointer;

}

.checkbox-fields-container {
    display: flex;
    gap: 30px;
}

/*PERSONAL INFORMATION*/

#personal-information-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/*ADDRESS SECTION*/

#address-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

#billing-address-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.col-full-width {
    grid-column: span 2;
}

.billing-address-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.billing-address-checkbox label {
    font-size: 14px;
}

.billing-address-checkbox input {
    width: 18px;
    height: 18px;
}

.payment #payment-methods-heading {
    margin-block-end: 0;
}


/*Configuration Form*/

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    margin: auto;
    position: relative;
    width: 75%;
    box-sizing: border-box;
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 4px;
    box-shadow: rgba(50, 50, 93, 0.25) 0 2px 5px -1px;
    padding: 32px;
}

.modal-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 16px;
}

.close-modal {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 8px;
    right: 16px;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#modal-button {
    cursor: pointer;
}

.input-disabled {
    opacity: 0.6;
    pointer-events: none;
}
.input-disabled legend {
    opacity: 0.6;
}

/*RESPONSIVITY*/

@media screen and (max-width: 480px) {
    body {
        height: auto;
    }

    .altapay-logo img {
        width: 140px;
    }

    .main {
        padding: 20px;
        box-sizing: border-box;
    }

    .container {
        flex-direction: column;
        height: 100%;
    }

    .payment {
        padding: 0 !important;
    }

    .payment-item-container {
        padding: 8px 0;
    }

    .basket {
        padding: 32px;
    }

    .footer {
        padding: 10px !important;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    h2 {
        font-size: 16px;
    }

    h1 {
        font-size: 20px;
    }

    p, span, div {
        font-size: 12px;
    }

    .payment .input-container input {
        font-size: 12px;
    }

    .grid-payment-box {
        gap: 0;
    }

    .payment #personal-information-section, .payment #address-section, .payment #billing-address-section {
        grid-template-columns: auto;
    }

    .payment #address-section .col-full-width, .payment #billing-address-section .col-full-width {
        grid-column: auto;
    }

    .modal {
        padding-top: 0;
    }

    .modal-content {
        width: 100%;
    }

    .modal-form {
        grid-template-columns: auto;
    }

    .checkbox-fields-container {
        display: block;
    }

    .checkbox-input-container {
        justify-content: space-between;
    }

    .submit-form-button-container {
        justify-content: center;
    }

    .submit-form-button {
        width: 100%;
    }
}

/*DESKTOP SCREEN*/
@media screen and (max-width: 1025px) {
    .payment {
        padding: 40px;
    }

    .payment .open #payment-methods-heading {
        padding: 32px 32px 5px 32px;
    !important;
    }

    .payment .open #basket-heading {
        padding: 32px 32px 8px 32px;
    !important;
    }

    .payment .open #personal-info-heading {
        padding: 32px 32px 15px 32px;
    !important;
    }

    .payment .open #shipping-heading {
        padding: 32px 32px 14px 32px;
    !important;
    }

}
