/* Section styling */
.checkout_section {
    padding: 40px 0;
    background: #f5f5f5;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Form styling */
.checkout_form_wrap {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Sidebar styling */
.sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu li a {
    color: #616161;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fafafa;
    transition: background 0.3s ease, color 0.3s ease;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: #da0a2c;
    color: #fff;
}

/* Checkout content styling */
.checkout-content {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checkout-section {
    display: none;
}

.checkout-section.active {
    display: block;
}

/* Form control styling */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #da0a2c;
    outline: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary {
    background: #da0a2c;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #83051a;
}

.btn-block {
    width: 100%;
}

/* Spinner */
.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    text-align: center;
}

.spinner i {
    font-size: 3em;
    color: #da0a2c;
}

.spinner p {
    margin-top: 10px;
    font-size: 1.2em;
    color: #da0a2c;
}

#checkout_enderecos {
    position: relative;
}

#checkout_enderecos .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Tab navigation */
.nav-tabs .nav-link {
    color: #da0a2c;
}

.nav-tabs .nav-link.active {
    color: #fff;
    background-color: #da0a2c;
}

.tab-content {
    margin-top: 20px;
}

/* Installment selection */
.installments {
    list-style: none;
    padding: 0;
    margin: 0;
}

.installments li {
    margin-bottom: 10px;
}

.installments li a {
    display: block;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fafafa;
    text-decoration: none;
    color: #616161;
    transition: background 0.3s ease, color 0.3s ease;
}

.address-card:hover,
.address-card.selected {
    border-color: #da0a2c;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.installments li a:hover,
.installments li a.selected {
    background: #da0a2c;
    color: #fff;
}

/* Order summary */
.order-summary {
    margin-top: 20px;
}

.order-items .order-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
}

.order-total {
    margin-top: 20px;
    font-size: 1.2em;
}

.order-total .subtotal,
.order-total .shipping,
.order-total .tax,
.order-total .total {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}



.sidebar-menu li a {
    color: #616161;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fafafa;
    transition: background 0.3s ease, color 0.3s ease;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active-tab {
    background: #da0a2c;
    color: #fff;
}

.checkout-section {
    font-family: Arial, sans-serif;
    margin: 20px;
}

.order-summary {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.order-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 60px;
    height: 60px;
    margin-right: 10px;
}

.item-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.item-quantity,
.item-price {
    color: #555;
}

/* Section styling */
.checkout-section {
    padding: 20px;
    background: #f5f5f5;
    font-family: Arial, sans-serif;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Grid layout */
.order-grid {
    display: flex;
    gap: 20px;
}

.order-items,
.order-details {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Order items styling */
.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    flex-wrap: wrap;
}

.order-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 60px;
    height: 60px;
    margin-right: 10px;
}

.item-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.item-details {
    flex: 1;
    min-width: 0; /* Add this line */
}

.item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.item-quantity,
.item-price {
    color: #555;
}

/* Order total styling */
.order-total {
    margin-top: 10px;
}

.order-total div {
    display: flex;
    justify-content: space-between;
}

/* Payment info styling */
.payment-info,
.shipping-info {
    margin-top: 20px;
}

.payment-info h3,
.shipping-info h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.payment-info div,
.shipping-info div {
    margin-bottom: 5px;
}

/* Button styling */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-block {
    width: 100%;
    padding: 15px;
    background-color: #da0a2c;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
}

.btn-block:hover {
    background-color: #7a061a;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .checkout-section {
        margin: 10px;
        padding: 10px;
    }

    .order-grid {
        flex-direction: column;
    }

    .order-summary {
        padding: 10px;
    }

    .order-item {
        flex-direction: row;
        justify-content: space-between;
    }

    .order-item .item-image {
        margin-bottom: 10px;
    }

    .order-total div {
        flex-direction: row;
        justify-content: space-between;
    }

    .btn-block {
        padding: 10px;
        font-size: 14px;
    }

    .item-details {
        flex: 1;
        min-width: calc(100% - 70px); /* Ensure it takes up the remaining space */
    }
}


.credit-card-container {
    position: relative;
    width: 100%;
}
.credit-card-container input {
    padding-right: 50px; /* Espaço suficiente para o ícone */
}
.credit-card-icon {
    position: absolute;
    top: 75%;
    right: 10px;
    transform: translateY(-50%);
    width: 40px; /* Ajuste o tamanho conforme necessário */
    height: auto;
}

@media (max-width: 767px) {
    .container-fluid {
        width: 100% !important;
    }
}


@media (max-width: 767px) {
    .installments-container {
        margin-top: 20px; /* Ajuste o valor conforme necessário */
    }
}


.cart_section {
    padding-top: 140px; /* Valor padrão para telas maiores */
}

@media (max-width: 1200px) {
    .cart_section {
        padding-top: 180px; /* Valor ajustado para telas grandes, mas menores que 1200px */
    }
}

@media (max-width: 1024px) {
    .cart_section {
        padding-top: 180px; /* Valor ajustado para tablets grandes */
    }
}

@media (max-width: 935px) {
    .cart_section {
        padding-top: 100px; /* Valor ajustado para telas medianas */
    }
}

@media (max-width: 768px) {
    .cart_section {
        padding-top: 80px; /* Valor ajustado para tablets e smartphones maiores */
    }
}

@media (max-width: 600px) {
    .cart_section {
        padding-top: 60px; /* Valor ajustado para smartphones em modo paisagem */
    }
}

@media (max-width: 480px) {
    .cart_section {
        padding-top: 40px; /* Valor ajustado para smartphones menores */
    }
}

@media (max-width: 320px) {
    .cart_section {
        padding-top: 30px; /* Valor ajustado para smartphones muito pequenos */
    }
}
