.ip-guest-editor-section {
    --guest-accent: #657454;
    --guest-soft: #edf1e6;
    --guest-line: #dce2d3;
    min-width: 0;
    border-radius: 18px !important;
}

.ip-guest-editor-section .fi-section-header {
    gap: 12px;
    padding: 18px 22px !important;
    background: linear-gradient(110deg, #edf1e64d, transparent 75%);
}

.ip-guest-editor-section .fi-section-header-icon { color: var(--guest-accent) !important; }
.ip-guest-editor-section .fi-section-header-description { max-width: 66ch; line-height: 1.6; }
.ip-guest-editor-section .fi-section-content { padding: 22px !important; }
.ip-guest-editor-section .fi-fo-field-wrp { min-width: 0; }
.ip-guest-editor-section .fi-fo-field-wrp-helper-text { font-size: 12px; line-height: 1.6; }
.ip-guest-editor-section .choices__list--single .choices__item[data-item] { display: flex; align-items: center; }
.ip-guest-editor-section .choices__list--single .choices__button {
    position: absolute !important;
    inset: 0 40px 0 auto !important;
    width: 30px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    transform: none !important;
}

.ip-guest-editor-section .choices__list--single .choices__button:dir(rtl) {
    inset: 0 auto 0 40px !important;
}

.ip-guest-type {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
}

.ip-guest-type > div { min-width: 0; }
.ip-guest-editor-section .ip-guest-type > div > label.fi-btn {
    display: flex;
    justify-content: flex-start;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--guest-line) !important;
    border-radius: 12px !important;
    background: #fffefa !important;
    color: #687164 !important;
    box-shadow: none !important;
    font-size: 12px;
    line-height: 1.4;
    transition: border-color .18s, background-color .18s;
}

.ip-guest-editor-section .ip-guest-type label.fi-btn .fi-btn-icon { width: 19px; height: 19px; color: inherit !important; flex-shrink: 0; }
.ip-guest-editor-section .ip-guest-type label.fi-btn .fi-btn-label { text-align: left; white-space: normal; color: inherit !important; }
.ip-guest-editor-section .ip-guest-type > div:has(input:checked) > label.fi-btn {
    background: var(--guest-soft) !important;
    border-color: var(--guest-accent) !important;
    color: #47583e !important;
    box-shadow: inset 0 0 0 1px #65745422 !important;
}
.ip-guest-type > div > label:hover { border-color: #a2af94 !important; }
.ip-guest-type input:focus-visible + label { outline: 2px solid #899977; outline-offset: 3px; }

.ip-guest-individual input[type="checkbox"]:checked:disabled,
.ip-guest-general input[type="checkbox"]:checked:disabled {
    background-color: #748568 !important;
    border-color: #748568 !important;
    opacity: .8;
}

.ip-guest-editor-section.ip-guest-family { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.ip-guest-family > .fi-section-header { background: transparent; padding: 8px 2px 18px !important; }
.ip-guest-family > .fi-section-content-ctn { border: 0 !important; }
.ip-guest-family > .fi-section-content-ctn > .fi-section-content { padding: 0 !important; }
.ip-guest-members > ul { gap: 14px !important; }
.ip-guest-members .fi-fo-repeater-item { border: 1px solid var(--guest-line) !important; border-radius: 16px !important; }
.ip-guest-members .fi-fo-repeater-item-header { background: #f6f7f1 !important; padding: 11px 16px !important; }
.ip-guest-members .fi-fo-repeater-item-content { padding: 18px !important; }
.ip-guest-members .fi-fo-repeater-item-content > .grid { row-gap: 16px !important; }
.ip-guest-members .fi-fo-repeater-item-header .fi-section-header-heading { font-size: 13px; }

.fi-modal-window:has(.ip-guest-editor-section) { background: #faf9f5 !important; }
.fi-modal-window:has(.ip-guest-editor-section) > .fi-modal-header { padding: 22px 24px 18px !important; }
.fi-modal-window:has(.ip-guest-editor-section) .fi-modal-heading { font-size: 20px; letter-spacing: -.02em; }
.fi-modal-window:has(.ip-guest-editor-section) .fi-modal-description { max-width: 68ch; line-height: 1.65; font-size: 13px; }
.fi-modal-window:has(.ip-guest-editor-section) .fi-modal-footer { border-top: 1px solid #e2e5db; padding-top: 18px; }
.fi-modal-window:has(.ip-guest-editor-section) .fi-modal-footer-actions { gap: 10px; }

@media (max-width: 767px) {
    .ip-guest-editor-section .fi-section-header { padding: 16px !important; }
    .ip-guest-editor-section .fi-section-content { padding: 16px !important; }
    .ip-guest-family > .fi-section-header { padding: 4px 0 15px !important; }
    .ip-guest-members .fi-fo-repeater-item-content { padding: 15px !important; }
    .fi-modal-window:has(.ip-guest-editor-section) .fi-modal-footer-actions > * { flex: 1 1 auto; min-height: 44px; }
    .ip-guest-editor-section .ip-guest-type > div > label.fi-btn { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
    .ip-guest-type > div > label { transition: none; }
}
