/* The DRAWER (owner's design, 2026-10-08) — ONE copy for the home page and
   FOREX (both have it since 2026-10-27, owner: "both places"); its
   behaviour is rates-drawer.js. One glass frame whose handle (three gold
   dots) is all that shows; a tap opens it downwards — on FOREX with the
   Iran | Turkey rates buttons inside, on the home page with FOREX's
   converter since 2026-10-28 (owner: in place of the two buttons). The
   frame lines up with the other buttons, the glass as dark as the cards'.
   Closed again on every visit. */

/* Iran and Turkey rates: half a row each, side by side (owner's choice,
   2026-10-04). min-width 0 lets a label too long for half a screen scroll
   (marquee-line) instead of widening the button. */
.rates-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.rates-row .rates-btn {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

/* The buttons' card look (the home page's .business-card, which they wore
   there until 2026-10-28) */
.drawer .rates-btn {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.drawer .rates-btn:active {
    transform: scale(0.97);
}

.drawer {
    margin: 0 0 12px;
    padding: 0 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
}

/* Three gold dots, nothing else (owner's choice, 2026-10-08 — it said
   "💱 Rates", then "Drawer"; the turning arrow under the dots went the
   same day) */
.drawer-handle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 0;  /* ~31px high: 2/3 of before (owner, 2026-10-08) */
    color: rgba(255,215,0,0.6);  /* the site's gold at 60% (owner, 2026-10-08) */
    font-size: 14px;
    cursor: pointer;
    border-radius: 12px;
    -webkit-user-select: none;
    user-select: none;
}

.drawer-dots {
    display: flex;
    gap: 7px;
}

.drawer-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,215,0,0.6);
}

/* Opens top to bottom: the rows grow from 0 to the content's height */
.drawer-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.drawer.open .drawer-body {
    grid-template-rows: 1fr;
}

.drawer-inner {
    overflow: hidden;
    min-height: 0;
}

/* The rates buttons are Contact Owner's shape, a little smaller (owner,
   2026-10-08): inside the drawer's 8px padding, with Contact Owner's
   width : height ratio — their height is set by rates-drawer.js */
.drawer-inner .rates-row {
    margin-bottom: 8px;
}

.drawer-inner .rates-btn {
    height: var(--rates-h, 75px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.drawer-inner .rates-btn .marquee-line {
    width: 100%;
}

/* A rates button with a picture in its folder (pictures/iran-rates-button,
   turkey-rates-button — empty: the old gold / red look): the picture fills
   it and the label takes its opposite colour */
.rates-btn.has-picture .marquee-line {
    mix-blend-mode: difference;
}
