/**
 * WizQuoteDiscard — confirmation modal host (quote-flow).
 * Trigger button styles live on WizQuoteDiscardTrigger/style.css.
 */

/* Modal overlay above cart-summary chrome */
.wiz-quote-discard-modal-overlay.modal-overlay {
    z-index: 1000010 !important;
}

.wiz-quote-discard-modal.modal {
    z-index: 1000011 !important;
    font-family: var(--wiz-body-font, Brother1816, sans-serif);
    height: fit-content !important;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 0;
}

.wiz-quote-discard-modal .modal-content {
    height: auto;
}

.wqd__box {
    padding: 28px 28px 24px;
}

.wqd__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.wqd__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: #f0f0f0;
    color: #000000;
}

.wqd__title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #111827;
    font-family: var(--wiz-heading-font, Georgia, 'Times New Roman', serif);
}

.wqd__close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    margin-left: auto;
    padding: 4px;
    border: 0;
    background: transparent;
    color: #111827;
    cursor: pointer;
    line-height: 0;
}

.wqd__close:hover {
    opacity: 0.7;
}

.wqd__close:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.wqd__message {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.55;
    color: #6b7280;
}

.wqd__footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.wqd__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border-radius: 0;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.wqd__btn--cancel {
    background: #ffffff;
    border: 1px solid #000000;
    color: #000000;
}

.wqd__btn--cancel:hover:not(:disabled) {
    background: #f5f5f5;
}

.wqd__btn--confirm {
    background: #000000;
    border: 1px solid #000000;
    color: #ffffff;
}

.wqd__btn--confirm:hover:not(:disabled):not(.loading) {
    opacity: 0.92;
}

.wqd__btn--confirm.loading {
    opacity: 0.85;
    pointer-events: none;
    position: relative;
    padding-right: 40px;
    cursor: wait;
}

.wqd__btn--confirm.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    right: 14px;
    top: 50%;
    margin-top: -8px;
    animation: wqd-spin 0.8s linear infinite;
}

.wqd__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes wqd-spin {
    to {
        transform: rotate(360deg);
    }
}
