.roller-customisation-fab {
    position: fixed;
    right: 24px;
    bottom: 32px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #088c45 0%, #0aa550 100%);
    box-shadow: 0 20px 40px rgba(16, 55, 96, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.25s ease;
    z-index: 1400;
    pointer-events: auto;
}

.roller-customisation-fab:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 24px 50px rgba(16, 55, 96, 0.45);
}

.roller-customisation-fab:focus-visible {
    outline: 3px solid rgba(242, 174, 0, 0.65);
    outline-offset: 4px;
}

.roller-customisation-fab-icon {
    width: 64%;
    height: auto;
    pointer-events: none;
}

.roller-customisation-modal-open .roller-customisation-fab {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
}

.roller-customisation-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 17, 35, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1100;
}

.roller-customisation-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.roller-customisation-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 780px;
    max-height: calc(100vh - 120px);
    transform: translateY(30px);
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0;
    padding: 0;
}

.roller-customisation-modal.is-open .roller-customisation-modal__dialog {
    transform: translateY(0);
    opacity: 1;
}

.roller-customisation-modal__content {
    background: #f8faff;
    border-radius: 20px;
    padding: 24px 28px 16px;
    box-shadow: 0 24px 58px rgba(18, 34, 56, 0.28);
    position: relative;
}

.roller-customisation-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: rgba(15, 36, 74, 0.8);
    color: #FFFFFF;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.roller-customisation-modal__close:hover {
    background: rgba(242, 174, 0, 0.9);
    color: #0F244A;
    transform: rotate(90deg);
}

.roller-customisation-modal__close:focus-visible {
    outline: 3px solid rgba(52, 199, 89, 0.65);
    outline-offset: 4px;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.roller-customisation-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .roller-customisation-fab {
        display: flex !important;
        right: 16px;
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        width: 54px;
        height: 54px;
        box-shadow: 0 14px 28px rgba(16, 55, 96, 0.3);
    }

    .roller-customisation-fab-icon {
        width: 70%;
    }

    .roller-customisation-modal {
        align-items: flex-start;
        padding: 16px 12px 24px;
        overflow-y: auto;
    }

    .roller-customisation-modal__dialog {
        max-height: none;
        width: 100%;
    }

    .roller-customisation-modal__content {
        border-radius: 16px;
        padding: 20px 18px 16px;
    }
}

@media (max-width: 420px) {
    .roller-customisation-fab {
        right: calc(12px + env(safe-area-inset-right, 0px));
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 480px) {
    .roller-customisation-modal__dialog {
        max-width: 94vw;
    }
}

