#profileInfoPopup .profile-modal-dialog {
    width: 1060px !important;
    max-width: calc(100vw - 44px);
    margin: 22px auto !important;
}

#profileInfoPopup .profile-modal-content {
    max-height: calc(100vh - 44px);
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(17, 40, 62, 0.24);
    display: flex;
    flex-direction: column;
}

#profileInfoPopup .profile-modal-footer {
    flex: 0 0 auto;
    padding: 14px 24px;
    border-top: 1px solid #e2eaf0;
    background: #fbfdfe;
    color: #788a99;
    font-size: 11px;
}

#profileInfoPopup .profile-modal-titlebar {
    min-height: 56px;
    padding: 24px 24px 4px 24px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#profileInfoPopup .profile-modal-titlebar::before,
#profileInfoPopup .profile-modal-titlebar::after {
    display: none;
}

#profileInfoPopup .profile-modal-titlebar .modal-title {
    margin: 0;
    padding: 0;
    color: #23384d;
    font-size: 15px;
    font-weight: 700;
}

#profileInfoPopup .profile-modal-context {
    margin: 0 0 3px;
    color: #788a99;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#profileInfoPopup .profile-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

#profileInfoPopup .profile-edit-cancel {
    padding: 8px 15px;
    border: 1px solid #ccdce5;
    border-radius: 9px;
    background: #fff;
    color: #29485d;
    font-family: system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
}

#profileInfoPopup .profile-edit-cancel:hover,
#profileInfoPopup .profile-edit-cancel:focus {
    background: #edf6fb;
}

#profileInfoPopup .profile-modal-close {
    padding: 4px 7px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #29485d !important;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
    opacity: 1;
}

#profileInfoPopup .profile-modal-close:hover,
#profileInfoPopup .profile-modal-close:focus {
    background: transparent;
    color: #29485d !important;
}

#profileInfoPopup .profile-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#profileInfoPopup .profile-modal-identity {
    min-height: 96px;
    padding: 22px 15px;
    background: #fff;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

#profileInfoPopup .profile-modal-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 3px solid #fff;
    border-radius: 10px;
    background: #dcecf7;
    color: #17618d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}

#profileInfoPopup .profile-modal-identity-copy {
    min-width: 0;
    padding-top: 0;
}

#profileInfoPopup .profile-modal-identity-copy h3 {
    margin: 0 0 5px;
    color: #1e3347;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

#profileInfoPopup .profile-modal-patient-meta {
    margin: 0;
    color: #647789;
    font-size: 12px;
    line-height: 1.5;
}

#profileInfoPopup .profile-modal-meta-separator {
    margin: 0 6px;
    color: #9aa9b6;
}

#profileInfoPopup .profile-modal-status {
    display: inline-block;
    margin-left: 9px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e8f5ed;
    color: #32734b;
    font-size: 11px;
    font-weight: 600;
    vertical-align: 1px;
}

#profileInfoPopup .profile-edit-button {
    flex: 0 0 auto;
    margin-left: 0;
    padding: 8px 12px;
    border: 1px solid #0674a8;
    border-radius: 9px;
    background: #0674a8;
    color: #fff;
    font-family: system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

#profileInfoPopup .profile-edit-button:hover,
#profileInfoPopup .profile-edit-button:focus {
    border-color: #05648f;
    background: #05648f;
    color: #fff;
}

#profileInfoPopup .profile-modal-identity-copy h2 {
    margin: 0 0 5px;
    color: #1e3347;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.25;
}

#profileInfoPopup .profile-modal-identity-meta {
    margin: 0;
    color: #647789;
    font-size: 13px;
}

#profileInfoPopup .profile-modal-contact {
    margin-top: 8px;
    color: #43596c;
    font-size: 13px;
    overflow-wrap: anywhere;
}

#profileInfoPopup .profile-modal-contact span + span::before {
    content: "·";
    margin: 0 8px;
    color: #9aa9b6;
}

#profileInfoPopup .profile-modal-tabs {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0 12px;
    border-top: 1px solid #e2eaf0;
    border-bottom: 1px solid #e2eaf0;
    background: #fbfdfe;
    display: flex;
    gap: 8px;
    list-style: none;
}

#profileInfoPopup .profile-modal-tabs .Tabs__presentation-slider {
    display: none;
}

#profileInfoPopup .profile-modal-tabs .Tabs__tab {
    float: none;
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    list-style: none;
}

