/**
 * Member profile and Paramètres: ultimate-member/profile/posts.php, partials/profile/*,
 * VRD_Users::render_account_photo(). Lived in style.css until it grew past 400 lines; every other
 * feature of the redesign already has its own sheet here (inc/redesign.php enqueues it).
 */

/* ==========================================================================
   Member profile and Paramètres (ultimate-member/profile/posts.php, partials/profile/*, VRD_Users::render_account_photo()),
   in maliste's palette: plum titles, berry accents, soft pink, warm borders.
   ========================================================================== */

#wrapper {
    --vrd-pf-plum: #320131;
    --vrd-pf-berry: var(--rd-berry, #B31E6F);
    --vrd-pf-pink: var(--rd-pink, #F9E9EE);
    --vrd-pf-cream: #FBF7F3;
    --vrd-pf-border: #EEE2DC;
    --vrd-pf-muted: #74636F;
}

/* Avatars: round everywhere (profile, list pages, menu, Paramètres) */
body #wrapper #page #single .um .um-profile-photo a.um-profile-photo-img,
body #wrapper .um-profile-photo a.um-profile-photo-img,
body #wrapper .vrd_list_author_avatar {
    overflow: hidden;
    border-radius: 50% !important;
    box-shadow: 0 0 0 4px #FFF, 0 0 0 5px var(--vrd-pf-border);
}

body #wrapper #page #single .um .um-profile-photo a.um-profile-photo-img img,
body #wrapper .um-profile-photo a.um-profile-photo-img img,
body #wrapper .vrd_list_author_avatar img,
body #wrapper img.um-avatar,
body #wrapper img.avatar {
    aspect-ratio: 1;
    border-radius: 50% !important;
    object-fit: cover;
}

/* Own profile: Mes listes · Listes suivies · Réservations · Archives, switched in place (assets/js/scripts.js) */
#wrapper .vrd_profile_tabs {
    justify-content: flex-start;
    gap: 36px;
    margin: 12px 0 32px;
    padding: 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--vrd-pf-border);
    scrollbar-width: none;
}

#wrapper .vrd_profile_tabs::-webkit-scrollbar {
    display: none;
}

#wrapper .vrd_profile_tabs .vrd_fui_tabs_link {
    position: relative;
    flex: none;
    padding: 14px 0;
    border-radius: 0;
    background: none;
    color: var(--vrd-pf-muted);
    font-weight: 500;
    white-space: nowrap;
    transition: color .15s ease;
}

#wrapper .vrd_profile_tabs .vrd_fui_tabs_link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--vrd-pf-berry);
    transform: scaleX(0);
    transition: transform .2s ease;
}

#wrapper .vrd_profile_tabs .vrd_fui_tabs_link:hover {
    color: var(--vrd-pf-plum);
}

#wrapper .vrd_profile_tabs .vrd_fui_tabs_link.is_active {
    background: none;
    color: var(--vrd-pf-plum);
    font-weight: 600;
}

#wrapper .vrd_profile_tabs .vrd_fui_tabs_link.is_active::after {
    transform: scaleX(1);
}

/* Notifications tab: the unread count, like the bell's */
#wrapper .vrd_profile_tabs .vrd_profile_tab_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 6px;
    background: var(--vrd-pf-berry);
    color: #FFF;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    vertical-align: 1px;
}

#wrapper .vrd_profile_panel {
    animation: vrd-pf-in .2s ease;
}

@keyframes vrd-pf-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
    #wrapper .vrd_profile_tabs {
        gap: 24px;
        margin-bottom: 24px;
    }
}

/* Empty tab or column (partials/profile/empty.php) */
#wrapper .vrd_profile_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 560px;
    margin: 8px auto 48px;
    padding: 44px 28px;
    border: 1px dashed #E3CFD6;
    border-radius: 20px;
    background: var(--vrd-pf-cream);
    text-align: center;
}

#wrapper .vrd_profile_empty_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--vrd-pf-pink);
    color: var(--vrd-pf-berry);
}

#wrapper .vrd_profile_empty_title {
    margin: 0 0 6px;
    color: var(--vrd-pf-plum);
    font-size: 19px;
    font-weight: 700;
}

