@media screen and (min-width: 481px){

    .fillmy-content-wrapper { 
        width: 100vw;
        height: auto;
        min-height: 100vh;
        max-height: none;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    .fillmy-content-holder { 
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    #fillmy-svg-mount {
        width: 100vw;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
    }
    
    #fillmy-svg-mount svg {
        width: 100%;
        height: 100%;
    }

    [id^="label-"] {
        visibility: hidden;
    }

    .fillmy-shape-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }

    .fillmy-overlay-wrapper { 
        position: fixed;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 2;
        top: 82px;
        left: 32px;
        bottom: 32px;
        width: 400px;
        overflow-y: auto;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        touch-action: none;
    }

    .fillmy-org-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        background-color: var(--white);
        border: solid var(--purple-200) 1px;
        border-radius: 12px;
        padding: 20px 24px 16px 24px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .fillmy-org-middle-content {
        width: 100%;
        display: flex;
        gap: 12px;
        flex-direction: column;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .fillmy-page-org-logo-holder { 
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        border: 1px solid var(--purple-200);
        border-radius: 10px;
    }

    .fillmy-page-org-logo-holder.about-modal { 
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        border: 1px solid var(--purple-200);
        border-radius: 10px;
    }

    .fillmy-org-lineitems-holder { 
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        column-gap: 8px;
        margin-top: -4px;
    }

    .fillmy-org-lineitems-holder .fillmy-linebutton { 
        padding: 8px 0px;
        display: flex;
        align-items: center;
        gap: 4px;
        border-radius: 4px;
        background-color: transparent;
        font-family: 'Lexend', sans-serif;
        font-size: 14px;
        line-height: 14px;
        font-weight: 400;
        color: var(--grey-400);
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        cursor: pointer;
        border: none;
        transition: 0.15s ease-out; 
    }

    .fillmy-org-lineitems-holder .fillmy-linebutton:hover {
        color: var(--black);
        transition: 0.15s ease-out;  
    }

    .fillmy-org-lineitems-holder .fillmy-linebutton svg { 
        stroke-width: 2px;
        width: 16px;
    }

    .fillmy-bottom-overlay-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .fillmy-participant-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        background-color: var(--white);
        border: solid var(--purple-200) 1px;
        border-radius: 12px;
        padding: 24px 24px 16px 24px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .fillmy-participant-holder  {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
        background-color: var(--white-100);
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
    
    .fillmy-participant-info {
        display: flex;
        gap: 16px;
        padding-bottom: 16px;
        border-bottom: 1px dashed var(--purple-200);
    }
    
    .fillmy-participant-photo {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border-radius: 30px;
        border: 1px solid var(--purple-200);
    }
    
    .fillmy-participant-subitem-holder {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }

    .fillmy-fundraiser-donation-progress-wrapper {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .fillmy-donation-subline-holder { 
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-top: 8px;
    }

    #fillmy-subline-empty {
        font-family: 'Lexend', sans-serif;
        font-size: 12px;
        font-weight: 400;
        color: var(--grey-350);
    }

    #fillmy-subline-custom {
        font-family: 'Lexend', sans-serif;
        font-size: 12px;
        font-weight: 400;
        color: var(--grey-400);
        text-decoration: underline;
    }

    .fillmy-howitworks-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
        background-color: var(--white);
        border: solid var(--purple-200) 1px;
        border-radius: 12px;
        padding: 18px 24px 18px 24px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .fillmy-context-bar {
        position: fixed;
        bottom: 32px;
        left: calc((100vw - 300px) / 2 + 300px);
        transform: translateX(-50%);
        z-index: 3;
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 12px 20px;
        background-color: var(--grey-200);
        border: 1px solid var(--grey-300);
        border-radius: 12px;
    }

    .fillmy-context-bar.spaces-selected {
        justify-content: center;
        min-width: 300px;
        gap: 4px;
        background-color: var(--purple-200);
        border: 1px solid var(--purple-400);
    }


    .fillmy-context-bar.spaces-selected a {
        color: var(--black);
        line-height: 16px;
    }

    .fillmy-panel-open {
        fill: var(--purple-200);
        cursor: pointer;
        transition: .25s ease;
    }

    .fillmy-panel-open:hover {
        fill: var(--purple-250);
        cursor: pointer;
    }
    
    .fillmy-panel-selected {
        fill: var(--purple-275);
        cursor: pointer;
    }
    
    .fillmy-panel-paid {
        fill: #95EEC1;
    }
    
    .fillmy-panel-reserved {
        fill: var(--grey-200);
    }
    
    .fillmy-panel-label {
        font-family: 'Polysans bulky', sans-serif;
        font-size: 20px;
        line-height: 105%;
        font-weight: 700;
        fill: var(--black);
    }

    .fillmy-panel-label-paid {
        fill: var(--black);
        font-family: 'Lexend', sans-serif;
        font-size: 12px;
        font-weight: 400;
    }
    
    .fillmy-panel-label-reserved {
        fill: var(--black);
        font-family: 'Lexend', sans-serif;
        font-size: 12px;
        font-weight: 400;
    }

    .fillmy-spaces-selected-list { 
        width: 100%; 
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 8px;
    }

    .fillmy-spaces-selected-item { 
        width: 100%; 
        padding: 8px 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 4px;
        border: 1px solid var(--purple-200);
        background-color: var(--purple-100);
        gap: 4px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        font-family: 'Lexend', sans-serif;
        font-size: 16px;
        font-weight: 400;
    }

    .fillmy-gesture-hint {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 4;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 18px;
        background: rgba(0, 0, 0, 0.55);
        color: white;
        border-radius: 24px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }
    
    .fillmy-gesture-hint p {
        color: white;
        margin: 0;
    }
    
    .fillmy-gesture-hint.visible {
        opacity: 1;
    }

    /* Profile Page CSS */

    .profile-fillmy-shape-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0 auto;
        overflow: visible;
    }

    .profile-fillmy-shape-wrapper svg {
        width: 100%;
        height: 100%;
    }

    .profile-fillmy-panel-open {
        fill: var(--purple-200);
        cursor: default;
    }

    .profile-fillmy-panel-paid { fill: #95EEC1; }
    .profile-fillmy-panel-reserved { fill: var(--grey-200); }

    .profile-fillmy-panel-label {
        font-family: 'Polysans bulky', sans-serif;
        font-weight: 700;
        fill: var(--black);
        font-size: 16px;
        line-height: 105%;
    }

    .profile-fillmy-panel-label-paid,
    .profile-fillmy-panel-label-reserved {
        font-family: 'Lexend', sans-serif;
        font-weight: 400;
        fill: var(--black);
        font-size: 12px;
    }
    
}