#profileInfoPopup .profile-modal-tabs .profile-tab-button {
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 10px 15px;
    background: transparent;
    color: #728695;
    display: block;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#profileInfoPopup .profile-modal-tabs .profile-tab-button:focus {
    outline: 2px solid #1684b8;
    outline-offset: -2px;
}

#profileInfoPopup .profile-modal-tabs .Tab.active {
    border-bottom-color: transparent;
}

#profileInfoPopup .profile-modal-tabs .Tab.active > .profile-tab-button,
#profileInfoPopup .profile-modal-tabs .Tab:hover > .profile-tab-button {
    background-color: transparent !important;
    color: #0674a8 !important;
}

#profileInfoPopup .profile-modal-tabs .Tab.active > .profile-tab-button {
    border-bottom-color: #0674a8;
}

#profileInfoPopup .profile-info-container {
    flex: 1 1 auto;
    width: 100%;
    max-height: none;
    min-height: 0;
    padding: 12px 15px 30px;
    overflow-y: auto;
}

#profileInfoPopup .profile-display-section {
    margin-bottom: 12px;
    padding: 13px 15px;
    border: 1px solid #e2eaf0;
    border-radius: 9px;
    background: #fff;
}

#profileInfoPopup .profile-display-section:last-child {
    margin-bottom: 0;
}

#profileInfoPopup .profile-display-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 20px;
}

#profileInfoPopup .profile-display-field {
    min-width: 0;
    padding: 5px 0px;
    display: grid;
    gap: 4px;
}

#profileInfoPopup .profile-display-field > span {
    min-height: 0;
    padding: 0;
    color: #354b5f;
    overflow-wrap: anywhere;
}

#profileInfoPopup .profile-display-section > .profile-payment-row > span {
    min-height: 42px;
    padding: 4px 0;
    color: #354b5f;
    overflow-wrap: anywhere;
}

#profileInfoPopup .profile-display-field > .profile-detail-label,
#profileInfoPopup .profile-display-section > .profile-payment-row > .profile-detail-label {
    color: #6b7c8b;
    font-weight: 600;
    font-size:10px;
}

#profileInfoPopup .profile-empty-state {
    min-height: 240px;
    padding: 40px 20px;
    color: #687b8c;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#profileInfoPopup .profile-empty-state > i {
    color: #93a9b8;
    font-size: 28px;
}

#profileInfoPopup .profile-empty-state h3 {
    margin: 14px 0 6px;
    color: #20384d;
    font-size: 17px;
    font-weight: 600;
}

#profileInfoPopup .profile-empty-state p {
    margin: 0;
}

#profileInfoPopup .profile-payment-link {
    padding: 0;
    border: 0;
    background: none;
    margin-left:10px;
}

#profileInfoPopup .profile-display-section > .profile-payment-row {
    margin: 0;
    padding: 0;
}

#profileInfoPopup .profile-display-section > .profile-section-heading > span {
    display: block;
    padding: 0;
    border-bottom: 0;
    color: #233c50;
    font-family: system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

#profileInfoPopup .profile-caf-readonly .profile-detail-label[rich-text-watcher] {
    display: block;
    min-height: 0;
    padding: 0;
    color: #233c50 !important;
    font-family: system-ui, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-transform: none;
}

#profileInfoPopup .profile-caf-readonly .profile-detail-label h3,
#profileInfoPopup .profile-caf-readonly .profile-detail-label b,
#profileInfoPopup .profile-caf-readonly .profile-detail-label strong {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #233c50 !important;
    font-family: system-ui, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
}

#profileInfoPopup .profile-caf-group-heading .profile-detail-label,
#profileInfoPopup .profile-caf-group-heading .profile-detail-label h3,
#profileInfoPopup .profile-caf-group-heading .profile-detail-label b,
#profileInfoPopup .profile-caf-group-heading .profile-detail-label strong {
    text-transform: lowercase !important;
}

#profileInfoPopup .profile-caf-group-heading .profile-detail-label::first-letter,
#profileInfoPopup .profile-caf-group-heading .profile-detail-label h3::first-letter,
#profileInfoPopup .profile-caf-group-heading .profile-detail-label b::first-letter,
#profileInfoPopup .profile-caf-group-heading .profile-detail-label strong::first-letter {
    text-transform: uppercase !important;
}

#profileInfoPopup .profile-caf-groups {
    margin-top: 12px;
}

#profileInfoPopup .profile-caf-group {
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid #e2eaf0;
    border-radius: 9px;
    background: #fff;
}