#wrapper .vrd_profile_empty_text {
    max-width: 420px;
    margin: 0;
    color: var(--vrd-pf-muted);
    font-size: 15px;
    line-height: 1.55;
}

#wrapper .vrd_profile_empty_button {
    margin-top: 22px;
    padding: 12px 24px;
    border-radius: 8px;
    background: var(--vrd-pf-berry);
    color: #FFF;
    font-weight: 600;
    transition: background .15s ease;
}

#wrapper .vrd_profile_empty_button:hover {
    background: var(--rd-berry-dark, #8E1858);
    color: #FFF;
}

#wrapper .vrd_profile_empty.is_small {
    margin: 0;
    padding: 32px 20px;
}

#wrapper .vrd_profile_empty.is_small .vrd_profile_empty_icon {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
}

/* Notifications: the same white card as the bookings' columns (VRD_Notifications::render_page()) */
#wrapper .vrd_profile_panel .vrd_notifications_page {
    max-width: none;
    margin: 0 0 64px;
    padding: 24px;
    border: 1px solid var(--vrd-pf-border);
    border-radius: 20px;
    background: #FFF;
}

/* Phones: no frame around the page, only around each period's list (a box in a box ate the width) */
@media (max-width: 640px) {
    #wrapper .vrd_profile_panel .vrd_notifications_page {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }
}

#wrapper .vrd_profile_panel .vrd_notifications_page ul.vrd_notifications_items {
    border: 1px solid var(--vrd-pf-border);
    border-radius: 14px;
    background: #FFF;
}

/* Between the notifications shown (a filter hides the others). On the line, not its link: the photo and the
   buttons sit under the link (VRD_Notifications::render_list()) */
#wrapper .vrd_profile_panel .vrd_notifications_page li.vrd_notifications_item > a {
    border-top: 0;
}

#wrapper .vrd_profile_panel .vrd_notifications_page li.vrd_notifications_item:not([hidden]) ~ li.vrd_notifications_item:not([hidden]) {
    border-top: 1px solid var(--vrd-pf-border);
}

/* Filters (VRD_Notifications::render_filters()): small rounded rectangles, like the tab badge */
#wrapper .vrd_notifications_filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

#wrapper .vrd_notifications_filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 6px 14px;
    border: 1px solid var(--vrd-pf-border);
    border-radius: 8px;
    background: #FFF;
    color: var(--vrd-pf-plum);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

#wrapper .vrd_notifications_filter:hover {
    border-color: var(--vrd-pf-berry);
}

#wrapper .vrd_notifications_filter[aria-pressed="true"] {
    border-color: var(--vrd-pf-berry);
    background: var(--vrd-pf-berry);
    color: #FFF;
    font-weight: 600;
}

#wrapper .vrd_notifications_filter_count {
    min-width: 22px;
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--vrd-pf-cream);
    color: var(--vrd-pf-muted);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* A darker veil than the filter's pink (a white one made the white number hard to read) */
#wrapper .vrd_notifications_filter[aria-pressed="true"] .vrd_notifications_filter_count {
    background: rgba(0, 0, 0, .2);
    color: #FFF;
}

#wrapper .vrd_notifications_filter_empty {
    margin: 0;
    padding: 32px 16px;
    color: var(--vrd-pf-muted);
    text-align: center;
}

@media (max-width: 640px) {
    #wrapper .vrd_notifications_filters {
        flex-wrap: nowrap;
        margin: 4px 0 16px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    #wrapper .vrd_notifications_filter {
        flex: none;
    }
}

/* Periods: a small title above each period's list */
#wrapper .vrd_profile_panel .vrd_notifications_group + .vrd_notifications_group {
    margin-top: 24px;
}

#wrapper .vrd_profile_panel .vrd_notifications_page .vrd_notifications_group_title {
    margin: 0 0 10px 4px;
    color: var(--vrd-pf-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.4;
    text-transform: uppercase;
}

#wrapper .vrd_profile_panel .vrd_notifications_page li.vrd_notifications_item[hidden],
#wrapper .vrd_profile_panel .vrd_notifications_page .vrd_notifications_group[hidden] {
    display: none;
}

