:root {
    --purpleMain: #0B1F3B;
    --purpleBg: #51277233;
    --secondBackground: #ffffff;
    --thirdBackground: #f7f8fa;
    --active-bg: #FBBF24;
    --Primary100: #E0E7FF;
    --active-bg-soft: rgba(11, 31, 59, 0.2);
    --Neutral100: #F5F5F5;
    --Neutral200: #E5E5E5;
    --Neutral300: #D4D4D4;
    --Neutral400: #A3A3A3;
    --Neutral500: #737373;
    --Neutral600: #525252;
    --Neutral700: #404040;
    --Neutral800: #262626;
    --Success100: #DCFCE7;
    --Success500: rgba(34, 197, 94, 1);
    --Destructive100: #FEE2E2;
    --Destructive500: #EF4444;
    --Warning100: #FEF3C7;
}

.toastify.success {
    background: var(--Success500) !important;
    border-radius: 6px;
    font-weight: 600;
}

.toastify.error {
    background: var(--Destructive500);
    border-radius: 6px;
    font-weight: 600;
}


/* Wrapper */
.wp_maf_user_details {
    position: relative;
    cursor: pointer;
}

/* Dropdown */
.wp_maf_mvp_profile_dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 180px;
    background: #fff;
    border-radius: 12px;
    padding: 0px 16px;
    display: none;
    z-index: 9999;
    overflow: hidden;
    box-shadow: 0px 3px 6px 0px #0000001A;
}

.wp_maf_mvp_profile_dropdown a {
    display: block;
    padding: 12px 0px;
    text-decoration: none !important;
    color: var(--Neutral800) !important;
    font-size: 14px;
    font-weight: 400 !important;
    transition: background 0.2s;
}

.wp_maf_mvp_profile_dropdown a:not(:last-child) {
    border-bottom: 1px solid var(--Neutral200);
}

#wp_maf_mvp_confirm_overlay,
#wp_maf_mvp_confirm_overlay_shelter {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.wp_maf_mvp_confirm_hidden {
    display: none !important;
}

.wp_maf_mvp_confirm_modal {
    background: #fff;
    padding: 20px;
    width: 100vw;
    max-width: 500px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.wp_maf_mvp_confirm_modal_shelter {
    background: #fff;
    padding: 40px;
    width: 100vw;
    max-width: 550px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#wp_maf_mvp_confirm_message {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--Neutral800);
}

.wp_maf_mvp_confirm_actions {
    margin-top: 30px;
    border-top: 1px solid var(--Neutral100);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.wp_maf_mvp_btn_danger {
    background: var(--Destructive500) !important;
    border-color: var(--Destructive500) !important;
    color: #fff;
}

#wp_maf_mvp_confirm_cancel {
    background: var(--purpleMain) !important;
    border-color: var(--purpleMain) !important;
    border: none !important;
}













.wp_maf_dashboard_parent {
    display: flex;
    flex-direction: row;
    margin: 0px;
}

.wp_maf_sidebar_parent {
    width: 20%;
    display: flex;
}

.wp_maf_content_parent {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: baseline;

}

.wp_maf_dashboard_header {
    padding: 14px 1rem;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;

}

.wp_maf_page_title_header {
    color: var(--purpleMain);
    font-size: 24px !important;
    line-height: 28px !important;
    font-family: var(--e-global-typography-primary-font-family);
    font-weight: 400;
    text-transform: uppercase;
    padding-left: 16px;
}

.maf_container {
    display: flex;
    flex-direction: row;
}

.align_items_center {
    align-items: center;
}

.maf_search_input_parent {
    position: relative;
}

.maf_search_input_parent input {
    padding-left: 36px !important;
    border-radius: 8px !important;
    border-color: #6666664f !important;

}

.maf_search_input_parent input:active,
.maf_search_input_parent input:focus {
    outline: none !important;
}

.wp_maf_search_icon {
    position: absolute;
    top: 0.7em;
    left: 10px;
}

.gap16 {
    gap: 16px;
}

.gap12 {
    gap: 12px;
}

.wp_maf_spacer {
    width: 2px;
    min-height: 34px;
    background-color: #ffffff;
}

.flex_col {
    flex-direction: column;
}

.maf_user_image img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
}

.no_margin {
    margin: 0 !important;
}

