.checkout__cardContainer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.checkout__cardGroup {
    flex: 0 0 100%;
}

.checkout__cardLabel,
.checkout__cardInput,
.checkout__cardSelect,
.checkout__cardButton,
.checkout__cardDescription,
.checkout__observation {
    font-family: var(--text-font);
    line-height: var(--line-height);
    font-weight: normal;
}

.checkout__cardLabel,
.checkout__cardInput,
.checkout__cardSelect,
.checkout__cardButton,
.checkout__cardDescription {
    font-size: 14px;
}

.checkout__cardInput,
.checkout__cardSelect {
    width: 100%;

    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;

    border: 1px solid var(--color-cinza-escuro);
    padding: 16px var(--elements-gap);
    transition: border 0.3s ease-in-out;
    border-radius: 4px;
}

.checkout__cardInput--disabled {
    background: #f3f3f3;
}

.checkout__cardSelect {
    background: url("../../../images/svgs/select-arrows.svg") no-repeat 95%/15px,
        #ffffff 100% 100%;
}

.checkout__cardLabel {
    display: block;
    margin: 0 0 2px;
}

.checkout__cardButton {
    border: none;
    width: 100%;
    background: var(--primary-color);
    color: white;

    padding: var(--block-default-padding) var(--elements-gap);
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    cursor: pointer;
    margin: calc(var(--elements-gap) / 2) 0 0;
}

.checkout__observation {
    margin: 8px 0 0;
    font-size: 12px;
}

.checkout__required {
    color: rgb(220, 53, 69) !important;
}

.checkout__cardButton:hover {
    background: var(--secondary-color);
    color: black;
}

.checkout__card--required {
    animation: shake 0.3s ease-in-out forwards;
    border: 1px solid rgb(220, 53, 69);
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

@media screen and (min-width: 768px) {
    .checkout__cardGroup--half {
        flex: 0 0 calc(50% - var(--elements-gap));
    }
}

/* Custom selects */
.checkout__cardSelect--hidden {
    display: none;
}

.checkout__cardSelect--custom {
    contain: layout;
    cursor: pointer;
    z-index: 1;
}

.checkout__cardSelect--custom-list {
    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    max-height: 0px;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    overflow: auto;

    transition: opacity 0.1s ease-in-out;
}

.checkout__cardSelect--custom-list-show {
    max-height: 200px;
    visibility: visible;
    opacity: 1;
    pointer-events: all;
    background: #f3f3f3;
    border-color: var(--color-cinza-escuro);
    border-style: solid;
    border-width: 1px 1px 0;
}

.checkout__cardSelect--custom-option {
    padding: var(--block-default-padding) var(--elements-gap);
    border-bottom: 1px solid var(--color-cinza-escuro);
    cursor: pointer;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout__cardSelect--disabled {
    background: #f3f3f3;
}

/*Transport methods*/
.spp-cart-transport-methods {
    display: flex;
    flex-direction: column;
    gap: var(--elements-gap);
}

.transport-methods-switcher-btn > small {
    display: block;
    margin: 8px 0 0;
    font-size: 14px;
}

/*Payment Methods*/
.spp-payment-methods-list {
    margin: 0 0 var(--elements-gap);
}

.wrapper {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

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

.spp-cart-payment-map {
    display: flex;
    gap: var(--elements-gap);
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
}

.pagamento-methods-cartao-form-input {
    flex: 0 0 100%;
}

.pagamento-methods-cartao-form-input.col-lg-6 {
    flex: 0 0 calc(50% - 8px);
}

.pagamento-methods-cartao-form-input > label {
    margin: 0 0 8px;
    display: block;
}

.pagamento-methods-cartao-form-input > input {
    font-family: var(--text-font);
    font-size: var(--text-font-size);
    line-height: var(--line-height);
    font-weight: normal;

    width: 100%;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;

    border: 1px solid var(--primary-color);
    padding: var(--block-default-padding) var(--elements-gap);
}

.spp-payment-methods-list > fieldset {
    border: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;

    gap: var(--elements-gap);
}

.card-list {
    width: fit-content !important;
    margin: auto;
}

/* Common Methods */
.transport-methods-switcher-btn,
.pagamento-methods-switcher-btn {
    display: block;
    box-shadow: 0 0 0 1px var(--primary-color);
    padding: 6px;

    border-radius: 0px !important;
    font-family: var(--text-font);
    font-size: var(--text-font-size);
    line-height: var(--line-height);
    font-weight: normal;

    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pagamento-methods-switcher-btn {
    font-size: 12px;
}

.pagamento-methods-switcher-btn.active,
.transport-methods-switcher-btn.active {
    background-color: var(--secondary-color);
    box-shadow: 0 0 0 1px var(--secondary-color);
    color: white;
}

.pagamento-methods-switcher-btn > input,
.transport-methods-switcher-btn > input {
    display: none;
}

.payment-card-header {
    background-color: var(--primary-color);
    width: 100%;
    padding: 16px;
    border-radius: 4px 4px 0 0;
}

.payment-card-header h2 {
    color: #fff;
}

.modal-header {
    font-size: 26px;
}

.modal__list-title,
.select__label {
    font-size: 20px;
    margin: 10px;
}

.modal-content .overview__item-list {
    width: 100%;
}

.modal-content .overview__item-divide {
    margin: 20px 0;
}

.modal-content .overview__item-information {
    flex-direction: row;
    gap: 15px;
    align-items: center;
}

.modal-content .overview__item-image {
    flex: 0 0 80px;
    height: 80px;
}

.modal-content .overview__item-information .overview__item-quantity,
.modal-content .overview__item-information .checkout__cardInput {
    width: 40%;
    align-self: center;
    margin: 0;
}

.modal-content .overview__item-title {
    width: 20%;
    margin: 0;
}

.modal-content .overview__item {
    gap: 30px;
}

@media screen and (max-width: 768px) {
    .modal-content .overview__item-information {
        flex-direction: column;
    }

    .modal-content .overview__item-title,
    .modal-content .overview__item-information .overview__item-quantity,
    .modal-content .overview__item-information .checkout__cardInput {
        align-self: start;
        width: 100%;
    }

    .modal-content .overview__item-image {
        flex: 0 0 120px;
        height: 120px;
    }
}

.input.password__input {
    margin: 0 0 8px !important;
}