#wrapper .vrd_profile_panel .vrd_notifications_page li.vrd_notifications_item > a,
#wrapper .vrd_profile_panel .vrd_notifications_page li.vrd_notifications_item.is_unread > a {
    background: none;
    box-shadow: none;
}

#wrapper .vrd_profile_panel .vrd_notifications_page li.vrd_notifications_item:hover {
    background: var(--vrd-pf-cream);
}

/* No longer sold: an amber bar on the left (the unread one wins) */
#wrapper .vrd_profile_panel .vrd_notifications_page li.vrd_notifications_item.is_warning {
    background: #FFFAF1;
    box-shadow: inset 4px 0 0 #E8A33D;
}

/* Unread: a tinted line with a bar of the accent colour on its left */
#wrapper .vrd_profile_panel .vrd_notifications_page li.vrd_notifications_item.is_unread {
    background: #FDF3F7;
    box-shadow: inset 4px 0 0 var(--vrd-pf-berry);
}

#wrapper .vrd_profile_panel .vrd_notifications_page li.vrd_notifications_item.is_warning .vrd_notifications_item_text {
    color: #6B4300;
}

/* The list of a short text, next to the tags (or on the line of the date without tags) */
#wrapper .vrd_profile_panel .vrd_notifications_item_list {
    color: var(--vrd-pf-plum);
    font-weight: 500;
}

#wrapper .vrd_profile_panel .vrd_notifications_item_tags {
    align-items: center;
}

#wrapper .vrd_profile_panel .vrd_notifications_item_tags .vrd_notifications_item_list {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    min-width: 0;
    margin-left: 4px;
    font-size: 14px;
    line-height: 1.4;
}

/* Profile > Notifications: the line is a block, not one link (VRD_Notifications::render_list()). Its layout is the
   link's of design.css; the text's link covers the whole line, and the other links (list, owner, buttons, photo)
   sit above it */
#wrapper .vrd_profile_panel .vrd_notifications_page li.vrd_notifications_item {
    position: relative;
}

#wrapper .vrd_profile_panel .vrd_notifications_item_main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    color: #333;
    font-size: 14px;
}

#wrapper .vrd_profile_panel .vrd_notifications_item_main a {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: inherit;
    text-decoration: none;
}

#wrapper .vrd_profile_panel .vrd_notifications_item_main a.vrd_notifications_item_link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

#wrapper .vrd_profile_panel .vrd_notifications_item_main a.vrd_notifications_list_name,
#wrapper .vrd_profile_panel .vrd_notifications_item_main a.vrd_notifications_list_person,
#wrapper .vrd_profile_panel .vrd_notifications_item_foot,
#wrapper .vrd_profile_panel .vrd_notifications_message {
    position: relative;
    z-index: 2;
}

/* The list and its owner look like what they are, small buttons: a frame, an icon, a chevron, the accent colour
   on hover */
#wrapper .vrd_profile_panel .vrd_notifications_item_main a.vrd_notifications_list_name,
#wrapper .vrd_profile_panel .vrd_notifications_item_main a.vrd_notifications_list_person {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px 2px 8px;
    border: 1px solid var(--vrd-pf-border);
    border-radius: 6px;
    background: #FFF;
    line-height: 1.45;
    white-space: nowrap;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

/* A long list name stays in the card, ending with « … » (its text in a span: the ellipsis needs a block of its own) */
#wrapper .vrd_profile_panel .vrd_notifications_item_main :is(a.vrd_notifications_list_name, a.vrd_notifications_list_person) {
    max-width: 100%;
    box-sizing: border-box;
    vertical-align: middle;
}

#wrapper .vrd_profile_panel .vrd_notifications_item_main :is(a.vrd_notifications_list_name, a.vrd_notifications_list_person) > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

#wrapper .vrd_profile_panel .vrd_notifications_item_main :is(a.vrd_notifications_list_name, a.vrd_notifications_list_person) > i {
    flex: none;
}

#wrapper .vrd_profile_panel .vrd_notifications_item_main a.vrd_notifications_list_name::after,
#wrapper .vrd_profile_panel .vrd_notifications_item_main a.vrd_notifications_list_person::after {
    flex: none;
    content: "";
    width: 5px;
    height: 5px;
    margin-left: 2px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    opacity: .55;
    transform: rotate(45deg);
}