#profileInfoPopup .profile-caf-group-heading .profile-detail-label,
#profileInfoPopup .profile-caf-group-heading .profile-detail-label h3,
#profileInfoPopup .profile-caf-group-heading .profile-detail-label b,
#profileInfoPopup .profile-caf-group-heading .profile-detail-label strong {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #233c50 !important;
    font-family: system-ui, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
}

#profileInfoPopup .profile-caf-group-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 16px;
}

#profileInfoPopup .profile-caf-group-field {
    min-width: 0;
    padding: 5px 0px;
    overflow-wrap: anywhere;
}

#profileInfoPopup .profile-caf-group-field .profile-detail-label {
    color: #6b7c8b;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: inherit;
}

#profileInfoPopup .profile-caf-group-field .block-data {
    color: #354b5f;
    font-size: 13px;
}

#profileInfoPopup .profile-edit-caf-groups {
    margin: 0;
}

#profileInfoPopup .profile-edit-caf-section {
    margin-bottom: 11px;
}

#profileInfoPopup .profile-edit-caf-section .profile-edit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#profileInfoPopup .profile-edit-caf-heading {
    margin: 0;
    color: #233c50;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
}

#profileInfoPopup .profile-edit-caf-control {
    display: grid;
    gap: 6px;
    color: #354b5f;
}

#profileInfoPopup .profile-edit-caf-control .form-control,
#profileInfoPopup .profile-edit-caf-control select,
#profileInfoPopup .profile-edit-caf-control textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #cbdce6;
    border-radius: 7px !important;
    background: #fff;
    color: #294457;
    font: 13px/1.45 system-ui, sans-serif;
    box-shadow: none;
}

#profileInfoPopup .profile-edit-caf-control input[type="text"],
#profileInfoPopup .profile-edit-caf-control input[type="number"],
#profileInfoPopup .profile-edit-caf-control input[type="date"],
#profileInfoPopup .profile-edit-caf-control input[type="time"] {
    width: 100%;
    min-width: 0;
    padding: 6px 9px;
    border: 1px solid #cbdce6;
    border-radius: 7px !important;
    background: #fff;
    color: #294457;
    font: inherit;
}

#profileInfoPopup .profile-edit-caf-control .form-control,
#profileInfoPopup .profile-edit-caf-control select {
    height: 36px;
    padding: 7px 10px;
}

#profileInfoPopup .profile-edit-caf-control select.form-control {
    padding-right: 32px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%236e8798' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 8px;
}

#profileInfoPopup .profile-edit-caf-control textarea {
    min-height: 48px;
    padding: 8px 10px;
    resize: vertical;
}

#profileInfoPopup .profile-edit-caf-control .form-control:focus,
#profileInfoPopup .profile-edit-caf-control select:focus,
#profileInfoPopup .profile-edit-caf-control textarea:focus {
    border-color: #58a8cf;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(6, 116, 168, 0.12);
}

#profileInfoPopup .profile-edit-caf-control .profile-caf-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 7px;
    color: #354b5f;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
}

#profileInfoPopup .profile-caf-checkboxes {
    display: grid;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 14px;
}

#profileInfoPopup .profile-caf-checkboxes .profile-caf-options {
    width: 100%;
    min-width: 0;
}

#profileInfoPopup .profile-caf-checkboxes .profile-caf-option {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-bottom: 0;
}

#profileInfoPopup .profile-caf-checkboxes .profile-caf-option input {
    position: static !important;
    display: block;
    width: 16px;
    height: 16px;
    margin: 0 !important;
    opacity: 1;
}

#profileInfoPopup .profile-edit-caf-control .profile-caf-option:last-child {
    margin-bottom: 0;
}

#profileInfoPopup .profile-edit-caf-control .profile-caf-option input {
    flex: 0 0 auto;
    margin: 3px 0 0;
    accent-color: #0674a8;
}

#profileInfoPopup .profile-caf-yesno,
#profileInfoPopup .profile-caf-picker {
    display: flex;
    align-items: center;
    gap: 8px;
}

#profileInfoPopup .profile-caf-yesno button {
    width: 72px;
    height: 34px;
    border: 1px solid #cbdce6;
    border-radius: 4px;
    background: #fff;
    color: #354b5f;
    font: 13px system-ui, sans-serif;
}

#profileInfoPopup .profile-caf-yesno .profile-caf-yes.is-selected {
    border-color: #70ba83;
    background: #70ba83;
    color: #fff;
}

#profileInfoPopup .profile-caf-yesno .profile-caf-no.is-selected {
    border-color: #c70039;
    background: #c70039;
    color: #fff;
}

#profileInfoPopup .profile-caf-picker .form-control {
    flex: 1 1 auto;
}

