
/* ---- Dashboard row: chart | inquiries | actions ------------------------ */
/* Desktop keeps the original 3-column look: the actions column is really
   two stacked areas (primary buy/sell, then the rest) so the DOM can be
   split without changing how it reads on a wide screen. */
.dashboard-row {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
    grid-template-areas:
        "chart inquiries actions-primary"
        "chart inquiries actions-secondary";
    column-gap: 24px;
    row-gap: 10px;
    align-items: center;
}

.dashboard-col {
    min-width: 0;
}

.dashboard-col--chart { grid-area: chart; }
.dashboard-col--inquiries { grid-area: inquiries; }
.dashboard-col--actions-primary { grid-area: actions-primary; }
.dashboard-col--actions-secondary { grid-area: actions-secondary; }

@media (max-width: 960px) {
    /* Mobile order: chart, then Kaufen/Verkaufen, then the requests table,
       then the remaining channel buttons. */
    .dashboard-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "chart"
            "actions-primary"
            "inquiries"
            "actions-secondary";
        row-gap: 24px;
        align-items: stretch;
    }

    .dashboard-col {
        width: 100%;
    }
}

/* ---- Chart column -------------------------------------------------------- */
.price-widget {
    width: 100%;
    min-width: 400px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

@media (max-width: 960px) {
    .price-widget {
        min-width: 0;
    }
}

/* ---- Actions column ------------------------------------------------------ */
.actions-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.actions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: #1b1b1b;
    color: #fff;
    font-family: inherit;
    transition: transform 0.15s ease, background-color 0.15s ease;
    box-sizing: border-box;
}

.action-btn:hover {
    transform: translateY(-2px);
    background-color: #262626;
}

.action-btn--buy {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: #07200f;
}

.action-btn--buy:hover {
    background-color: #27b563;
}

.action-btn--sell {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: #290905;
}

.action-btn--sell:hover {
    background-color: #d8412f;
}

/* ---- Popup modal -------------------------------------------------------- */
.modal,
.modal-sell,
.modal-sepa,
.modal-paypal,
.modal-cash,
.modal-whats {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    background-color: rgba(94, 110, 141, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s 0s, visibility 0s 0.3s;
    overflow-y: auto;
    z-index: 10000;
}

.modal.is-visible,
.modal-sell.is-visible,
.modal-sepa.is-visible,
.modal-paypal.is-visible,
.modal-cash.is-visible,
.modal-whats.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s 0s, visibility 0s 0s;
}

.modal__box {
    background-color: #111;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95%;
    max-width: 700px;
    margin: auto;
    position: relative;
    padding: 20px 10px;
    color: #fff;
}

.modal__title {
    color: #fff;
    margin: 0 0 10px;
    text-align: center;
}

.modal__close {
    background: none;
    color: #fff;
    width: 40px;
    height: 40px;
    position: absolute;
    outline: none;
    top: 0;
    right: 0;
    border: none;
    cursor: pointer;
    transition: all 0.3s linear;
}

.modal__close:hover {
    border: 1px solid #fff;
    border-radius: 10px;
}

/* ---- Form ---------------------------------------------------------------- */
.form {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 25px;
}

.input {
    display: block;
    width: 80%;
    padding: 10px 35px;
    background-color: transparent;
    border: 1px #fff solid;
    border-radius: 10px;
    font-size: 18px;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s linear;
}

.input:focus {
    width: 81%;
}

.input::placeholder {
    color: #fff;
    opacity: 0.6;
}

.textarea {
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
}

.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-success {
    display: none;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    padding: 0;
}

.form-success.form-error {
    color: #e74c3c;
    font-size: 16px;
    font-weight: 400;
}

.form-success.is-visible {
    display: block;
}

@media (max-width: 500px) {
    .form-success { font-size: 18px; }
}

/* ---- Support / question pages ------------------------------------------- */
.support-page__intro {
    max-width: 560px;
    margin: 0 auto 24px;
    text-align: center;
    opacity: 0.75;
}

.support-card {
    background-color: #111;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    max-width: 560px;
    margin: 0 auto;
    padding: 30px 20px;
    color: #fff;
}

.support-form .textarea {
    width: 100%;
    min-height: 140px;
}