#wrapper .vrd_profile_panel .vrd_notifications_item_main a.vrd_notifications_list_name:hover,
#wrapper .vrd_profile_panel .vrd_notifications_item_main a.vrd_notifications_list_person:hover {
    border-color: var(--vrd-pf-berry);
    background: var(--vrd-pf-pink);
    color: var(--vrd-pf-berry);
}

#wrapper .vrd_profile_panel .vrd_notifications_item_main a.vrd_notifications_list_person {
    padding: 1px 8px 1px 7px;
    color: var(--vrd-pf-muted);
    font-size: 13px;
    font-weight: 600;
}

/* Between the buttons and the photo, a click still opens the notification */
#wrapper .vrd_profile_panel .vrd_notifications_item_foot {
    pointer-events: none;
}

#wrapper .vrd_profile_panel .vrd_notifications_item_foot > * {
    pointer-events: auto;
}

/* The list: its name in bold, with the list icon in the accent colour */
#wrapper .vrd_profile_panel .vrd_notifications_item_main a.vrd_notifications_list_name {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    color: var(--vrd-pf-plum);
    font-size: 14px;
    font-weight: 700;
}

#wrapper .vrd_profile_panel .vrd_notifications_list_name i,
#wrapper .vrd_profile_panel .vrd_notifications_list_owner i {
    font-size: 14px;
}

#wrapper .vrd_profile_panel .vrd_notifications_list_name i {
    color: var(--vrd-pf-berry);
}

/* Its owner (a relative's list): lighter, with the person icon, so it is never read as the list's name. The words
   before the list's name (« sur la liste ») just as light. */
#wrapper .vrd_profile_panel .vrd_notifications_list_lead,
#wrapper .vrd_profile_panel .vrd_notifications_list_owner {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: var(--vrd-pf-muted);
    font-size: 13px;
    font-weight: 400;
}

#wrapper .vrd_profile_panel .vrd_notifications_list_owner strong {
    color: var(--vrd-pf-muted);
    font-weight: 600;
}

/* « Sous le texte sur ordinateur, à droite sur téléphone » (notifications_photo_position 'adaptive') */
#wrapper .vrd_profile_panel .vrd_notifications_page img.vrd_notifications_item_image.is_phone_only {
    display: none;
}

@media (max-width: 640px) {
    #wrapper .vrd_profile_panel .vrd_notifications_page img.vrd_notifications_item_image.is_phone_only {
        display: block;
    }

    #wrapper .vrd_profile_panel .vrd_notifications_item a.vrd_notifications_item_photo.is_computer_only {
        display: none;
    }

    #wrapper .vrd_profile_panel .vrd_notifications_item.has_photo_adaptive .vrd_notifications_item_foot.is_photo_only {
        display: none;
    }
}

/* Under the text: the wish's photo (notifications_photo_position) and the buttons, lined up with the text */
#wrapper .vrd_profile_panel .vrd_notifications_item_foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: -6px;
    padding: 0 16px 14px 68px;
}

/* Undo the notification link's rules (design.css .vrd_notifications_item a) on the photo */
#wrapper .vrd_profile_panel .vrd_notifications_item a.vrd_notifications_item_photo {
    display: block;
    flex: none;
    padding: 0;
    border: 0;
    background: none;
    line-height: 0;
}

#wrapper .vrd_profile_panel .vrd_notifications_page .vrd_notifications_item_photo img.vrd_notifications_item_image {
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 10px;
}

/* The whole photo, never cropped: fitted in its square on white, a thin line around */
#wrapper .vrd_profile_panel .vrd_notifications_page img.vrd_notifications_item_image {
    box-sizing: border-box;
    padding: 3px;
    border: 1px solid var(--vrd-pf-border);
    background: #FFF;
    object-fit: contain;
}

#wrapper .vrd_profile_panel .vrd_notifications_item_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#wrapper .vrd_profile_panel .vrd_notifications_action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid var(--vrd-pf-border);
    border-radius: 8px;
    background: #FFF;
    color: var(--vrd-pf-plum);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}

#wrapper .vrd_profile_panel .vrd_notifications_action:hover,
#wrapper .vrd_profile_panel .vrd_notifications_action[aria-expanded="true"] {
    border-color: var(--vrd-pf-berry);
    color: var(--vrd-pf-berry);
}