#profileInfoPopup .profile-caf-picker input.form-control {
    width: 100%;
    padding: 6px 9px;
    border-radius: 7px !important;
    font: inherit;
}

#profileInfoPopup .profile-caf-reset {
    flex: 0 0 auto;
    padding: 5px 7px;
    border: 0;
    background: transparent;
    color: #0674a8;
    font-size: 12px;
    cursor: pointer;
}

#profileInfoPopup .profile-caf-reset:hover,
#profileInfoPopup .profile-caf-reset:focus {
    color: #075e88;
    text-decoration: underline;
}

#profileInfoPopup .profile-caf-rating {
    width: 100%;
    padding: 5px 2px 0;
}

#profileInfoPopup .profile-caf-rating [range-slider] {
    margin: 8px 8px 14px;
}

#profileInfoPopup .profile-caf-rating-labels {
    display: flex;
    justify-content: space-between;
    color: #6b7c8b;
    font-size: 11px;
}

#profileInfoPopup .profile-caf-rating-labels span:nth-child(2) {
    color: #29485d;
    font-weight: 600;
}

#profileInfoPopup .profile-caf-info {
    display: grid;
    grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    margin: 0;
    padding: 0;
}

#profileInfoPopup .profile-caf-info > div {
    float: none;
    width: auto;
    min-height: 42px;
    padding: 11px 14px;
    color: #354b5f;
    overflow-wrap: anywhere;
}

#profileInfoPopup .profile-caf-info > div:first-child {
    color: #6b7c8b;
}

#profileInfoPopup .profile-section-divider {
    margin: 20px 0 10px;
    border-top: 1px solid #e6ebf0;
}

#profileInfoPopup .profile-payment-link {
    color: #176b97;
    cursor: pointer;
    font-weight: 600;
}

#profileInfoPopup .profile-edit-form {
    margin: -8px -12px;
    padding: 14px 18px 18px;
    color: #233c50;
    font: 14px/1.5 system-ui, sans-serif;
}

#profileInfoPopup .profile-edit-notice {
    margin-bottom: 12px;
    padding: 8px 11px;
    border: 1px solid #d5eaf5;
    border-radius: 8px;
    background: #edf7fc;
    color: #39748d;
    font-size: 12px;
}

#profileInfoPopup .profile-validation-errors {
    margin-bottom: 12px;
    padding: 9px 11px;
    border: 1px solid #e4b7b7;
    border-radius: 8px;
    background: #fff5f5;
    color: #8d3030;
    font-size: 12px;
}

#profileInfoPopup .profile-validation-errors ul {
    margin: 5px 0 0;
    padding-left: 18px !important;
}

#profileInfoPopup .profile-edit-section {
    margin-bottom: 11px;
    padding: 13px 15px;
    border: 1px solid #e2eaf0;
    border-radius: 9px;
    background: #fff;
}

#profileInfoPopup .profile-edit-section:last-child {
    margin-bottom: 0;
}

#profileInfoPopup .profile-edit-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

#profileInfoPopup .profile-edit-section-heading h2 {
    margin: 0;
    color: #233c50;
    font-size: 14px;
    font-weight: 600;
}

#profileInfoPopup .profile-edit-section-heading > span {
    color: #6e8798;
    font-size: 11px;
}

#profileInfoPopup .profile-edit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 18px;
}

#profileInfoPopup .profile-edit-address-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 18px;
}

#profileInfoPopup .profile-edit-address-field {
    min-width: 0;
}

#profileInfoPopup .profile-edit-field {
    min-width: 0;
}

#profileInfoPopup .profile-edit-field-wide {
    grid-column: 1 / -1;
}

#profileInfoPopup .profile-edit-field label {
    display: block;
    margin-bottom: 2px;
    color: #6e8798;
    font-size: 11px;
    font-weight: 600;
}

#profileInfoPopup .profile-required-asterisk {
    color: #d93025;
}

#profileInfoPopup .profile-edit-field input,
#profileInfoPopup .profile-edit-field textarea {
    width: 100%;
    min-width: 0;
    padding: 6px 9px;
    border: 1px solid #cbdce6;
    border-radius: 7px;
    background: #fff;
    color: #294457;
    font: inherit;
}

#profileInfoPopup .profile-edit-field input:disabled {
    background: #f3f6f8;
    color: #718493;
    cursor: not-allowed;
}

#profileInfoPopup .profile-edit-field select {
    width: 100%;
    height: 36px;
    min-width: 0;
    padding: 6px 32px 6px 9px;
    border: 1px solid #cbdce6;
    border-radius: 7px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%236e8798' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 8px;
    color: #294457;
    font: inherit;
}