.support-form__submit {
    border: none;
    border-radius: 10px;
    background-color: #333;
    color: #fff;
    padding: 10px 26px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.support-form__submit:hover {
    background-color: #444;
}

.support-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---- Slide-to-submit captcha ------------------------------------------- */
.submit {
    border: none;
    display: none; /* triggered programmatically once the slider completes */
    border-radius: 10px;
    background-color: #333;
    color: #fff;
    padding: 6px 15px;
    font-size: 20px;
    cursor: pointer;
}

.captcha {
    margin: 0 auto;
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

@media (max-width: 505px) {
    .captcha {
        flex-direction: column;
        gap: 10px;
    }
}

.captcha__title {
    color: #fff;
}

.slider-track {
    position: relative;
    width: 200px;
    height: 50px;
    border-radius: 48px;
    background-color: #dedede;
    box-shadow: inset 0 0 3px gray;
    font-family: "Open Sans", sans-serif;
}

.slider-track:after {
    content: 'Slide it to submit';
    position: absolute;
    left: 45px;
    line-height: 50px;
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

.slider-handle {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    cursor: grab;
    background: #444;
    border: 1px solid #fff;
    box-shadow: 0 0 5px gray;
    transition: left 0.01s ease;
    touch-action: none;
}

/* ---- Jumping dots loader ------------------------------------------------ */
.loader {
    display: none;
    width: 100px;
    height: 20px;
    border-radius: 100%;
    position: relative;
    margin: 0 auto;
}

.loader span {
    display: none;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    margin: 0 5px;
}

.loader span:nth-child(1) { animation: bounce 1s ease-in-out infinite; }
.loader span:nth-child(2) { animation: bounce 1s ease-in-out 0.33s infinite; }
.loader span:nth-child(3) { animation: bounce 1s ease-in-out 0.66s infinite; }

@keyframes bounce {
    0%, 75%, 100% { transform: translateY(0); }
    25% { transform: translateY(-20px); }
}

/* ---- Inquiry form rows -------------------------------------------------- */
.form-grid {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-row > * {
    min-width: 0;
}

/* Currency | price | coin name: three short read-only fields side by side. */
.form-row--info {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 10px;
}

.form-grid .input {
    width: 100%;
    padding: 10px 16px;
    font-size: 15px;
}

.form-grid .input:focus {
    width: 100%;
}

.field__caption {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
    font-size: 12px;
    opacity: 0.65;
}

@media (max-width: 600px) {
    .form-grid {
        width: 90%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row--info {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr) minmax(0, 1fr);
        gap: 6px;
    }

    .form-row--info .field__caption {
        text-align: center;
    }

    .form-row--info .input {
        text-align: center;
    }

    .form-row--pair {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* 16px keeps iOS Safari from zooming the page when a field is focused;
       the taller fields are easier to hit with a thumb. */
    .form-grid .input {
        min-height: 48px;
        font-size: 16px;
    }

    .form-row--info .input {
        padding: 10px 8px;
        font-size: 14px;
    }

    .modal__box {
        padding: 44px 6px 20px;
    }

    .modal__title {
        font-size: 1.5rem;
        text-align: center;
        padding: 0 8px;
    }
}

.input--locked {
    opacity: 0.65;
    cursor: not-allowed;
    text-overflow: ellipsis;
}

/* ---- Amount field with icon + short code at the edge --------------------- */
.amount-field {
    position: relative;
    min-width: 0;
}

.form-grid .amount-field .input {
    padding-right: 88px;
    -moz-appearance: textfield;
}

.amount-field .input::-webkit-outer-spin-button,
.amount-field .input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.amount-field__badge {
    position: absolute;
    top: 0;
    right: 12px;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.amount-field__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.amount-field__code {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

/* ---- Inquiry verification step ------------------------------------------ */
.verify-step {
    display: none;
    width: 80%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.verify-step.is-visible {
    display: flex;
}

.verify-step input {
    text-align: center;
    letter-spacing: 4px;
    font-size: 20px;
}

.verify-step__submit {
    display: block;
    width: 100%;
    align-self: center;
}

@media (max-width: 600px) {
    .verify-step {
        width: 90%;
    }
}

/* ---- Traffic light ------------------------------------------------------- */
.traffic-light {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 6px;
    background-color: #1b1b1b;
    border-radius: 10px;
}

.traffic-light__lamp {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #3a3a3a;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.6);
}

.traffic-light__lamp--yellow.is-on {
    background-color: #f1c40f;
    box-shadow: 0 0 8px 2px rgba(241, 196, 15, 0.8);
}

.traffic-light__lamp--green.is-on {
    background-color: #2ecc71;
    box-shadow: 0 0 8px 2px rgba(46, 204, 113, 0.8);
}

.traffic-light__lamp--blue.is-on {
    background-color: #3498db;
    box-shadow: 0 0 8px 2px rgba(52, 152, 219, 0.8);
}

/* Subtle breathing glow so the active lamp reads as "lit", not just colored. */
.traffic-light__lamp.is-on {
    animation: traffic-light-glow 1.8s ease-in-out infinite;
}

@keyframes traffic-light-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.traffic-light--legend {
    display: inline-flex;
    flex-direction: row;
    background: none;
    padding: 0 4px;
    vertical-align: middle;
}

/* Mobile-only status indicator inside the requests table: three small lamps
   instead of the text badge, so the row stays narrow and needs no scroll. */
.traffic-light--table {
    display: none;
    flex-direction: row;
    background: none;
    padding: 0;
    gap: 5px;
}

.status-lamp-wrap--amount {
    display: none;
}

/* ---- Inquiries list ------------------------------------------------------ */
.inquiries-title {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.inquiries-hint {
    opacity: 0.75;
    font-size: 12px;
    margin-bottom: 12px;
}

.inquiries-table-wrap {
    max-height: 340px;
    overflow: auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

.inquiries-table-wrap::-webkit-scrollbar {
    width: 8px;
}

.inquiries-table-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.inquiries-table-wrap::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.inquiries-table {
    width: 100%;
    min-width: 380px;
    border-collapse: collapse;
    font-size: 13px;
}

.inquiries-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #fff;
    text-align: left;
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.inquiries-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    vertical-align: middle;
}

.inquiries-table tbody tr:last-child td {
    border-bottom: 0;
}

.inquiries-coin {
    font-size: 12px;
    opacity: 0.65;
}

.inquiries-empty {
    opacity: 0.6;
    white-space: normal;
}

/* Column 3: buy/sell on top, then the coin and what the customer receives. */
.inquiries-meta__type {
    display: block;
    font-weight: 600;
}

.inquiries-table tbody tr[data-type="sell"] .inquiries-meta__type {
    color: #c0392b;
}

.inquiries-table tbody tr[data-type="buy"] .inquiries-meta__type {
    color: #1e8449;
}

.inquiries-amount--receive {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    opacity: 0.65;
}

/* Column 4: status badge, plus (when the request is still open) a button
   to take up the other side of the trade. */
.accept-btn {
    display: block;
    margin-top: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.accept-btn:hover {
    transform: translateY(-1px);
}

.accept-btn--buy {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: #07200f;
}

.accept-btn--buy:hover {
    background-color: #27b563;
}

.accept-btn--sell {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: #290905;
}

.accept-btn--sell:hover {
    background-color: #d8412f;
}

.accept-btn--neutral {
    background-color: #1b1b1b;
    color: #fff;
}

.accept-btn--neutral:hover {
    background-color: #333;
}

@media (max-width: 600px) {
    /* Stays a real table — the lamp trio (instead of the text badge) does
       most of the work of keeping rows narrow; a little horizontal scroll
       on very small screens is fine. */
    .inquiries-table {
        font-size: 12.5px;
    }

    .inquiries-table thead th,
    .inquiries-table tbody td {
        padding: 8px 10px;
    }

    .status-badge-wrap {
        display: none;
    }

    .status-lamp-wrap--amount {
        display: inline-flex;
        vertical-align: middle;
        margin-right: 6px;
    }

    .traffic-light--table {
        display: inline-flex;
    }

    .traffic-light--table .traffic-light__lamp {
        width: 10px;
        height: 10px;
    }
}

/* ---- Status badge --------------------------------------------------------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.status-badge::before {
    content: '';
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-badge--yellow {
    color: #9a7d0a;
    background-color: rgba(241, 196, 15, 0.14);
}

.status-badge--yellow::before {
    background-color: #f1c40f;
    box-shadow: 0 0 6px 1px rgba(241, 196, 15, 0.8);
}

.status-badge--green {
    color: #1e8449;
    background-color: rgba(46, 204, 113, 0.14);
}

.status-badge--green::before {
    background-color: #2ecc71;
    box-shadow: 0 0 6px 1px rgba(46, 204, 113, 0.8);
}

.status-badge--blue {
    color: #21618c;
    background-color: rgba(52, 152, 219, 0.14);
}

.status-badge--blue::before {
    background-color: #3498db;
    box-shadow: 0 0 6px 1px rgba(52, 152, 219, 0.8);
}

/* ---- Coin page navigation (prev/next arrows) ------------------------------ */
.has-coin-nav {
    padding-bottom: 90px;
}

@media (max-width: 600px) {
    .has-coin-nav {
        padding-bottom: 80px;
    }
}

.coin-nav__btn {
    position: fixed;
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 500;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(17, 17, 17, 0.85);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.coin-nav__btn:hover {
    background-color: #111;
    transform: scale(1.06);
}

.coin-nav__btn:active {
    transform: scale(0.94);
}

.coin-nav__btn svg {
    width: 22px;
    height: 22px;
}

.coin-nav__btn--prev {
    left: max(16px, env(safe-area-inset-left));
}

.coin-nav__btn--next {
    right: max(16px, env(safe-area-inset-right));
}

@media (max-width: 600px) {
    .coin-nav__btn {
        width: 46px;
        height: 46px;
    }

    .coin-nav__btn--prev {
        left: max(10px, env(safe-area-inset-left));
    }

    .coin-nav__btn--next {
        right: max(10px, env(safe-area-inset-right));
    }
}

/* ---- Page transition (native browser cross-document view transition) ----- */
@view-transition {
    navigation: auto;
}

::view-transition-group(root) {
    animation-duration: 0.45s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

html.vt-next::view-transition-old(root) {
    animation-name: btc24-slide-out-left;
}

html.vt-next::view-transition-new(root) {
    animation-name: btc24-slide-in-right;
}

html.vt-prev::view-transition-old(root) {
    animation-name: btc24-slide-out-right;
}

html.vt-prev::view-transition-new(root) {
    animation-name: btc24-slide-in-left;
}

@keyframes btc24-slide-out-left {
    to {
        transform: translateX(-8%);
        opacity: 0;
    }
}

@keyframes btc24-slide-in-right {
    from {
        transform: translateX(8%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes btc24-slide-out-right {
    to {
        transform: translateX(8%);
        opacity: 0;
    }
}

@keyframes btc24-slide-in-left {
    from {
        transform: translateX(-8%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ---- Coin switcher (top of site) ------------------------------------------ */
.coin-switcher {
    background-color: #0e0e0e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.coin-switcher__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
}

.coin-switcher__coins {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.coin-switcher__pill {
    flex: 0 0 auto;
    padding: 6px 14px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.coin-switcher__pill:hover {
    background-color: rgba(255, 255, 255, 0.14);
}

.coin-switcher__pill.is-active {
    background-color: #f7931a;
    color: #111;
}

.coin-switcher__cabinet {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.coin-switcher__cabinet:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.coin-switcher__cabinet svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 600px) {
    .coin-switcher__inner {
        padding: 8px 12px;
    }

    .coin-switcher__cabinet span {
        display: none;
    }
}

/* ---- Trade block: currency | price | coin, then gives -> receives ---------- */
.trade {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.trade.is-ready {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.07);
}

.trade.is-error {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.08);
}

.form-grid .input--result {
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    cursor: default;
}

.trade.is-loading [data-quote-rate],
.trade.is-loading .input--result {
    opacity: 0.35;
}

.trade__note {
    margin: 0;
    font-size: 12px;
    text-align: center;
    opacity: 0.6;
}

.trade.is-error .trade__note {
    color: #ff8f84;
    opacity: 1;
}

/* ---- File attachment ------------------------------------------------------ */
.file-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 41px;
    padding: 0 16px;
    border: 1px dashed rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.file-field:hover {
    border-color: #fff;
}

/* The real input covers the whole field so a tap anywhere opens the picker. */
.file-field__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.file-field__icon {
    flex: 0 0 auto;
}

.file-field__text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-field.has-file {
    border-style: solid;
    border-color: #2ecc71;
    color: #fff;
}

.file-field.is-invalid {
    border-style: solid;
    border-color: #e74c3c;
    color: #ff8f84;
}

/* Sits above the invisible input so it can be tapped on its own. */
.file-field__clear {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    margin-right: -8px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.file-field__clear:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 600px) {
    .file-field {
        min-height: 48px;
        font-size: 16px;
    }
}