.maf_username,
.maf_username:hover {
    line-height: 24px;
    font-size: 14px;
    color: var(--Neutral800);
}

.justify_content_space_around {
    justify-content: space-around;
}

.wp_maf_notification_container {
    cursor: pointer;
}

.wp_maf_content_container {
    background-color: var(--thirdBackground);
    padding: 32px;
    /* width: calc(100% - 16px); */
    width: 100%;
}

.maf_dashboard_content {
    text-align: center;
}

.maf_my_pets_container {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.maf_my_pets_container>* {
    flex: 0 0 32%;
}

.maf_my_pets_container:has(> :only-child)>* {
    flex: 0 0 32%;
}


.maf_my_pets_container:has(> :nth-child(2):last-child)>* {
    flex: 0 0 48%;
}

.maf_wrapper_heading {
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: var(--Neutral800);
    text-align: left;
    margin: 0;
}

.maf_pet_banner {
    background-color: var(--Neutral100);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--Neutral300);
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    cursor: pointer;
}

.wp_maf_my_pet_details {
    width: 100%;
    background-color: var(--Neutral100);
    padding: 24px;
    gap: 24px;
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wp_maf_my_pet_details .maf_pet_data {
    width: 100%;
    justify-content: space-between;
}

.wp_maf_my_pet_details .wp_maf_pet_image_wrapper {
    width: 144px;
    height: 144px;
}

.wp_maf_my_pet_details .wp_maf_pet_name {
    font-size: 26px !important;
    line-height: 24px;
    font-weight: 900 !important;
    color: var(--Neutral800) !important;
}

.wp_maf_my_pet_details .wp_maf_pet_meta {
    margin: 0px !important;
}

.wp_maf_my_pet_details .wp_maf_pet_meta p,
.wp_maf_my_pet_details .maf_pet_adopted {
    font-size: 14px !important;
    line-height: 24px !important;
    font-weight: 500 !important;
    color: var(--Neutral600) !important;
}

.wp_maf_my_pet_details .wp_maf_dot_spacer {
    background-color: var(--Neutral600) !important;
}

.wp_maf_my_pet_details .wp_maf_pet_details_wrapper {
    gap: 8px
}

.wp_maf_my_pet_details .wp_maf_pet_tag_wrapper {
    margin-top: 4px !important;
}


.wp_maf_my_pet_details .wp_maf_send_perks_btn {
    color: #ffffff !important;
    background-color: var(--purpleMain) !important;
    padding: 12px 63px !important;
}

.maf_my_pet_gallery {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
}


.maf_my_pet_gallery:has(> :only-child) {
    grid-template-columns: 30%;
}


.maf_my_pet_gallery:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}


.wp_maf_my_pet_details .maf_pet_description {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--Neutral800);
}

.wp_maf_my_pet_gallery_item img {
    height: -webkit-fill-available !important;
    object-fit: cover !important;
    border-radius: 16px !important;
}

.maf_pet_banner.active {
    border: 1px solid var(--purpleMain);
    background-color: var(--purpleMain);
    color: #ffffff !important;
}

.maf_pet_banner.active * {
    color: #ffffff !important;
}


.wp_maf_pet_image_wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wp_maf_pet_image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 8px !important;
}

.wp_maf_pet_details_wrapper {
    flex-direction: column;
    align-items: flex-start;
}

.wp_maf_pet_name {
    color: var(--Neutral800) !important;
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: var(--e-global-typography-text-font-family) !important;
}

.wp_maf_pet_meta {
    color: var(--Neutral600) !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;

}

.wp_maf_pet_meta p {
    margin: 0 !important;
    font-size: 13px;
    font-weight: 500 !important;
}

.wp_maf_dot_spacer {
    width: 4px;
    background: white;
    height: 4px;
    border-radius: 50%;
}

.maf_pet_adopted {
    color: #ffffff;
    font-size: 14px !important;
}

.gap20 {
    gap: 20px
}

.maf_wp_banner_background {
    position: absolute;
    bottom: -8px;
    right: 24px;
}

.wp_maf_pet_tag_wrapper {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 12px;
}

.wp_maf_pet_tag_btn {
    background-color: #ffffff !important;
    background-image: none !important;
    padding: 4px 10px !important;
    border-radius: 40px !important;
    border: none !important;
    color: var(--purpleMain) !important;
    font-family: var(--e-global-typography-text-font-family) !important;
    font-weight: 500 !important;
    text-transform: capitalize !important;
    font-size: 12px !important;
    line-height: 24px !important;
}

