/* Modal Container */
.dokan-cep-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.dokan-cep-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
}

/* Modal Content */
.dokan-cep-modal-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    z-index: 99999;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.dokan-cep-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.dokan-cep-modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.dokan-cep-modal-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Body */
.dokan-cep-modal-body {
    padding: 30px;
}

.dokan-cep-input-group {
    margin-bottom: 20px;
}

.dokan-cep-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.dokan-cep-input:focus {
    outline: none;
    border-color: #f05025;
    box-shadow: 0 0 0 3px rgba(240, 80, 37, 0.1);
}

.dokan-cep-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

/* Buttons */
.dokan-cep-btn-submit {
    width: 100%;
    padding: 12px;
    background: #f05025;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.dokan-cep-btn-submit:hover {
    background: #d04015;
}

.dokan-cep-btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Error Message */
.dokan-cep-error {
    background: #fbeaea;
    color: #dc3232;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    border-left: 4px solid #dc3232;
}

/* Footer */
.dokan-cep-modal-footer {
    padding: 0 30px 30px;
    text-align: center;
}

.dokan-cep-btn-skip {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    transition: color 0.3s;
}

.dokan-cep-btn-skip:hover {
    color: #666;
}

/* Loading State */
.dokan-cep-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 480px) {
    .dokan-cep-modal-content {
        width: 95%;
    }
    
    .dokan-cep-modal-header {
        padding: 20px 20px 15px;
    }
    
    .dokan-cep-modal-body {
        padding: 20px;
    }
    
    .dokan-cep-modal-footer {
        padding: 0 20px 20px;
    }
}
