/*
 * The Smooth Shakers — shared brand variables.
 * Colours pulled from the logo (see spec Section 12).
 */
:root {
    --ss-pink: #D81769;
    --ss-pink-dark: #B01057;
    --ss-navy: #021A40;
    --ss-navy-light: #0B2B5C;
    --ss-cream: #FEF9F1;
    --ss-grey: #8892a6;
    --ss-success: #1FA35C;
    --ss-danger: #D8341A;
    /* The same red lightened for text and outlines — #D8341A on the navy
       background is too dark to read comfortably at arm's length. */
    --ss-danger-light: #FF8B72;
    --ss-radius: 18px;
    --ss-radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--ss-navy);
    color: var(--ss-cream);
    -webkit-tap-highlight-color: transparent;
    /* -webkit- first: the iPads run a Safari old enough to need it. Without
       it, a long press on a tile pops up the copy/paste bubble mid-order. */
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    /* Stops iOS bumping every font size up when a screen is mostly one
       column, which is what makes text on an iPad randomly look oversized. */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
    /* Tells Safari this element will never be double-tap-zoomed, which
       removes the ~300ms wait it otherwise leaves before acting on a tap.
       On an iPad this is the single biggest difference between the app
       feeling sluggish and feeling instant. */
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}

/* Any box with its own scroll gets iOS momentum scrolling. Without this,
   scrolling inside it stops dead the moment a finger lifts, which feels
   broken next to every other app on the iPad. */
.ss-scrollbar-hide,
.tile-grid,
.review-list,
.tabs,
.tab-panel,
.modal,
.col {
    -webkit-overflow-scrolling: touch;
}

/* iOS zooms the whole page in when a text box smaller than 16px is
   tapped, and never zooms back out. Keeping every input at 16px or more
   is the only reliable way to stop it. */
input, select, textarea {
    font-size: 16px;
}

.ss-btn {
    background: var(--ss-pink);
    color: #fff;
    border: none;
    border-radius: var(--ss-radius-sm);
    padding: 18px 28px;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 4px 0 var(--ss-pink-dark);
    transition: transform 0.05s ease;
}

.ss-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--ss-pink-dark);
}

.ss-btn.secondary {
    background: transparent;
    color: var(--ss-cream);
    border: 2px solid var(--ss-cream);
    box-shadow: none;
}

.ss-btn.secondary:active {
    transform: translateY(2px);
}

/* Cancel / start-again. Deliberately an outline rather than a solid block:
   it has to be findable from a step away, but it must never compete with
   the button the customer actually came here to press. */
.ss-btn.danger {
    background: transparent;
    color: var(--ss-danger-light);
    border: 2px solid var(--ss-danger-light);
    box-shadow: none;
}

.ss-btn.danger:active {
    transform: translateY(2px);
}

.ss-btn:disabled {
    opacity: 0.35;
    box-shadow: none;
}

.ss-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--ss-radius);
    padding: 20px;
}

.ss-unavailable {
    -webkit-filter: grayscale(1);
    filter: grayscale(1);
    opacity: 0.45;
    position: relative;
}

.ss-unavailable::after {
    content: "Sorry, not available at this time";
    position: absolute;
    /* inset: 0 is a newer spelling that older Safari ignores completely —
       the overlay then collapses to nothing and the "not available" label
       never appears. The four long-hand lines work everywhere. */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(2, 26, 64, 0.75);
    border-radius: inherit;
}

.ss-scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.hidden {
    display: none !important;
}

/* Visually hidden but still readable by screen readers — used where an
   image (like the logo) already conveys the text visually. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