.wp_maf_send_perks_btn {
    background-color: #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    border: none !important;
    color: var(--purpleMain) !important;
    font-weight: 500 !important;
    font-family: var(--e-global-typography-primary-font-family) !important;
    text-transform: uppercase !important;
    font-size: 20px !important;
    line-height: 24px !important;
    display: flex;
    flex-direction: row;
    gap: 8px
}

.maf_pet_detail_cards {
    margin-top: 24px;
    width: 100%;
}

.maf_send_perks_cards {
    border-radius: 12px;
    flex-direction: row;
    flex: 1;
    gap: 20px;
}

.maf_send_perks_card {
    background: var(--Neutral100);
    border-radius: 12px;
    padding: 24px;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}


.maf_send_perks_cards_wrapper {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    width: 100%;
}

.maf_pet_detail_card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.maf_card_logo_wrapper {
    justify-content: space-between;
}

.maf_card_logo {
    border-radius: 8px;
    padding: 8px;
}

.maf_daily_steps_card .maf_card_logo {
    background-color: rgba(224, 231, 255, 1);
}

.maf_meals_today_card .maf_card_logo {
    background-color: #DCFCE7;
}

.maf_playtime_card .maf_card_logo {
    background-color: #EDE9FE;
}

.maf_health_score_card .maf_card_logo {
    background-color: #FEF3C7;
}

.maf_interactive_toy_card .maf_card_logo {
    background-color: #DCFCE7;
}

.maf_premium_treats_card .maf_card_logo {
    background-color: #E0E7FF;
}

.maf_spa_day_card .maf_card_logo {
    background-color: #EDE9FE;
}

.maf_cozy_bed_updated_card .maf_card_logo {
    background-color: #FEF3C7;
}

.maf_send_perks_price {
    color: var(--purpleMain);
    font-size: 24px;
    font-weight: 500;
}


.maf_progress_indicator.success {
    color: var(--Success500)
}

.maf_card_heading,
.maf_card_sub_heading {
    font-size: 14px;
    font-weight: 500;
    color: var(--Neutral600);
}

.maf_card_value {
    font-size: 26px;
    font-weight: 500;
    color: var(--Neutral800);
}

.maf_send_perks_card .maf_card_value {
    font-size: 18px;
    font-weight: 500;
    color: var(--Neutral800);
}

.maf_send_perks_card .maf_card_sub_heading {
    font-size: 12px;
    font-weight: 500;
    color: var(--Neutral600);
}

.text_left {
    text-align: left;
}

.maf_send_perks_heading,
.maf_pet_media_heading,
.maf_pet_weekly_updates_heading {
    font-weight: 700;
    font-size: 20px;
    color: var(--Neutral800);
    line-height: 24px;
}

.maf_send_perks_subheading {
    font-weight: 500;
    font-size: 14px;
    color: var(--Neutral600);
    line-height: 18px;
    margin-top: 12px;
    margin-bottom: 16px;
}

.maf_pet_media_updates {
    width: 100%;
    gap: 24px;
    margin-top: 24px;
}

.maf_pet_media_wrapper,
.maf_pet_weekly_updates_wrapper {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
}

.maf_pet_media_wrapper {
    width: 65%;
    flex-direction: column;
}

.maf_pet_weekly_update {
    gap: 8px;
    padding: 16px 0px;
}

.maf_pet_weekly_update:not(:last-child) {
    border-bottom: 1px solid var(--Neutral200);
}


.maf_pet_weekly_updates_wrapper {
    width: 35%;
    flex-direction: column;
}

.maf_pet_weekly_update_details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: start;
}

.maf_pet_weekly_updates_container {
    /* margin-top: 16px; */
    flex-direction: column;
}

.maf_pet_media_heading,
.maf_pet_weekly_updates_heading {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    flex: 1;
}

.maf_pet_media_heading a,
.maf_pet_weekly_updates_heading a {
    color: var(--purpleMain) !important;
    font-size: 14px;
    line-height: 24px;
}

.maf_pet_weekly_update_icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px;
    border-radius: 50%;
    height: 32px;
    width: 32px;
}

