.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 45px 15px 0;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 25px;
    margin: 8px 0 2px 0;
    padding: 0;
    gap: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
}

.step.active {
    color: #5FBFAB;
}

.step-number {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 12px;
}

.step.active .step-number {
    background: #5FBFAB;
    color: white;
}

.checkout-content {
    display: flex;
    gap: 8px;
    margin-top: 0;
    padding-top: 0;
}

.shipping-form {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.shipping-form h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.small {
    width: 120px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:read-only {
    background: #f8f8f8;
}

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

.cep-input input {
    width: 140px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #f8f8f8;
}

.cep-input button {
    padding: 12px 20px;
    background: linear-gradient(45deg, #55b3a0, #5FBFAB);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(95, 191, 171, 0.2);
    transition: all 0.3s ease;
}

.cep-input button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(95, 191, 171, 0.3);
}

.order-summary {
    width: 350px;
    background: white;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.order-summary h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f5f5f5;
    font-weight: 600;
}

.product-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(45deg, #55b3a0, #5FBFAB);
    border-radius: 4px 0 0 4px;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 10px;
    position: relative;
}

.product-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 500;
    line-height: 1.4;
}

.product-info .details {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 20px;
    color: #5FBFAB;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.quantity {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

.summary-totals {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
    color: #666;
}

.free-shipping {
    color: #5FBFAB;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.free-shipping::before {
    content: "✓";
    font-size: 14px;
}

.summary-line.discount {
    color: #5FBFAB;
    font-weight: 500;
}

.summary-line.total {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid #eee;
}

.continue-button {
    width: 100%;
    padding: 15px;
    background: #5FBFAB;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

@media (max-width: 768px) {
    .checkout-steps {
        height: 22px;
        margin: 5px 0 0 0;
        gap: 15px;
    }

    .step-text {
        display: none;
    }

    .checkout-content {
        flex-direction: column;
        margin-top: 0;
        gap: 8px;
        padding-top: 2px;
    }

    .order-summary {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-group.small {
        width: 100%;
    }

    .cep-input {
        flex-direction: row;
    }

    .cep-input input {
        flex: 1;
        max-width: none;
    }

    .cep-input button {
        white-space: nowrap;
        padding: 12px 15px;
    }

    .product-item {
        padding: 12px;
    }

    .product-item img {
        width: 70px;
        height: 70px;
    }

    .product-info h3 {
        font-size: 14px;
    }

    .price {
        font-size: 16px;
    }

    .summary-totals {
        padding: 15px;
        margin: 15px 0;
    }

    .summary-line {
        font-size: 13px;
    }

    .summary-line.total {
        font-size: 16px;
    }

    .continue-button {
        position: fixed;
        bottom: 15px;
        left: 15px;
        right: 15px;
        width: calc(100% - 30px);
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .order-summary {
        margin-bottom: 80px;
    }

    .checkout-container {
        padding-top: 45px;
    }

    .checkout-step-content.active {
        margin-top: 5px;
    }

    .shipping-form {
        margin: 0;
        padding: 12px;
    }

    .step-number {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .form-group:first-child {
        margin-top: 0;
    }
} 

.checkout-step-content {
    display: none;
    width: 100%;
}

.checkout-step-content.active {
    display: block;
}

.shipping-form h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shipping-form h2 i {
    color: #5FBFAB;
}

.pix-container {
    text-align: center;
    padding: 20px;
}

.pix-info {
    margin-bottom: 20px;
}

.pix-discount {
    color: #5FBFAB;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.pix-total {
    font-size: 16px;
    color: #333;
}

.pix-qr {
    margin: 20px 0;
}

.pix-qr img {
    width: 200px;
    height: 200px;
    margin-bottom: 15px;
}

.copy-pix {
    background: #666;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.pix-instructions {
    text-align: left;
    margin-top: 20px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 6px;
}

.pix-instructions p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.summary-line.discount {
    color: #5FBFAB;
}

/* Melhorias no mobile */
@media (max-width: 768px) {
    .checkout-container {
        margin: 20px auto;
        padding-top: 20px;
    }

    .shipping-form,
    .order-summary {
        padding: 20px;
        margin-top: 25px;
    }

    .pix-qr img {
        width: 180px;
        height: 180px;
    }

    .continue-button {
        position: fixed;
        bottom: 15px;
        left: 15px;
        right: 15px;
        width: calc(100% - 30px);
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .order-summary {
        margin-bottom: 80px;
    }
} 

/* Ajustes gerais para mobile */
@media (max-width: 768px) {
    .checkout-container {
        padding: 55px 12px 20px;
        margin: 0;
    }

    /* Melhorar steps */
    .checkout-steps {
        background: white;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        margin-bottom: 15px;
        height: auto;
    }

    .step {
        flex-direction: column;
        align-items: center;
        flex: 1;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
        margin-bottom: 5px;
    }

    .step-text {
        display: block;
        font-size: 12px;
    }

    /* Melhorar formulários */
    .shipping-form {
        padding: 15px;
        margin-bottom: 12px;
    }

    .shipping-form h2 {
        font-size: 18px;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 1px solid #f0f0f0;
    }

    .form-group input {
        padding: 14px;
        font-size: 15px;
        border: 1.5px solid #e0e0e0;
    }

    .cep-input button {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 8px;
    }

    /* Melhorar resumo do pedido */
    .order-summary {
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 100px;
    }

    .product-item {
        padding: 15px;
        margin-bottom: 15px;
        border: none;
        background: #f8f8f8;
    }

    .product-item img {
        width: 80px;
        height: 80px;
        border-radius: 6px;
    }

    .product-info h3 {
        font-size: 15px;
        font-weight: 500;
        margin-bottom: 8px;
    }

    .price {
        font-size: 18px;
    }

    .summary-totals {
        margin: 20px 0;
        padding: 15px;
        background: #f8f8f8;
    }

    .summary-line {
        padding: 10px 0;
        font-size: 14px;
    }

    .summary-line.total {
        font-size: 18px;
        padding-top: 15px;
    }

    /* Melhorar botão continuar */
    .continue-button {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 16px;
        font-size: 16px;
        border-radius: 0;
        background: #5FBFAB;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        margin: 0;
        z-index: 1000;
    }

    /* Melhorar modal de pagamento */
    .modal-content {
        width: 92%;
        padding: 20px;
        border-radius: 12px;
    }

    .qr-container {
        background: #f8f8f8;
        padding: 20px;
        border-radius: 8px;
        margin: 15px 0;
    }

    .copy-button {
        padding: 15px;
        font-size: 15px;
        border-radius: 8px;
    }

    /* Ajuste do header */
    .header {
        padding: 12px 15px;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .header .logo img {
        height: 30px;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 360px) {
    .checkout-container {
        padding: 55px 8px 20px;
    }

    .step-text {
        font-size: 11px;
    }

    .product-item img {
        width: 70px;
        height: 70px;
    }

    .product-info h3 {
        font-size: 14px;
    }
}

/* Ajuste do header fixo */
.header {
    background-color: #FFF7F4;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 45px;
}

/* Estilos para os modais */
.loading-modal,
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.loading-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #5FBFAB;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    margin: 15px 0;
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    width: 100%;
    height: 100%;
    background: #5FBFAB;
    animation: progress 180s linear;
}

.qr-container {
    margin: 20px 0;
}

.copy-button {
    width: 100%;
    padding: 12px;
    background: #5FBFAB;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.copy-button:hover {
    background: #4da899;
}

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

@keyframes progress {
    0% { width: 100%; }
    100% { width: 0%; }
}

/* Ajustes do Step 3 - Pagamento */
.timer-container {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
}

#timer {
    font-size: 22px;
    font-weight: 600;
    color: #5FBFAB;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin: 10px 0;
    overflow: hidden;
}

.progress {
    width: 100%;
    height: 100%;
    background: #5FBFAB;
    animation: progress 180s linear;
}

.qr-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin: 20px auto;
    max-width: 250px;
    display: flex;
    justify-content: center;
}

.copy-button {
    width: 100%;
    padding: 15px;
    background: #5FBFAB;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    margin: 15px 0;
}

.copy-button:hover {
    background: #4da899;
}

.pix-instructions {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.pix-instructions h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
}

.pix-instructions ol {
    padding-left: 20px;
    margin: 0;
}

.pix-instructions li {
    color: #666;
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .timer-container {
        padding: 12px;
        margin: 15px 0;
    }

    #timer {
        font-size: 20px;
    }

    .qr-container {
        padding: 20px;
        margin: 15px auto;
    }

    .pix-instructions {
        padding: 15px;
    }

    .pix-instructions h3 {
        font-size: 15px;
    }

    .pix-instructions li {
        font-size: 13px;
    }
}