#profileInfoPopup .profile-edit-field textarea {
    min-height: 48px;
    resize: vertical;
}

#profileInfoPopup .profile-edit-field input:focus-visible,
#profileInfoPopup .profile-edit-field select:focus-visible,
#profileInfoPopup .profile-edit-field textarea:focus-visible {
    outline: 3px solid #65b8e4;
    outline-offset: 2px;
}

#profileInfoPopup .profile-availability-card {
    margin: 0;
    padding: 20px 22px;
    border: 1px solid #e5ebf0;
    border-radius: 10px;
    background: #fff;
}

#profileInfoPopup .profile-availability-card .p-appoitment {
    margin: 0 0 14px;
    color: #20384d;
    font-size: 17px;
}

#profileInfoPopup .profile-availability-card .p-availability {
    margin: 0 0 10px;
    color: #526779;
    font-size: 14px;
}
#profileInfoPopup .profile-info-container p{
    margin:0 !important;
}
#profileInfoPopup .profile-edit-caf-heading >h3 >b{
    font-size:14px;
}
#profileInfoPopup .profile-edit-caf-heading h3 {
    margin: 0 !important;
}
#profileInfoPopup .profile-edit-caf-label p{
    padding: 0 !important;
    display: inline;
}
#profileInfoPopup .profile-edit-caf-label .profile-required-asterisk {
    display: inline;
}
#profileInfoPopup .heading-value {
    font-weight:700;
    margin-left:5px;
}
.font-light-gray {
    color: #728695;
}
@media (max-width: 767px) {
    #profileInfoPopup .profile-caf-checkboxes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #profileInfoPopup .profile-edit-address-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #profileInfoPopup .profile-modal-dialog {
        width: auto !important;
        max-width: none;
        margin: 12px !important;
    }

    #profileInfoPopup .profile-modal-content {
        max-height: calc(100vh - 24px);
        border-radius: 10px;
    }

    #profileInfoPopup .profile-modal-identity {
        min-height: 82px;
        padding: 16px;
        gap: 12px;
    }

    #profileInfoPopup .profile-modal-avatar {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 15px;
    }

    #profileInfoPopup .profile-modal-identity-copy h3 {
        font-size: 16px;
    }

    #profileInfoPopup .profile-modal-tabs {
        padding: 0 12px;
        overflow-x: auto;
    }

        #profileInfoPopup .profile-modal-tabs .profile-tab-button {
            padding: 14px 10px;
            white-space: nowrap;
        }

    #profileInfoPopup .profile-info-container {
        padding: 16px 12px 22px;
    }

    #profileInfoPopup .profile-modal-footer {
        padding: 12px;
    }

    #profileInfoPopup .profile-edit-form {
        margin: -8px -12px;
        padding: 10px;
    }

    #profileInfoPopup .profile-edit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
    }

    #profileInfoPopup .profile-edit-caf-section .profile-edit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #profileInfoPopup .profile-display-section > .profile-payment-row > span,
    #profileInfoPopup .profile-caf-info > div {
        padding: 9px 10px;
    }

    #profileInfoPopup .profile-display-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 10px;
    }

    #profileInfoPopup .profile-caf-group-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 8px;
    }

    #profileInfoPopup .profile-display-section > .profile-payment-row,
    #profileInfoPopup .profile-caf-info {
        grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
    }
}

@media (max-width: 480px) {
    #profileInfoPopup .profile-caf-checkboxes {
        grid-template-columns: minmax(0, 1fr);
    }

    #profileInfoPopup .profile-edit-address-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    #profileInfoPopup .profile-edit-caf-section .profile-edit-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #profileInfoPopup .profile-display-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    #profileInfoPopup .profile-caf-group-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    #profileInfoPopup .profile-modal-tabs {
        padding: 0;
        gap: 0;
    }

    #profileInfoPopup .profile-modal-tabs .profile-tab-button {
        padding: 11px 8px;
        font-size: 11px;
    }

    #profileInfoPopup .profile-edit-button {
        padding: 10px 18px;
        font-size: 13px;
    }

    #profileInfoPopup .profile-modal-actions {
        gap: 5px;
    }

    #profileInfoPopup .profile-edit-cancel {
        padding: 7px 9px;
        font-size: 11px;
    }

    #profileInfoPopup .profile-modal-dialog {
        margin: 10px !important;
    }

    #profileInfoPopup .profile-modal-content {
        max-height: calc(100vh - 20px);
    }
}
