/* Custom Checkout Button */
.omicart-custom-checkout {
    margin: 20px 0;
}

#omicart-checkout-btn {
    width: 100%;
    background: #f2e665;
    color: #000;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

#omicart-checkout-btn:hover {
    background: #e6da55;
}

/* Modal */
.omicart-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.omicart-modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.omicart-close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.omicart-close:hover {
    color: #000;
}

/* Order Summary */
.omicart-order-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.omicart-order-summary h3 {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-info strong {
    font-size: 14px;
}

.item-info span {
    font-size: 13px;
    color: #666;
}

.item-total {
    font-weight: 600;
    font-size: 15px;
}

.order-total {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    font-size: 18px;
}

/* Form */
#omicart-checkout-form h3 {
    margin: 25px 0 15px;
    font-size: 18px;
}

.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #f2e665;
}

.form-row textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-actions {
    margin-top: 25px;
}

.submit-btn {
    width: 100%;
    background: #f2e665;
    color: #000;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover:not(:disabled) {
    background: #e6da55;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.omicart-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.omicart-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.omicart-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.payment-note {
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    background: #fff3cd;
    border-radius: 4px;
}

.payment-note small {
    color: #856404;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .omicart-modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 20px;
    }

    .form-row-half {
        grid-template-columns: 1fr;
    }

    .order-item {
        flex-wrap: wrap;
    }

    .item-total {
        width: 100%;
        text-align: right;
    }
}