.octa-choux-composer {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    margin: 24px 0;
}

.octa-choux-composer__intro {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.octa-choux-composer__intro h3,
.octa-choux-composer__intro p,
.octa-choux-composer__notice {
    margin: 0;
}

.octa-choux-composer__rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.octa-choux-composer__row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
}

.octa-choux-composer__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.octa-choux-composer__field--quantity {
    width: 90px;
    flex: 0 0 90px;
}

.octa-choux-composer__field--flavour {
    flex: 1 1 auto;
}

.octa-choux-composer select {
    width: 100%;
    min-height: 44px;
}

.octa-choux-composer__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    border: 0;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.octa-choux-composer__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.octa-choux-composer__counter {
    display: flex;
    align-items: center;
    gap: 5px;
}

.octa-choux-composer__notice.is-error {
    font-weight: 600;
}

.octa-choux-composer__notice.is-complete {
    font-weight: 600;
}

@media (max-width: 600px) {
    .octa-choux-composer__field--quantity {
        width: 72px;
        flex-basis: 72px;
    }

    .octa-choux-composer__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

body.octa-choux-modal-open {
    overflow: hidden;
}

.octa-choux-modal[hidden] {
    display: none !important;
}

.octa-choux-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.octa-choux-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.octa-choux-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.octa-choux-modal__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.octa-choux-modal__title,
.octa-choux-modal__message {
    margin: 0;
}

.octa-choux-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.octa-choux-modal__button {
    cursor: pointer;
}

@media (max-width: 600px) {
    .octa-choux-modal {
        padding: 14px;
    }

    .octa-choux-modal__dialog {
        max-height: calc(100vh - 28px);
        padding: 28px 20px 20px;
    }
}