@media screen and (max-width: 480px){
    

    .fillmy-content-wrapper { 
        width: 100vw;
        height: auto;
        min-height: 100vh;
        max-height: none;
        padding: 55px 0 0 0;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .fillmy-content-holder { 
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    #fillmy-svg-mount {
        width: 100vw;
        height: 100vh;   /* fallback */
        height: 100dvh;  /* wins in supporting browsers */
        position: fixed;
        top: 0;
        left: 0;
    }
    
    #fillmy-svg-mount svg {
        width: 100%;
        height: 100%;
    }

    [id^="label-"] {
        visibility: hidden;
    }

    .fillmy-shape-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    .fillmy-overlay-wrapper { 
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 2;
        /* bottom: 32px; */
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .fillmy-org-container {
        /* switched to fixed on top for mobile */
        width: 100%;
        position: fixed;
        z-index: 2;
        top: calc(42px + env(safe-area-inset-top));
        left: 0px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        background-color: var(--white);
        border: solid var(--purple-200) 1px;
        border-radius: 0px 0px 16px 16px;
        padding: 10px 12px 8px 12px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .fillmy-org-middle-content {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
        flex-direction: row;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .fillmy-page-org-logo-holder { 
        width: 100%;
        max-width: 100px;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        border: 1px solid var(--purple-200);
        border-radius: 10px;
    }

    .fillmy-page-org-logo-holder.about-modal { 
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        border: 1px solid var(--purple-200);
        border-radius: 10px;
    }

    .fillmy-org-lineitems-holder { 
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        column-gap: 6px;
        margin-top: -2px;
    }

    .fillmy-org-lineitems-holder .fillmy-linebutton { 
        padding: 8px 0px;
        display: flex;
        align-items: center;
        gap: 3px;
        border-radius: 4px;
        background-color: transparent;
        font-family: 'Lexend', sans-serif;
        font-size: 12px;
        line-height: 12px;
        font-weight: 400;
        color: var(--grey-400);
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        cursor: pointer;
        border: none;
        transition: 0.15s ease-out; 
    }

    .fillmy-org-lineitems-holder .fillmy-linebutton:hover {
        color: var(--black);
        transition: 0.15s ease-out;  
    }

    .fillmy-org-lineitems-holder .fillmy-linebutton svg { 
        stroke-width: 2px;
        width: 14px;
    }

    .fillmy-bottom-overlay-content {
        /* switch to fixed to bottom on mobile */
        width: 100%;
        position: fixed;
        left: 0px;
        bottom: 0px;
        padding-bottom: env(safe-area-inset-bottom);
        display: flex;
        flex-direction: column-reverse;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .fillmy-participant-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        background-color: var(--white);
        border: solid var(--purple-200) 1px;
        border-radius: 0px;
        padding: 12px 16px 10px 16px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .fillmy-participant-holder  {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
        background-color: var(--white-100);
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        margin-bottom: 12px;
    }
    
    .fillmy-participant-info {
        display: flex;
        gap: 16px;
        padding-bottom: 12px;
        border-bottom: 1px dashed var(--purple-200);
    }
    
    .fillmy-participant-photo {
        width: 42px;
        height: 42px;
        object-fit: cover;
        border-radius: 30px;
        border: 1px solid var(--purple-200);
    }
    
    .fillmy-participant-subitem-holder {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }

    .fillmy-fundraiser-donation-progress-wrapper {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }

    .fillmy-donation-subline-holder { 
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-top: 12px;
    }

    #fillmy-subline-empty {
        font-family: 'Lexend', sans-serif;
        font-size: 12px;
        font-weight: 400;
        color: var(--grey-350);
    }

    #fillmy-subline-custom {
        font-family: 'Lexend', sans-serif;
        font-size: 12px;
        font-weight: 400;
        color: var(--grey-400);
        text-decoration: underline;
    }

    .fillmy-howitworks-container {
        width: 100%;
        /* Not shown on mobile */
        display: none;
        flex-direction: column;
        gap: 8px;
        background-color: var(--white);
        border: solid var(--purple-200) 1px;
        border-radius: 12px;
        padding: 24px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .fillmy-context-bar {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 6px 16px;
        background-color: var(--grey-200);
        border: 1px solid var(--grey-300);
        border-radius: 16px 16px 0px 0px;
        margin-bottom: -1px;
    }

    .fillmy-context-bar.spaces-selected {
        justify-content: center;
        min-width: 300px;
        gap: 2px;
        background-color: var(--purple-200);
        border: 1px solid var(--purple-400);
    }

    .fillmy-context-bar.spaces-selected a {
        color: var(--black);
        font-size: 12px;
        line-height: 14px;
    }

    .fillmy-panel-open {
        fill: var(--purple-200);
        cursor: pointer;
        transition: .25s ease;
    }

    .fillmy-panel-open:hover {
        fill: var(--purple-250);
        cursor: pointer;
    }
    
    .fillmy-panel-selected {
        fill: var(--purple-275);
        cursor: pointer;
    }
    
    .fillmy-panel-paid {
        fill: #95EEC1;
    }
    
    .fillmy-panel-reserved {
        fill: var(--grey-200);
    }
    
    .fillmy-panel-label {
        font-family: 'Polysans bulky', sans-serif;
        font-size: 20px;
        line-height: 105%;
        font-weight: 700;
        fill: var(--black);
    }

    .fillmy-panel-label-paid {
        fill: var(--black);
        font-family: 'Lexend', sans-serif;
        font-size: 12px;
        font-weight: 400;
    }
    
    .fillmy-panel-label-reserved {
        fill: var(--black);
        font-family: 'Lexend', sans-serif;
        font-size: 12px;
        font-weight: 400;
    }

    .fillmy-spaces-selected-list { 
        width: 100%; 
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 8px;
    }

    .fillmy-spaces-selected-item { 
        width: 100%; 
        padding: 8px 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 4px;
        border: 1px solid var(--purple-200);
        background-color: var(--purple-100);
        gap: 4px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        font-family: 'Lexend', sans-serif;
        font-size: 14px;
        font-weight: 400;
    }

    .fillmy-gesture-hint {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 4;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px); /* Safari */
        border: 1px solid var(--black);
        color: white;
        border-radius: 12px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }
    
    .fillmy-gesture-hint p {
        color: var(--white);
        font-family: 'Lexend', sans-serif;
        font-size: 12px;
        font-weight: 400;
        margin: 0;
    }
    
    .fillmy-gesture-hint.visible {
        opacity: 1;
    }

    /* Profile Page CSS */

    .profile-fillmy-shape-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0 auto;
        overflow: visible;
    }

    .profile-fillmy-shape-wrapper svg {
        width: 100%;
        height: 100%;
    }

    .profile-fillmy-panel-open {
        fill: var(--purple-200);
        cursor: default;
    }

    .profile-fillmy-panel-paid { fill: #95EEC1; }
    .profile-fillmy-panel-reserved { fill: var(--grey-200); }

    .profile-fillmy-panel-label {
        font-family: 'Polysans bulky', sans-serif;
        font-weight: 700;
        fill: var(--black);
        font-size: 18px;
        line-height: 105%;
    }

    .profile-fillmy-panel-label-paid,
    .profile-fillmy-panel-label-reserved {
        font-family: 'Lexend', sans-serif;
        font-weight: 400;
        fill: var(--black);
        font-size: 14px;
    }

}