/* Shared confirm-modal (MicroModal) styles for the storefront.
 * Themes can override any of these classes, or supply their own
 * #confirm-modal markup to fully reshape the dialog. */

.micromodal {
    display: none;
}

.micromodal.is-open {
    display: block;
}

.micromodal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.micromodal__container {
    background: white;
    padding: 0;
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.3s ease;
}

.micromodal__header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.micromodal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-gray, #1f2937);
}

.micromodal__close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #6b7280;
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s;
}

.micromodal__close:hover {
    color: #1f2937;
    transform: scale(1.1);
}

.micromodal__content {
    padding: 24px;
}

.micromodal__content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--medium-gray, #6b7280);
}

.micromodal__footer {
    padding: 16px 24px;
    background: #f9fafb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.micromodal__btn {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.micromodal__btn-cancel {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.micromodal__btn-cancel:hover {
    background: #f9fafb;
}

.micromodal__btn-confirm {
    background: #ef4444;
    color: white;
}

.micromodal__btn-confirm:hover {
    background: #dc2626;
}

.micromodal__btn-confirm.primary {
    background: var(--brand-primary, #3b82f6);
}

.micromodal__btn-confirm.primary:hover {
    opacity: 0.9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