#wrapper .vrd_profile_panel .vrd_notifications_action i {
    font-size: 15px;
}

/* The message left with a booking, opened by « Voir le message » */
#wrapper .vrd_profile_panel .vrd_notifications_message {
    margin: 0 16px 14px 68px;
    padding: 12px 14px;
    border-left: 3px solid var(--vrd-pf-berry);
    border-radius: 8px;
    background: #FFF;
    color: var(--vrd-pf-plum);
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
}

#wrapper .vrd_profile_panel .vrd_notifications_message[hidden] {
    display: none;
}

@media (max-width: 640px) {
    #wrapper .vrd_profile_panel .vrd_notifications_item_foot {
        padding-right: 12px;
    }

    #wrapper .vrd_profile_panel .vrd_notifications_message {
        margin-right: 12px;
    }
}

#wrapper .vrd_profile_panel .vrd_notifications_item_date {
    color: var(--vrd-pf-muted);
}

/* The type of each notification, as a small coloured tag (notifications_tag_*), and « Nouveau » */
#wrapper .vrd_notifications_item_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#wrapper .vrd_notifications_tag,
#wrapper .vrd_notifications_new {
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

#wrapper .vrd_notifications_tag.is-booked {
    background: var(--vrd-pf-pink);
    color: var(--vrd-pf-berry);
}

#wrapper .vrd_notifications_tag.is-made {
    background: #EFE7F4;
    color: #5B2E73;
}

#wrapper .vrd_notifications_tag.is-followed {
    background: #E2F1F0;
    color: #22605D;
}

#wrapper .vrd_notifications_tag.is-cancelled {
    background: #F1EEEC;
    color: #5E5359;
}

#wrapper .vrd_notifications_tag.is-unavailable {
    background: #FCEFD9;
    color: #7A4E00;
}

#wrapper .vrd_notifications_tag.is-wishes {
    background: #E5F3E8;
    color: #2A6338;
}

#wrapper .vrd_notifications_tag.is-reminder {
    background: #E6EEFA;
    color: #2A5592;
}

#wrapper .vrd_notifications_new {
    background: var(--vrd-pf-berry);
    color: #FFF;
}

/* Réservations: on my lists | made by me, side by side */
#wrapper .vrd_profile_panel .vrd_bookings_page {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    max-width: none;
    margin: 0 0 64px;
}

#wrapper .vrd_profile_panel .vrd_bookings_section {
    margin: 0;
    padding: 24px;
    border: 1px solid var(--vrd-pf-border);
    border-radius: 20px;
    background: #FFF;
}

#wrapper .vrd_profile_panel .vrd_bookings_title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--vrd-pf-plum);
    font-size: 20px;
}

#wrapper .vrd_bookings_count {
    min-width: 26px;
    padding: 2px 9px;
    border-radius: 6px;
    background: var(--vrd-pf-pink);
    color: var(--vrd-pf-berry);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

#wrapper .vrd_profile_panel .vrd_bookings_subtitle {
    margin-bottom: 20px;
    color: var(--vrd-pf-muted);
    font-size: 14px;
}

#wrapper .vrd_profile_panel ul.vrd_bookings_items {
    margin: 0;
    padding: 0;
    border-color: var(--vrd-pf-border);
    border-radius: 14px;
}

/* The list of a booking: a small tag above the wish */
#wrapper .vrd_profile_panel .vrd_bookings_item_list {
    align-self: flex-start;
    max-width: 100%;
    overflow: hidden;
    padding: 2px 10px;
    border-radius: 6px;
    background: var(--vrd-pf-pink);
    color: var(--vrd-pf-berry);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#wrapper .vrd_profile_panel .vrd_bookings_item_list:hover {
    background: #F3D6E0;
}

/* The older bookings, behind « Voir plus » */
#wrapper .vrd_bookings_items.is_folded .vrd_bookings_item.is_extra {
    display: none;
}

#wrapper .vrd_bookings_more {
    display: block;
    width: 100%;
    margin: 14px 0 0;
    padding: 11px 16px;
    border: 1px solid var(--vrd-pf-border);
    border-radius: 8px;
    background: #FFF;
    color: var(--vrd-pf-plum);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

