.button-component {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.button-component.square {
    background-color: #F4A484;

    padding: 10px 16px;
    gap: 10px;

    width: 114px;
    height: 50px;

    background: #F4A484;
    border-radius: 13px;

    /* Inside auto layout */
    flex: none;
    order: 2;
    flex-grow: 0;

}

/* Standard filled call-to-action: the same navy pill as the day-1 onboarding
   "Get Started" button. That styling lives in
   static/css/onboarding_index_multiday.css scoped to #onboarding-actions, so it
   could not be reused outside onboarding -- this modifier is the reusable
   version. Keep the two in sync if either changes. */
.button-component.primary {
    background: var(--paloma-navy-blue);
    border: none;
    border-radius: 25px;
    color: #ffffff;
    cursor: pointer;
    font-family: "Sofia Pro";
    font-size: 20px;
    gap: 10px;
    height: 50px;
    padding: 10px 25px;
    text-decoration: none;
    white-space: nowrap;
    width: auto;
}

.button-component.primary:hover,
.button-component.primary:focus {
    background: #253347;
    color: #ffffff;
    text-decoration: none;
}

/* Pale-pink pill with navy type and outline -- the quieter sibling of
   .primary, for a secondary action that still needs to read as a button.
   Geometry deliberately matches .primary so the two can sit side by side. */
.button-component.soft {
    background: #FBE6E5;
    border: 1px solid #344563;
    border-radius: 25px;
    color: #344563;
    cursor: pointer;
    font-family: "Sofia Pro";
    font-size: 20px;
    gap: 10px;
    height: 50px;
    padding: 10px 25px;
    text-decoration: none;
    white-space: nowrap;
    width: auto;
}

.button-component.soft:hover,
.button-component.soft:focus {
    background: #F8D9D8;
    color: #344563;
    text-decoration: none;
}

.button-component.push {
    -webkit-appearance: none;
    appearance: none;
    -webkit-transition: -webkit-transform 0.1s ease, -webkit-box-shadow 0.1s ease; 
    -moz-transition: -moz-transform 0.1s ease, -moz-box-shadow 0.1s ease; 
    -o-transition: -o-transform 0.1s ease, -o-box-shadow 0.1s ease; 
    -ms-transition: -ms-transform 0.1s ease, -ms-box-shadow 0.1s ease;
    -webkit-box-shadow: 0px 2px 0px 0px #DAE4ED; 
    -moz-box-shadow: 0px 2px 0px 0px #DAE4ED; 
    box-shadow: 0px 2px 0px 0px #DAE4ED;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.button-component.push:active {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none; 
    transform: scale(0.95); 
}
/* ---------------------------------------------------------------------------
   Paloma Design System, parent register (sign-in, signup, settings, manage
   account). Navy pill, 15px medium label, no push lip; hover darkens, never
   fades; disabled is its own fill. Same look as the React <Button
   register="parent"> (frontend/src/components/Button/Button.styles.ts).
   Tokens come from design_tokens/design_tokens.css.
   --------------------------------------------------------------------------- */
.button-component.ds-primary,
.button-component.ds-secondary,
.button-component.ds-tertiary,
.button-component.ds-danger {
    /* Shrink to the label like the React skin; .button-component's block-level
       flex would stretch a link button to its container's width. */
    display: inline-flex;
    box-sizing: border-box;
    gap: 8px;
    width: auto;
    /* 0.75px optical shift: Sofia Pro's ink sits high in a centred line box. */
    padding: 13.75px 28px 12.25px;
    border: 1px solid transparent;
    border-radius: var(--paloma-radius-full);
    font-family: "Sofia Pro", sans-serif;
    font-size: var(--paloma-type-body-size);
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition:
        background var(--paloma-duration-base) var(--paloma-ease-standard),
        color var(--paloma-duration-base) var(--paloma-ease-standard),
        border-color var(--paloma-duration-base) var(--paloma-ease-standard);
}

.button-component.ds-primary:focus-visible,
.button-component.ds-secondary:focus-visible,
.button-component.ds-tertiary:focus-visible,
.button-component.ds-danger:focus-visible {
    outline: none;
    box-shadow: var(--paloma-shadow-focus-ring);
}

.button-component.ds-primary:disabled,
.button-component.ds-secondary:disabled,
.button-component.ds-tertiary:disabled,
.button-component.ds-danger:disabled,
.button-component.ds-primary[aria-disabled="true"],
.button-component.ds-secondary[aria-disabled="true"],
.button-component.ds-tertiary[aria-disabled="true"],
.button-component.ds-danger[aria-disabled="true"] {
    cursor: default;
}

.button-component.ds-small {
    padding: 8.75px 18px 7.25px;
    font-size: var(--paloma-type-body-small-size);
}

.button-component.ds-full-width {
    width: 100%;
}

.button-component.ds-primary {
    background: var(--paloma-brand);
    color: var(--paloma-white);
}

.button-component.ds-primary:disabled,
.button-component.ds-primary[aria-disabled="true"] {
    background: var(--paloma-brand-disabled);
}

.button-component.ds-secondary {
    background: transparent;
    color: var(--paloma-brand);
    border-color: var(--paloma-brand);
}

.button-component.ds-secondary:disabled,
.button-component.ds-secondary[aria-disabled="true"] {
    color: var(--paloma-text-placeholder);
    border-color: var(--paloma-border-input);
}

.button-component.ds-tertiary {
    background: transparent;
    color: var(--paloma-brand);
}

.button-component.ds-tertiary:disabled,
.button-component.ds-tertiary[aria-disabled="true"] {
    color: var(--paloma-text-placeholder);
}

.button-component.ds-danger {
    background: var(--paloma-action-danger-bg);
    color: var(--paloma-action-danger-fg);
}

.button-component.ds-danger:disabled,
.button-component.ds-danger[aria-disabled="true"] {
    background: var(--paloma-brand-disabled);
}

@media (hover: hover) {
    .button-component.ds-primary:hover:not(:disabled):not([aria-disabled="true"]) {
        background: var(--paloma-brand-hover);
        color: var(--paloma-white);
        text-decoration: none;
    }

    .button-component.ds-secondary:hover:not(:disabled):not([aria-disabled="true"]),
    .button-component.ds-tertiary:hover:not(:disabled):not([aria-disabled="true"]) {
        background: var(--paloma-action-secondary-bg-hover);
        color: var(--paloma-brand);
        text-decoration: none;
    }

    .button-component.ds-danger:hover:not(:disabled):not([aria-disabled="true"]) {
        background: var(--paloma-action-danger-bg-hover);
        color: var(--paloma-action-danger-fg);
        text-decoration: none;
    }
}

/* ---------------------------------------------------------------------------
   Loading (`loading=True`): the label stays, a spinner sits before it, and
   the button is disabled. Skins with a gap (square, primary, soft, ds-*)
   space the spinner with it; push has none, so it gets one here. A bare
   .button-component with no skin spaces its own content. The ds-* skins already have a disabled look; the
   legacy skins have none, so they fade like the React legacy Button does.
   --------------------------------------------------------------------------- */
.button-component.is-loading {
    cursor: default;
    pointer-events: none;
}

.button-component.push.is-loading {
    gap: 8px;
}

.button-component.is-loading:not(.ds-primary):not(.ds-secondary):not(.ds-tertiary):not(.ds-danger) {
    opacity: 0.5;
}

.button-component__spinner {
    flex: none;
    box-sizing: border-box;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: button-component-spin 1s linear infinite;
}

@keyframes button-component-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .button-component__spinner {
        animation: none;
    }
}

.button-component__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
