/* ===== BANNER ===== */
.draccu-food-express-template-checkout-banner {
    width: 100%;
    height: 200px;
    background-position: center;
    background-size: cover;
}

.nav-food-draccu-express{
    position: absolute; 
    width: 100%; 
    max-width: 700px; 
    display: flex; 
    justify-content: end; 
    gap: 10px;
}

.nav-food-draccu-express a{
    background-color: #000000a1; 
    color: #fff; 
    padding: 7px 12px; 
    border-radius: 50%; 
    margin-top: 10px; 
    font-size: .8em;
}

.nav-food-draccu-express a:hover{
    background-color: #000000c5; 
}

/* ===== ESTILOS DO CHECKOUT ===== */
.draccu-checkout-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    position: relative;
    min-height: 500px;
}

.draccu-checkout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    z-index: 0;
}

.draccu-checkout-loading {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.draccu-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #58bc42;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: draccu-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes draccu-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.draccu-checkout-content {
    background: #ffffff;
    border-radius: 15px;
    padding: 15px;
    position: relative;
    z-index: 1;
    border: 1px solid #e9e9e9;
    margin-top: -70px;
}

/* ===== STEPS ===== */
.draccu-checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px 20px 0 20px;
}

.draccu-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.draccu-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .65em;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.draccu-step-item.active .draccu-step-number {
    background: #58bc42;
    color: #fff;
    border-color: #58bc42;
}

.draccu-step-item.completed .draccu-step-number {
    background: #58bc42;
    color: #fff;
    border-color: #58bc42;
}

.draccu-step-label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #999;
    transition: color 0.3s ease;
    text-align: center;
}

.draccu-step-item.active .draccu-step-label {
    color: #333;
}

.draccu-step-connector {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 15px;
    margin-bottom: 22px;
    min-width: 30px;
    transition: background 0.3s ease;
}

.draccu-step-connector.active {
    background: #58bc42;
}

/* ===== STEPS CONTAINER ===== */
.draccu-checkout-step {
    display: none;
    animation: draccu-fadeIn 0.4s ease;
}

.draccu-checkout-step.draccu-step-active {
    display: block;
}

@keyframes draccu-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.draccu-step-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* ===== FORMULÁRIO ===== */
.draccu-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.draccu-form-group {
    display: flex;
    flex-direction: column;
}

.draccu-form-group label {
    font-size: .6em;
    font-weight: 500;
    color: #2e2e2e;
    margin-bottom: 6px;
}

.draccu-form-group input,
.draccu-form-group select,
.draccu-form-group textarea {
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    background: #ffffff;
    width: 100%;
}

.draccu-form-group textarea{
    height: 46px;
}

.draccu-form-group input:focus,
.draccu-form-group select:focus {
    border-color: #58bc42;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(88, 188, 66, 0.1);
}

.draccu-form-group input.error,
.draccu-form-group select.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.draccu-form-group .draccu-field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.draccu-form-group .draccu-field-error.show {
    display: block;
}

/* ===== SHIPPING METHODS ===== */
.draccu-shipping-methods h4 {
    font-size: .65em;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.draccu-shipping-option {
    display: flex;
    align-items: center;
    padding: 15px 18px 15px 50px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    position: relative;
}

.draccu-shipping-option:hover {
    border-color: #58bc42;
    background: #f8fff8;
}

.draccu-shipping-option.selected {
    border-color: #58bc42;
    background: #ffffff;
}

/* Esconder checkbox nativo */
.draccu-shipping-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

/* Checkbox personalizado - círculo */
.draccu-shipping-option input[type="checkbox"] + label::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.25s ease;
    flex-shrink: 0;
    left: -35px;
}

.draccu-shipping-option:hover input[type="checkbox"] + label::before {
    border-color: #58bc42;
}

.draccu-shipping-option input[type="checkbox"]:checked + label::before {
    background: #58bc42;
    border-color: #58bc42;
    left: -35px;
}

/* Bola branca dentro do círculo */
.draccu-shipping-option input[type="checkbox"]:checked + label::after {
    content: '●';
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
    padding-bottom: 8px;
    padding-left: 3px;
}

.draccu-shipping-option .draccu-shipping-label {
    flex: 1;
    font-size: .6em;
    font-weight: 500;
    color: #333;
    margin-bottom: 0;
    cursor: pointer;
    position: relative;
    padding-left: 5px;
}

.draccu-shipping-option .draccu-shipping-price {
    font-weight: 500;
    font-size: .65em;
    color: #333;
}

/* ===== PAYMENT METHODS ===== */
.draccu-payment-methods {
    margin-bottom: 30px;
}