.maf_icon_type_vaccination_updates,
.maf_icon_type_vaccination {
    background-color: var(--Success100);
}

.maf_icon_type_grooming_updates,
.maf_icon_type_grooming {
    background-color: var(--Primary100);
}

.maf_icon_type_training_updates,
.maf_icon_type_training {
    background-color: var(--Destructive100);
}

.maf_icon_type_playdate_updates,
.maf_icon_type_playdate {
    background-color: var(--Warning100);
}

.maf_pet_weekly_update_heading {
    font-size: 16px;
    font-weight: 500;
    color: var(--Neutral800);
    line-height: 24px;
}

.maf_pet_weekly_update_subheading {
    font-size: 12px;
    font-weight: 500;
    color: var(--Neutral600);
    line-height: 18px;

}

.maf_pet_weekly_update_datetime {
    font-size: 12px;
    font-weight: 500;
    color: var(--Neutral400);
    line-height: 18px;
}

.maf_gallery_grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: auto;
    margin-top: 16px;
}


.maf_gallery_item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.maf_gallery_item img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.maf_gallery_item:nth-child(1),
.maf_gallery_item:nth-child(6) {
    grid-row: span 2;
    grid-column: 1 / 2;
    min-height: 380px !important;
}

/* 1 image */
.maf_gallery_grid:has(.maf_gallery_item:nth-child(1):last-child) {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}

/* 2 images */
.maf_gallery_grid:has(.maf_gallery_item:nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
}

.maf_gallery_grid:has(.maf_gallery_item:nth-child(2):last-child) .maf_gallery_item:nth-child(1) {
    grid-row: auto;
}

/* 3 images */
.maf_gallery_grid:has(.maf_gallery_item:nth-child(3):last-child) {
    grid-template-columns: 2fr 1fr;
}

/* 4 images */
.maf_gallery_grid:has(.maf_gallery_item:nth-child(4):last-child) {
    grid-template-columns: 2fr 1fr 1fr;
}


.maf_my_pets_content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: start;
}


.maf-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.maf-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.maf-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 650px;
    min-height: 35vh;
    margin: 10vh auto;
    padding: 24px;
    border-radius: 12px;
    animation: mafFadeIn 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.maf-modal-content h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.maf_close_btn {
    border: none !important;
    background: none !important;
    font-size: 56px !important;
    cursor: pointer !important;
    color: var(--purpleMain) !important;
    padding: 0 !important;
}

@keyframes mafFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.maf-modal-open {
    overflow: hidden;
}

.maf-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: end;
}

.maf-upload-status {
    margin-top: 12px;
    font-size: 14px;
}

.maf_notice p {
    padding: 6px 12px 6px 12px;
    display: flex;
    color: var(--Neutral600) !important;
    justify-content: space-between;
}

.maf_notice button {
    border: unset !important;
    color: var(--Neutral600) !important;
    padding: 0 !important;
    background: unset !important;
    font-family: sans-serif !important;
    font-size: 16px !important;
}

.maf_notice.notice-success {
    background-color: var(--Success100);
}

.maf_notice.notice-error {
    background-color: var(--Destructive100);
}

.maf-modal-actions button {
    border: none !important;
}

.maf_delete_pet_media_form {
    position: absolute;
    top: 7%;
    right: 7%;
    opacity: 0;
    transition: opacity 0.3s ease;

}

.wp_maf_no_data_found {
    font-weight: 500;
    font-size: 16px;
    color: var(--Neutral600);
    line-height: 24px;
    margin: 16px 0px;
    text-align: left;
}

.wp_maf_my_pet_gallery_item {
    position: relative;
}

.wp_maf_my_pet_gallery_item:hover .maf_delete_pet_media_form {
    opacity: 1;
}

.maf_pet_weekly_update {
    position: relative;
}

.maf_delete_pet_updates_form {
    position: absolute;
    top: 7%;
    right: 7%;
    opacity: 0;
    transition: opacity 0.3s ease;

}

.maf_pet_weekly_update:hover .maf_delete_pet_updates_form {
    opacity: 1;
}

.wp_maf_remove_pet_media_trigger,
.wp_maf_remove_pet_update_trigger {
    cursor: pointer;
    background: var(--Destructive500);
    border-radius: 50%;
    height: 42px;
    width: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
}