/* Okna dialogowe w nowym wyglądzie (klasa .h24-modal na .modal, jquery.modal). Ładowane w layout.html na wszystkich stronach. */

/* ---------- okna dialogowe (jquery.modal): „Transfer domeny”, „Wylogowanie” ----------
   stary styles.css i modal.css: .mat-dialog-container z paddingiem 0, zaokrągleniem 5 px i !important */

.blocker:has(.h24-modal) {
    background-color: rgba(46, 48, 73, .35);
}

.modal.h24-modal {
    max-width: 480px;
    width: calc(100% - 32px);
    padding: 0 !important;
    border-radius: 20px !important;
    background: var(--h24-card-bg);
    box-shadow: 0 24px 60px rgba(46, 48, 73, .2);
    color: var(--h24-text);
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
    overflow: hidden !important;
}

/* pasek postępu przy sprawdzaniu kodu (commonObj.showFormProgress) */
.h24-modal__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid var(--h24-divider);
}

.h24-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--h24-tag-bg);
    color: var(--h24-turquoise);
    font-size: 20px;
}

/* wylogowanie: różowa ikona jak przycisk „Poczta” */
.h24-modal__icon--pink {
    background: var(--h24-pink-bg);
    color: var(--h24-pink);
}

.h24-modal__head > div {
    flex: 1;
    min-width: 0;
}

.home .h24-modal__head h2,
.h24-modal__head h2 {
    margin: 0;
    color: var(--h24-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.h24-modal__domain {
    display: block;
    color: var(--h24-brand);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.h24-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    align-self: flex-start;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px !important;
    background: none;
    box-shadow: none;
    color: var(--h24-heading);
    font-size: 22px;
    cursor: pointer;
    transition: background var(--h24-transition), color var(--h24-transition);
}

/* buttons.css daje ikonom w przyciskach margin-right: 12px, przez co krzyżyk był 6 px w lewo od środka tła */
.h24-modal__close i {
    margin: 0 !important;
}

.h24-modal__close:hover {
    background: var(--h24-hover-bg);
    color: var(--h24-brand);
}

.h24-modal__body {
    position: relative;
    padding: 20px 24px;
}

/* mniejsze okno z samym pytaniem (np. wylogowanie) */
.modal.h24-modal--small {
    max-width: 420px;
}

.h24-modal__text {
    margin: 0;
    color: var(--h24-text);
    font-size: 16px;
}

.h24-modal__label {
    display: block;
    margin-bottom: 8px;
    color: var(--h24-heading);
    font-size: 14px;
    font-weight: 700;
}

.h24-modal__note {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--h24-lavender-from), var(--h24-lavender-to));
    font-size: 14px;
}

.h24-modal__note > i {
    flex: none;
    margin-top: 3px;
    color: var(--h24-brand);
    font-size: 18px;
}

.h24-modal__note p {
    margin: 0;
}

.h24-modal__note a {
    color: var(--h24-brand);
    font-weight: 700;
}

.h24-modal__foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 24px 24px;
}

.h24-modal .h24-modal__cancel,
.h24-modal .h24-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    margin: 0;
    padding: 0 20px;
    border-radius: 10px !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background var(--h24-transition), box-shadow var(--h24-transition), color var(--h24-transition);
}

.h24-modal .h24-modal__cancel {
    border: 1px solid var(--h24-search-border);
    background: var(--h24-card-bg);
    box-shadow: none;
    color: var(--h24-heading);
}

.h24-modal .h24-modal__cancel:hover {
    background: var(--h24-hover-bg);
    color: var(--h24-brand);
}

.h24-modal .h24-modal__submit {
    border: 0;
    background: var(--h24-brand);
    box-shadow: var(--h24-shadow-button);
    color: #fff;
}

.h24-modal .h24-modal__submit:hover {
    box-shadow: none;
}

/* nieaktywny, dopóki pole kodu jest puste (domeny.html) i w trakcie sprawdzania (formLoader) */
/* buttons.css: .disabledButton z szarym tłem i !important */
.h24-modal .h24-modal__submit.disabledButton {
    background: var(--h24-disabled-bg, #e6e7ee) !important;
    box-shadow: none !important;
    color: var(--h24-disabled-text, #545874) !important;
    cursor: not-allowed;
    opacity: 1;
}

@media (max-width: 640px) {
    .h24-modal__head { padding: 18px 16px 14px; }
    .h24-modal__body { padding: 16px; }
    .h24-modal__foot { flex-direction: column-reverse; align-items: stretch; padding: 0 16px 16px; }
}