.draccu-payment-methods h4 {
    font-size: .65em;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.draccu-payment-option {
    display: flex;
    align-items: center;
    padding: 15px 18px 15px 50px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    position: relative;
}

.draccu-payment-option:hover {
    border-color: #58bc42;
    background: #f8fff8;
}

.draccu-payment-option.selected {
    border-color: #58bc42;
    background: #ffffff;
    padding-bottom: 10px;
}

/* Esconder checkbox nativo */
.draccu-payment-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

/* Checkbox personalizado - círculo */
.draccu-payment-option input[type="checkbox"] + label::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.draccu-payment-option:hover input[type="checkbox"] + label::before {
    border-color: #58bc42;
}

.draccu-payment-option input[type="checkbox"]:checked + label::before {
    background: #58bc42;
    border-color: #58bc42;
}

/* Bola branca dentro do círculo */
.draccu-payment-option input[type="checkbox"]:checked + label::after {
    content: '●';
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
    padding-left: 4px;
    padding-bottom: 9px;
}

.draccu-payment-option .draccu-payment-label {
    flex: 1;
    font-size: .6em;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    position: relative;
    padding-left: 5px;
}

.draccu-payment-option .draccu-payment-icon {
    width: 40px;
    height: 30px;
    object-fit: contain;
}

/* ===== ORDER REVIEW ===== */
.draccu-order-review {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #dddddd;
}

.draccu-order-review h4 {
    font-size: .65em;
    font-weight: 600;
    color: #2c2c2c;
    padding-bottom: 10px;
}

.draccu-order-review table {
    width: 100%;
    border-collapse: collapse;
}

.draccu-order-review table th,
.draccu-order-review table td {
    padding: 10px 8px;
    text-align: left;
    font-size: .65em;
    font-weight: 500;
}

.draccu-order-review table th {
    font-weight: 600;
    color: #555;
}

.draccu-order-review table td {
    color: #333;
}

.draccu-order-review table .draccu-order-total {
    font-weight: 600;
    font-size: 1em;
    color: #141414;
}

.draccu-order-review table .draccu-order-total td {
    padding-top: 15px;
}

/* ===== ORDER ITEM ADDONS ===== */
.draccu-order-item-addons {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.draccu-order-item-addons > div {
    margin-top: 3px;
    line-height: 1.4;
}

.draccu-order-item-addons strong {
    font-size: 12px;
    color: #555;
    font-weight: 600;
}

.draccu-order-item-addons span {
    margin-left: 5px;
}

/* ===== ACTIONS ===== */
.draccu-step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.draccu-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: .65em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.draccu-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.draccu-btn-prev {
    background: #ffffff;
    color: #242424;
    border: 1px solid #cccccc;
}

.draccu-btn-prev:hover:not(:disabled) {
    background: #d5d5d5;
}

.draccu-btn-next {
    background: #58bc42;
    color: #fff;
    margin-left: auto;
}

.draccu-btn-next:hover:not(:disabled) {
    background: #4a9e37;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 188, 66, 0.3);
}

.draccu-btn-submit {
    color: #fff;
    font-size: .65em;
    padding: 14px 40px;
    margin-left: auto;
}

.draccu-btn-submit:hover:not(:disabled) {
    background: #4a9e37;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 188, 66, 0.3);
}

.draccu-btn-submit.loading {
    pointer-events: none;
}

/* ===== MENSAGENS ===== */
.draccu-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.draccu-message.error {
    display: block;
    background: #fff5f5;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.draccu-message.success {
    display: block;
    background: #f0faf0;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.draccu-message.info {
    display: block;
    background: #e8f0fe;
    border: 1px solid #b8d4f0;
    color: #1a3c5e;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .draccu-checkout-content {
        padding: 20px 15px;
    }

    .draccu-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .draccu-checkout-steps {
        padding: 0 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0;
    }

    .draccu-step-label {
        font-size: 11px;
        white-space: nowrap;
    }

    .draccu-step-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .draccu-step-connector {
        min-width: 15px;
        margin: 0 8px;
        margin-bottom: 20px;
    }

    .draccu-step-actions {
        flex-direction: column;
        gap: 10px;
        padding: 0;
    }

    .draccu-step-actions button {
        margin-top: -20px;
    }

    .draccu-btn {
        width: 100%;
        justify-content: center;
    }

    .draccu-btn-next,
    .draccu-btn-submit {
        margin-left: 0;
    }

    .draccu-order-review table {
        font-size: 13px;
    }

    .draccu-order-review table th,
    .draccu-order-review table td {
        padding: 8px 5px;
    }

    .draccu-shipping-option,
    .draccu-payment-option {
        padding: 12px 14px 12px 45px;
        font-size: 14px;
    }

    .draccu-btn-prev {
        margin-bottom: 20px;
    }

    .draccu-form-group textarea{
        height: 100px;
    }

    .draccu-shipping-option .draccu-shipping-label {
        font-size: .95em;
    }

    .draccu-shipping-option .draccu-shipping-price {
        font-size: .95em;
    }

    .draccu-payment-option .draccu-payment-label {
        font-size: .95em;
    }

    .draccu-order-review table {
        font-size: 1em;
    }

    .nav-food-draccu-express a:last-child{
        margin-right: 10px;
    }

    .nav-food-draccu-express a{
        font-size: 1em;
    }


.nav-food-draccu-express a{
    font-size: .8em;
}

.draccu-step-number {
    font-size: .75em;
}

.draccu-form-group label {
    font-size: .75em;
}

/* ===== SHIPPING METHODS ===== */
.draccu-shipping-methods h4 {
    font-size: .75em;
}

.draccu-shipping-option .draccu-shipping-label {
    font-size: .8em;
}

.draccu-shipping-option .draccu-shipping-price {
    font-size: .75em;
}

.draccu-payment-methods h4 {
    font-size: .75em;
}

.draccu-payment-option .draccu-payment-label {
    font-size: .7em;
}

.draccu-order-review h4 {
    font-size: .75em;
}

.draccu-order-review table th,
.draccu-order-review table td {
    font-size: .75em;
}

.draccu-order-review table .draccu-order-total {
    font-size: 1em;
}

.draccu-btn {
    font-size: .75em;
}

.draccu-btn-submit {
    font-size: .75em;
}

}