/**
 * ds_ask — style modala zapytania o produkt.
 *
 * @author    Dynamite Studio <biuro@dynamite-studio.pl>
 * @copyright 2026 Dynamite Studio
 * @license   Proprietary — moduł komercyjny Dynamite Studio
 */
.ds-ask-wrapper { margin: 10px 0; }
.ds-ask-open { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ds-ask-open .material-icons { font-size: 18px; }

.ds-ask-overlay {
    position: fixed; inset: 0; z-index: 10500;
    background: rgba(0, 0, 0, 0.55);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.ds-ask-overlay[hidden] { display: none; }

.ds-ask-modal {
    background: #fff; border-radius: 6px; width: 100%; max-width: 560px;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.ds-ask-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #e5e5e5;
}
.ds-ask-header h3 { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.ds-ask-variant { display: block; color: #6c868e; font-size: 0.85em; }
.ds-ask-close {
    background: none; border: 0; font-size: 26px; line-height: 1;
    cursor: pointer; color: #666; padding: 0 4px;
}
.ds-ask-close:hover { color: #000; }

.ds-ask-form { padding: 16px 20px 20px; }
.ds-ask-group { margin-bottom: 12px; }
.ds-ask-group label { display: block; margin-bottom: 4px; font-weight: 600; }
.ds-ask-group label small { font-weight: 400; color: #6c868e; }

.ds-ask-hp { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; opacity: 0; }

.ds-ask-alert { padding: 10px 14px; border-radius: 4px; margin-bottom: 12px; }
.ds-ask-alert-success { background: #dff2e3; color: #1f7a35; border: 1px solid #b5e0c0; }
.ds-ask-alert-error { background: #fdeaea; color: #a41515; border: 1px solid #f3c2c2; }

.ds-ask-submit { width: 100%; }
body.ds-ask-modal-open { overflow: hidden; }

.ds-ask-invalid { border-color: #a41515 !important; box-shadow: 0 0 0 1px #a41515; }