#wrapper .vrd_bookings_more:hover,
#wrapper .vrd_bookings_more:focus-visible {
    border-color: var(--vrd-pf-berry);
    background: var(--vrd-pf-pink);
}

#wrapper .vrd_profile_panel .vrd_bookings_item + .vrd_bookings_item {
    border-top-color: var(--vrd-pf-border);
}

#wrapper .vrd_profile_panel .vrd_bookings_item_image {
    flex: none;
}

#wrapper .vrd_profile_panel .vrd_bookings_item_image img {
    border-radius: 10px;
}

/* A wish without a photo: the gift on a plain tile (as the notifications' anonymous avatar) */
#wrapper .vrd_profile_panel .vrd_bookings_item_image.is_empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: #fdf0f6;
    color: var(--rd-berry, #B31E6F);
    font-size: 26px;
    text-decoration: none;
}

#wrapper .vrd_profile_panel h3.vrd_bookings_group_title a {
    color: var(--vrd-pf-plum);
}

@media (max-width: 900px) {
    #wrapper .vrd_profile_panel .vrd_bookings_page {
        grid-template-columns: minmax(0, 1fr);
    }

    #wrapper .vrd_profile_panel .vrd_bookings_section {
        padding: 18px;
    }
}

/* Paramètres > Compte: the profile photo, a true circle, on a line of its own above the fields */
#wrapper .vrd_account_photo {
    display: flex;
    flex: 0 0 100%;
    grid-column: 1 / -1;
    align-items: center;
    gap: 28px;
    width: 100%;
    margin: 0 0 32px;
}

#wrapper .um .vrd_account_photo .vrd_account_photo_pick {
    display: flex;
    flex: 0 0 132px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 132px !important;
    min-width: 132px;
    max-width: 132px;
    height: 132px !important;
    min-height: 132px;
    aspect-ratio: 1;
    margin: 0;
    padding: 14px;
    overflow: hidden;
    border: 2px dashed #E3CFD6;
    border-radius: 50% !important;
    background: var(--vrd-pf-cream);
    box-shadow: none;
    color: var(--vrd-pf-muted);
    font: inherit;
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

/* It carries UM's .um-profile-photo, which UM's account sheet hangs out of the flow on a phone: over the « Compte »
   header then. Kept in its line. */
#wrapper .um .vrd_account_photo .vrd_account_photo_pick.um-profile-photo {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

#wrapper .um .vrd_account_photo .vrd_account_photo_pick:hover,
#wrapper .um .vrd_account_photo .vrd_account_photo_pick:focus-visible {
    border-color: var(--vrd-pf-berry);
    background: var(--vrd-pf-pink);
}

#wrapper .vrd_account_photo_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

#wrapper .vrd_account_photo_empty .lni {
    color: var(--vrd-pf-berry);
    font-size: 22px;
}

#wrapper .vrd_account_photo_empty br {
    display: none;
}

#wrapper .vrd_account_photo_pick strong {
    color: var(--vrd-pf-plum);
    font-size: 13px;
}

#wrapper .vrd_account_photo .um-profile-photo-img {
    display: none;
    width: 100%;
    height: 100%;
}

#wrapper .vrd_account_photo .um-profile-photo-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

#wrapper .um .vrd_account_photo.has_photo .vrd_account_photo_pick {
    padding: 0;
    border: 0;
    box-shadow: 0 0 0 4px #FFF, 0 0 0 5px var(--vrd-pf-border);
}

#wrapper .vrd_account_photo.has_photo .um-profile-photo-img {
    display: block;
}

#wrapper .vrd_account_photo.has_photo .vrd_account_photo_empty {
    display: none;
}

#wrapper .vrd_account_photo_actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

#wrapper .um .vrd_account_photo_actions button {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--vrd-pf-berry);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

#wrapper .um .vrd_account_photo_actions .vrd_account_photo_remove {
    color: var(--vrd-pf-muted);
    font-weight: 500;
}

#wrapper .vrd_account_photo:not(.has_photo) .vrd_account_photo_change,
#wrapper .vrd_account_photo:not(.has_photo) .vrd_account_photo_remove {
    display: none;
}
