/* Private developer tools, merchant event dialogs and the public temporary-closure notice. */
.developer-space {
    min-width: 0;
}

.api-nearby-example {
    border-top: 3px solid #173f35;
}

.developer-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
    border-bottom: 1px solid var(--line, #dce1d2);
    padding-bottom: 14px;
}

.developer-tabs a {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
}

.developer-tabs a[aria-current="page"] {
    background: #e3e9d9;
    font-weight: 700;
}

.developer-space pre {
    background: #f6f5ee;
    color: #183c30;
    padding: 18px;
    border: 1px solid #dce1d2;
    border-radius: 10px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 500px;
    overflow: auto;
    font-size: 13px;
}

.developer-space code {
    color: #183c30;
    overflow-wrap: anywhere;
}

.developer-endpoint > summary {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    padding: 5px 0;
}

.api-method {
    padding: 5px 9px;
    border-radius: 5px;
    background: #e3e9d9;
    color: #183c30;
    font: 700 12px monospace;
}

.developer-parameters article {
    padding: 16px 0;
    border-bottom: 1px solid #dce1d2;
}

.developer-parameters small {
    margin-left: 12px;
}

.developer-parameters p {
    margin: 6px 0 0;
}

.api-key-form,
.api-coordinates,
.api-location-search {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    margin-top: 20px;
}

.api-key-form label,
.api-coordinates label,
.api-location-search label {
    flex: 1 1 180px;
    margin: 0;
}

.api-location-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.api-location-heading h2 {
    margin: 0;
}

/* Keep names readable while the existing table wrapper scrolls on a phone. */
.admin-venues-table {
    min-width: 800px;
}

.admin-venues-table td:first-child {
    min-width: 180px;
}

.admin-location-column {
    text-align: center;
    width: 88px;
}

.admin-location-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    text-decoration: none;
}

.admin-location-pin.is-located {
    color: #173f35;
}

.admin-location-pin.is-missing {
    color: #b7bdb3;
}

.admin-location-pin .ui-icon {
    width: 24px;
    height: 24px;
}

a.admin-location-pin:hover {
    background: #f1f3ec;
}

a.admin-location-pin:focus-visible {
    outline: 3px solid #e9a078;
    outline-offset: 2px;
}

.api-location-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.api-location-method {
    padding: 22px;
    background: #f6f5ee;
    border: 1px solid #dce1d2;
    border-radius: 12px;
}

.api-location-method h3 {
    margin: 0 0 12px;
}

.api-location-method ol {
    padding-left: 22px;
    margin: 0;
}

.api-location-method li + li {
    margin-top: 8px;
}

.api-location-method p {
    margin: 12px 0;
}

.api-location-method form {
    margin-top: 16px;
}

.api-location-help {
    margin: 12px 0 0;
    color: var(--muted, #657166);
    font-size: 14px;
}

.api-location-search .api-location-query {
    flex-grow: 2;
}

.api-location-search input,
.api-location-search select,
.api-coordinates input {
    width: 100%;
    min-width: 0;
}

.api-key-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #dce1d2;
}

.api-key-row > div {
    flex: 1 1 220px;
}

.api-key-row:last-child {
    border-bottom: 0;
}

.api-table-wrap {
    overflow-x: auto;
}

.api-secret {
    border: 2px solid #183c30;
}

.venue-closure-alert {
    margin: 18px auto 24px;
    padding: 22px 26px;
    background: #fff;
    color: #183c30;
    border: 1px solid #ddd;
    border-radius: 14px;
    max-width: 1100px;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.05);
}

.venue-closure-alert strong {
    font-size: 20px;
}

.venue-closure-alert p {
    margin: 9px 0 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.profile-closure {
    border: 1px solid #dce1d2;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.dashboard-grid > .dashboard-menu-card,
.dashboard-grid > .dashboard-event-card {
    align-self: stretch;
    margin-bottom: 0;
}

.dashboard-event-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.events-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 24px;
}

.events-list {
    padding: 0 26px;
}

.events-list > p {
    padding: 26px 0;
    margin: 0;
}

.event-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #dce1d2;
}

.event-row:last-child {
    border-bottom: 0;
}

.event-row-info {
    flex: 1 1 240px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.event-row-info h3 {
    margin: 6px 0;
}

.event-row-info .eyebrow {
    margin: 0;
}

.event-delete-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #ac3f2a;
}

.event-delete-icon:hover,
.event-delete-icon:focus-visible {
    background: #fff0ec;
    border-color: #e1c6bc;
}

.event-row-error {
    flex-basis: 100%;
    color: #ac3f2a;
}

.bistrivo-dialog {
    border: 1px solid #dce1d2;
    border-radius: 18px;
    padding: 30px;
    width: min(680px, calc(100% - 32px));
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    color: #183c30;
    background: #fff;
}

.bistrivo-dialog::backdrop {
    background: rgba(15, 35, 28, 0.5);
}

.bistrivo-dialog > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.bistrivo-dialog h2 {
    margin: 0;
}

.dialog-close {
    font-size: 30px;
    line-height: 40px;
    text-align: center;
    width: 40px;
    text-decoration: none;
    flex-shrink: 0;
}

.event-editor footer {
    margin-top: 24px;
    justify-content: flex-end;
}

.event-delete-dialog {
    max-width: 480px;
}

.event-delete-dialog p {
    margin: 20px 0 26px;
    overflow-wrap: anywhere;
}

.danger-button {
    background: #a63927;
    border-color: #a63927;
    color: #fff;
}

@media (max-width: 640px) {
    .api-location-methods {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .developer-tabs a {
        padding: 8px;
    }

    .developer-endpoint > summary {
        align-items: flex-start;
        gap: 10px;
    }

    .event-row {
        gap: 12px;
    }

    .event-row-info {
        flex-basis: 100%;
    }

    .event-row .row-actions {
        margin-left: auto;
        flex-wrap: wrap;
    }

    .bistrivo-dialog {
        padding: 22px;
    }

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

