/* ========================================================
   PRZYCISK ZAPYTANIA O PRODUKT
   ======================================================== */
#wm-zapytaj-trigger-wrap.wm-zapytaj-trigger-wrap {
    margin: 15px 0;
	display: flex;
    justify-content: center;
    align-items: center;
}

#wm-zapytaj-trigger-wrap .wm-zapytaj-trigger {
    background: transparent;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
    outline: none;
	box-shadow: none;
	flex-direction: row-reverse;
}

#wm-zapytaj-trigger-wrap .wm-zapytaj-text {
    font-size: 12px;
    font-weight: 600;
    color: #000;
}

#wm-zapytaj-trigger-wrap .wm-zapytaj-icon {
    width: 22px;
    height: 22px;
}

/* Efekt po najechaniu */
.wm-zapytaj-trigger:hover .wm-zapytaj-text {
    color: #f49717;
}

/* ========================================================
   MODAL (WYSKAKUJĄCE OKIENKO)
   ======================================================== */
#wm-modal-zapytaj.wm-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#wm-modal-zapytaj .wm-modal-box {
    background: #fff;
    width: 100%;
    max-width: 650px; /* Szerokość okienka jak na zdjęciu */
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
    box-sizing: border-box;
	padding: 25px 40px;
}

@media(max-width: 450px){
	#wm-modal-zapytaj .wm-modal-box{
		padding: 15px 15px;
	}
}

/* Nagłówek */
#wm-modal-zapytaj .wm-modal-header {
    border-bottom: 1px solid #eaeaea;
    position: relative;
	display: flex;
	padding-bottom: 15px;
	margin-bottom: 15px;
}

#wm-modal-zapytaj .wm-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    padding-right: 40px;
    line-height: 1.4;
}

#wm-modal-zapytaj .wm-modal-box .wm-modal-close {
    position: absolute;
    top: 0px;
    right: 0px;
    background: transparent;
    border: 1px solid #eaeaea;
    font-size: 24px;
    line-height: 24px;
	padding: 0;
    width: 32px;
    height: 32px;
    color: #f49717;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

#wm-modal-zapytaj .wm-modal-box .wm-modal-close:hover {
    background: #f9f9f9;
}

/* Wnętrze formularza (Ciało modala) */
#wm-modal-zapytaj .wm-modal-body {
	display: flex;
	gap: 20px;
    flex-direction: column;
}

.wm-zapytaj-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Siatka 2-kolumnowa dla etykiet i pól */
.wm-form-row {
    display: grid;
    grid-template-columns: 160px 1fr; /* Etykiety 160px, reszta to input */
    gap: 15px;
    align-items: start;
}

.wm-form-row label {
    font-size: 14px;
    color: #333;
    padding-top: 8px; /* Wyrównanie tekstu z inputem */
    text-align: right;
}

.wm-form-row input[type="text"],
.wm-form-row input[type="email"],
.wm-form-row textarea {
    width: 100%;
    border: 1px solid #ddd;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.wm-form-row textarea {
    resize: vertical;
}

/* Wiersz z checkboxem */
.wm-checkbox-label {
    font-size: 13px !important;
    color: #555 !important;
    text-align: left !important;
    line-height: 1.5;
    padding-top: 0 !important;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.wm-checkbox-label input[type="checkbox"] {
    margin-top: 4px;
}

/* Złożenie przycisku wyślij i komunikatu */
.wm-submit-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wm-submit-btn {
    background-color: #f49717;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.wm-submit-btn:hover {
    background-color: #3e2723;
}

.wm-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.wm-form-msg {
    font-size: 14px;
    font-weight: 600;
}

/* Responsywność - Na telefonach układamy etykiety nad polami */
@media (max-width: 600px) {
    .wm-modal-header, .wm-modal-body {
        padding: 20px;
    }
    
    .wm-form-row {
        grid-template-columns: 1fr; /* 1 kolumna */
        gap: 5px;
    }
    
    .wm-form-row label {
        text-align: left;
        padding-top: 0;
    }
    
    .wm-checkbox-spacer {
        display: none; /* Ukrywamy puste miejsce pod etykietami na fonie */
    }
}