.restoo-customer-profile {
    --restoo-ui-font-family: inherit;
    --restoo-ui-accent: #1f5f99;
    --restoo-ui-accent-hover: #194d7c;
    --restoo-ui-accent-soft: #eef5fb;
    --restoo-ui-text: #182737;
    --restoo-ui-text-muted: #5f6f7f;
    --restoo-ui-border: #d7dce2;
    --restoo-ui-border-strong: #bfc9d4;
    --restoo-ui-surface: #ffffff;
    --restoo-ui-surface-muted: #f6f8fa;
    --restoo-ui-danger: #a12525;
    --restoo-ui-focus: #78aee0;
    --restoo-ui-radius: 0.875rem;
    --restoo-ui-shadow: 0 0.75rem 2rem rgb(24 39 55 / 10%);
    box-sizing: border-box;
    color: var(--restoo-ui-text);
    direction: rtl;
    font-family: var(--restoo-ui-font-family);
    inline-size: min(100%, 36rem);
    line-height: 1.6;
    margin-inline: auto;
}

.restoo-customer-profile *,
.restoo-customer-profile *::before,
.restoo-customer-profile *::after {
    box-sizing: inherit;
}

.restoo-customer-profile__card {
    background: var(--restoo-ui-surface);
    border: 1px solid var(--restoo-ui-border);
    border-radius: var(--restoo-ui-radius);
    box-shadow: var(--restoo-ui-shadow);
    padding: clamp(1.25rem, 4vw, 2rem);
}

.restoo-customer-profile__title,
.restoo-customer-profile__description,
.restoo-customer-profile__message,
.restoo-customer-profile__live {
    text-align: center;
}

.restoo-customer-profile__title {
    color: var(--restoo-ui-text);
    font-size: clamp(1.25rem, 4vw, 1.625rem);
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 0.4rem;
}

.restoo-customer-profile__description {
    color: var(--restoo-ui-text-muted);
    line-height: 1.8;
    margin: 0 0 1.25rem;
}

.restoo-customer-profile__form {
    display: grid;
    gap: 1rem;
}

.restoo-customer-profile__label {
    color: var(--restoo-ui-text);
    display: grid;
    font-weight: 700;
    gap: 0.45rem;
    text-align: right;
}

.restoo-customer-profile__input {
    appearance: none;
    background: var(--restoo-ui-surface);
    border: 1px solid var(--restoo-ui-border-strong);
    border-radius: calc(var(--restoo-ui-radius) * 0.7);
    color: var(--restoo-ui-text);
    font: inherit;
    inline-size: 100%;
    min-block-size: 3rem;
    padding: 0.7rem 0.8rem;
    text-align: right;
    transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.restoo-customer-profile__input:hover:not([readonly]) {
    border-color: var(--restoo-ui-accent);
}

.restoo-customer-profile__input:focus-visible,
.restoo-customer-profile__button:focus-visible {
    outline: 3px solid var(--restoo-ui-focus);
    outline-offset: 2px;
}

.restoo-customer-profile__input--readonly {
    background: var(--restoo-ui-surface-muted);
    border-color: var(--restoo-ui-border);
    color: #33475a;
    cursor: default;
    font-weight: 600;
}

.restoo-customer-profile__input[dir="ltr"] {
    text-align: left;
}

.restoo-customer-profile__message {
    border-radius: calc(var(--restoo-ui-radius) * 0.65);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.8;
    margin: 0;
    min-block-size: 0;
    text-align: center;
}

.restoo-customer-profile__message:empty {
    display: none;
}

.restoo-customer-profile__message--visible {
    min-block-size: 1.8em;
    padding: 0.7rem 0.85rem;
}

.restoo-customer-profile__message--loading {
    background: var(--restoo-ui-accent-soft);
    border: 1px solid #cbddec;
    color: #25445f;
}

.restoo-customer-profile__message--success {
    background: #f0faf4;
    border: 1px solid #b9dfc8;
    color: #20603b;
}

.restoo-customer-profile__message--error {
    background: #fff6f6;
    border: 1px solid #efcaca;
    color: var(--restoo-ui-danger);
}

.restoo-customer-profile__button {
    appearance: none;
    background: var(--restoo-ui-accent);
    border: 1px solid transparent;
    border-radius: calc(var(--restoo-ui-radius) * 0.7);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    inline-size: 100%;
    min-block-size: 3rem;
    padding: 0.7rem 1rem;
    text-align: center;
    transition: background-color 120ms ease, transform 120ms ease;
}

.restoo-customer-profile__button:hover:not(:disabled) {
    background: var(--restoo-ui-accent-hover);
}

.restoo-customer-profile__button:active:not(:disabled) {
    transform: translateY(1px);
}

.restoo-customer-profile__button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.restoo-customer-profile__live {
    block-size: 1px;
    inline-size: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    clip-path: inset(50%);
}

@media (prefers-reduced-motion: reduce) {
    .restoo-customer-profile__input,
    .restoo-customer-profile__button {
        transition: none;
    }
}

@media (max-width: 36rem) {
    .restoo-customer-profile__card {
        border-radius: calc(var(--restoo-ui-radius) * 0.8);
        padding: 1rem;
    }
}


.restoo-customer-profile__section {
    background: var(--restoo-ui-surface-muted);
    border: 1px solid var(--restoo-ui-border);
    border-radius: calc(var(--restoo-ui-radius) * 0.75);
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.restoo-customer-profile__section-title {
    color: var(--restoo-ui-text);
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    text-align: right;
}

.restoo-customer-profile__textarea {
    min-block-size: 6.5rem;
    resize: vertical;
}

.restoo-customer-profile__check {
    align-items: flex-start;
    color: var(--restoo-ui-text);
    display: flex;
    font-weight: 700;
    gap: 0.6rem;
    line-height: 1.8;
    text-align: right;
}

.restoo-customer-profile__check input {
    accent-color: var(--restoo-ui-accent);
    block-size: 1.1rem;
    flex: 0 0 auto;
    inline-size: 1.1rem;
    margin-block-start: 0.3rem;
}

.restoo-customer-profile__hint {
    color: var(--restoo-ui-text-muted);
    font-size: 0.86rem;
    line-height: 1.8;
    margin: -0.35rem 0 0;
    text-align: right;
}

.restoo-customer-profile__input:disabled {
    background: var(--restoo-ui-surface-muted);
    color: var(--restoo-ui-text-muted);
    cursor: not-allowed;
    opacity: 0.78;
}


.restoo-customer-profile__guidance {
    background: var(--restoo-ui-accent-soft);
    border: 1px solid #cbddec;
    border-radius: calc(var(--restoo-ui-radius) * 0.7);
    color: var(--restoo-ui-text);
    padding: 0.9rem 1rem;
    text-align: right;
}

.restoo-customer-profile__guidance p {
    color: var(--restoo-ui-text-muted);
    margin: 0.45rem 0 0;
}

.restoo-customer-profile__button--secondary {
    background: var(--restoo-ui-surface-muted);
    border-color: var(--restoo-ui-border-strong);
    color: var(--restoo-ui-text-muted);
}

.restoo-customer-profile__button--secondary:disabled {
    cursor: not-allowed;
    opacity: 0.78;
}
