/* Orders page. The title, the background and the hanging cards come from plants.css, and the price of the cards from products.css; this file only has what those pages don't have. */

/* ---------- Main WhatsApp button and phone number ---------- */

.ordersPageAction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-inline: var(--gutter);
}

.ordersPageButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: clamp(56px, 4.6vw, 68px);
    padding: 10px clamp(26px, 3vw, 46px);
    border-radius: 999px;
    background: var(--search-button-color);
    color: var(--paper);
    font-family: var(--search-font);
    font-size: clamp(19px, 1.7vw, 25px);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: filter .25s ease;
}

.ordersPageButton:hover {
    filter: brightness(.88);
}

.ordersPageButton:focus-visible {
    outline: 2px solid var(--leaf);
    outline-offset: -2px;
}

.ordersPageButtonIcon {
    flex: none;
    width: 1.3em;
    height: 1.3em;
    fill: currentColor;
}

.ordersPagePhone {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(19px, 1.5vw, 22px);
    line-height: 1.3;
    text-align: center;
    user-select: text;
    cursor: text;
}

.ordersPagePhoneLink {
    color: var(--search-button-color);
    font-family: var(--serif);
    font-weight: 700;
    white-space: nowrap;
}

.ordersPagePhoneLink:focus-visible {
    outline: 2px solid var(--leaf);
    outline-offset: -2px;
}

/* ---------- Gold cord with the products moving along it ---------- */

.ordersPageString {
    position: relative;
    margin-top: clamp(30px, 3.4vw, 52px);
}

/* The gold cord stays still from one edge of the screen to the other, and the product cards slide along it. */
.ordersPageString::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, var(--brass), rgb(217, 178, 76) 50%, var(--brass));
    box-shadow: 0 1px 3px rgba(120, 90, 30, .28);
}

/* The track holds the list twice and moves by half of its width, which is one whole list, so the end of the movement looks the same as its start. */
.ordersPageStringTrack {
    display: flex;
    width: max-content;
    animation: ordersPageStringMove 160s linear infinite;
}

@keyframes ordersPageStringMove {
    to {
        transform: translateX(-50%);
    }
}

/* Only on devices with a mouse: on a touch screen the hover state would stay on after a tap and the products would never move again. */
@media (hover: hover) {
    .ordersPageStringTrack:hover {
        animation-play-state: paused;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ordersPageStringTrack {
        animation: none;
    }
}

.ordersPageStringList {
    display: flex;
    flex: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ordersPageStringItem {
    flex: none;
    padding-inline: clamp(7px, 1vw, 15px);
}

.ordersPageStringBag {
    --tag-w: round(clamp(116px, 11.5vw, 176px), 2px);
    --plantsGalleryDrop: clamp(20px, 2.4vw, 34px);
}

.ordersPageStringItem:nth-child(even) .ordersPageStringBag {
    --plantsGalleryDrop: clamp(40px, 4.6vw, 66px);
}

/* ---------- The three steps of an order ---------- */

.ordersPageSteps {
    max-width: 1120px;
    margin: clamp(44px, 5vw, 76px) auto 0;
    padding-inline: var(--gutter);
}

.ordersPageStepsTitle {
    margin: 0;
    color: var(--leaf-deep);
    font-family: var(--serif);
    font-size: clamp(32px, 3.2vw, 46px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.012em;
    text-align: center;
    user-select: text;
    cursor: text;
}

.ordersPageStepsTitleAccent {
    color: var(--search-button-color);
    font-family: var(--serif);
    font-style: italic;
}

.ordersPageStepList {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3.4vw, 56px);
    margin: clamp(24px, 2.8vw, 40px) 0 0;
    padding: 0;
    list-style: none;
}

.ordersPageStep {
    text-align: center;
}

.ordersPageStepNumber {
    margin: 0;
    color: var(--search-button-color);
    font-family: var(--serif);
    font-size: clamp(44px, 4vw, 60px);
    font-style: italic;
    font-weight: 500;
    line-height: 1;
    user-select: text;
    cursor: text;
}

.ordersPageStepName {
    margin: 6px 0 0;
    color: var(--leaf-deep);
    font-family: var(--serif);
    font-size: clamp(24px, 2vw, 29px);
    font-weight: 600;
    line-height: 1.15;
    user-select: text;
    cursor: text;
}

.ordersPageStepText {
    margin: 8px 0 0;
    font-family: var(--serif);
    font-size: clamp(20px, 1.5vw, 22px);
    line-height: 1.3;
    text-wrap: pretty;
    user-select: text;
    cursor: text;
}

.ordersPageStepLink {
    color: var(--search-button-color);
}

.ordersPageStepLink:focus-visible {
    outline: 2px solid var(--leaf);
    outline-offset: -2px;
}

/* ---------- Small screens ---------- */

@media only screen and (max-width: 600px) {
    .ordersPageButton {
        width: 100%;
        font-size: 18px;
    }

    .ordersPageStepsTitle {
        font-size: 30px;
    }

    .ordersPageStepList {
        grid-template-columns: minmax(0, 1fr);
    }

    .ordersPageStepName {
        font-size: 23px;
    }

    .ordersPageStepText {
        font-size: 19px;
    }
}
