html,
html[data-theme="light"] {
    --c-ink: 22 24 29;
    --c-paper: 244 247 248;
    --c-card: 255 255 255;
    --c-teal: 14 122 136;
    color-scheme: light;
    background: #f4f7f8;
    color: #16181d;
}

html, body {
    background: #f4f7f8;
    color: #16181d;
}

.logo-mark {
    display: inline-flex;
    line-height: 0;
    background: transparent;
}

.site-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #f4f7f8;
    border-bottom: 1px solid rgba(22, 24, 29, 0.1);
}

.site-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.75rem 1rem;
}

.site-bar-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-drawer-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.nav-icon,
.nav-close {
    position: relative;
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(22, 24, 29, 0.15);
    border-radius: 0.8rem;
    background: #fff;
    color: #16181d;
    cursor: pointer;
}

.nav-icon span {
    position: absolute;
    left: 0.82rem;
    width: 1.05rem;
    height: 2px;
    border-radius: 999px;
    background: #16181d;
    transition: transform 0.16s ease, opacity 0.16s ease, top 0.16s ease;
}

.nav-icon span:nth-child(1) { top: 0.95rem; }
.nav-icon span:nth-child(2) { top: 1.28rem; }
.nav-icon span:nth-child(3) { top: 1.61rem; }

.nav-drawer-toggle:checked ~ header .nav-icon span:nth-child(1),
.nav-drawer-toggle:checked ~ .admin-main header .nav-icon span:nth-child(1) {
    top: 1.28rem;
    transform: rotate(45deg);
}

.nav-drawer-toggle:checked ~ header .nav-icon span:nth-child(2),
.nav-drawer-toggle:checked ~ .admin-main header .nav-icon span:nth-child(2) {
    opacity: 0;
}

.nav-drawer-toggle:checked ~ header .nav-icon span:nth-child(3),
.nav-drawer-toggle:checked ~ .admin-main header .nav-icon span:nth-child(3) {
    top: 1.28rem;
    transform: rotate(-45deg);
}

.nav-close {
    font-size: 1.5rem;
    line-height: 1;
}

.ui-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
}

.ui-icon-lg {
    width: 1.75rem;
    height: 1.75rem;
}

.nav-close .ui-icon {
    width: 1.35rem;
    height: 1.35rem;
}

.nav-backdrop {
    position: fixed;
    z-index: 45;
    inset: 0;
    background: rgba(244, 247, 248, 0.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.nav-drawer,
.admin-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 50;
    top: 0;
    bottom: 0;
    left: 0;
    width: 80vw;
    transform: translateX(-105%);
    overflow: hidden;
    background: #fff;
    color: #16181d;
    border-right: 1px solid rgba(22, 24, 29, 0.08);
    box-shadow: 12px 0 40px rgba(22, 24, 29, 0.08);
    padding: 1rem 0.9rem 1.5rem;
    transition: transform 0.2s ease;
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
    flex: 0 0 auto;
}

.drawer-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.drawer-foot {
    flex: 0 0 auto;
    margin-top: auto;
    border-top: 1px solid rgba(22, 24, 29, 0.08);
    padding-top: 0.75rem;
}

.nav-drawer-links a,
.drawer-logout {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.35rem;
    border-radius: 0.8rem;
    padding: 0.9rem 1rem;
    color: #16181d;
    font-size: 1rem;
    font-weight: 600;
}

.nav-drawer-links a.is-active,
.admin-nav-link.is-active {
    background: #0e7a88;
    color: #fff;
}

.drawer-foot .drawer-logout {
    margin-top: 0.35rem;
}

.drawer-wallet {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.85rem 0.25rem 0.25rem;
    font-size: 0.875rem;
    color: rgba(22, 24, 29, 0.62);
}

.shop-wallet {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.shop-wallet .ui-icon {
    color: #0e7a88;
}

.nav-drawer-toggle:checked ~ .nav-drawer,
.nav-drawer-toggle:checked ~ .admin-sidebar {
    transform: none;
}

.nav-drawer-toggle:checked ~ .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.25rem 0 1rem;
}

.admin-nav-label {
    margin: 0.95rem 0.45rem 0.15rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(22, 24, 29, 0.42);
}

.admin-nav-label:first-child {
    margin-top: 0.2rem;
}

.drawer-contacts {
    margin-top: 0.85rem;
    border-top: 1px solid rgba(22, 24, 29, 0.08);
    padding-top: 0.75rem;
}

.drawer-contacts-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(22, 24, 29, 0.45);
}

.drawer-contacts-empty {
    margin: 0.45rem 0.35rem 0;
    font-size: 0.85rem;
    color: rgba(22, 24, 29, 0.55);
}

.drawer-contacts ul {
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
}

.drawer-contacts a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 0.75rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.page-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.admin-main.page-shell {
    min-height: 0;
    flex: 1 1 auto;
}

.page-shell > main,
.admin-main > main {
    flex: 1 1 auto;
    width: 100%;
}

.site-footer {
    padding: 1.25rem 1rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(22, 24, 29, 0.5);
}

.catalog-panel {
    margin-top: 0.5rem;
    padding: 0.95rem 1rem 1rem;
    border: 1px solid rgba(22, 24, 29, 0.1);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(22, 24, 29, 0.04);
}

.catalog-panel-title,
.catalog-sections-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(22, 24, 29, 0.45);
}

.catalog-search {
    margin-top: 0.45rem;
}

.catalog-sections-label {
    margin-top: 0.85rem;
}

.catalog-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.45rem;
}

.catalog-sections button {
    border: 1px solid rgba(22, 24, 29, 0.12);
    border-radius: 999px;
    background: #f4f7f8;
    color: #16181d;
    padding: 0.38rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
}

.catalog-sections button.is-on {
    border-color: #0e7a88;
    background: #0e7a88;
    color: #fff;
}

.catalog-group {
    margin-top: 1.15rem;
}

.catalog-group-title {
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.catalog-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.6rem;
}

a.product-card,
button.product-card {
    width: 100%;
    padding: 0;
    border: 1px solid rgba(22, 24, 29, 0.1);
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
}

.product-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1.35rem;
    overflow: hidden;
    min-height: 5.35rem;
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(22, 24, 29, 0.04);
}

.product-card:hover,
.product-card:focus-visible {
    border-color: #0e7a88;
    box-shadow: 0 6px 16px rgba(14, 122, 136, 0.12);
}

.product-card:focus-visible {
    outline: 2px solid #0e7a88;
    outline-offset: 2px;
}

.product-photo-wrap {
    display: flex;
    flex: 0 0 5.35rem;
    width: 5.35rem;
    background: #e7eef0;
}

.product-photo,
.product-photo-empty {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 5.35rem;
    flex: 1 1 auto;
    object-fit: cover;
}

.product-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    min-width: 0;
    padding: 0.7rem 0.9rem 0.75rem 0;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.25;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.7rem;
}

.product-price {
    font-size: 0.95rem;
    font-weight: 700;
}

.product-hours {
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.2;
    color: #0e7a88;
}

.product-note {
    font-size: 0.72rem;
    line-height: 1.3;
    color: rgba(22, 24, 29, 0.5);
}

.rent-photo {
    display: block;
    width: 7.5rem;
    height: 7.5rem;
    margin: 1.15rem auto 0;
    border: 1px solid rgba(22, 24, 29, 0.1);
    border-radius: 0.85rem;
    object-fit: cover;
    background: #e7eef0;
}

.rent-photo[hidden] {
    display: none;
}

.rent-facts {
    display: grid;
    gap: 0.35rem;
    margin: 0.9rem 0 0;
}

.rent-facts div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.92rem;
}

.rent-facts dt {
    color: rgba(22, 24, 29, 0.5);
}

.rent-facts dd {
    margin: 0;
    font-weight: 700;
}

.rent-status {
    color: #047857;
}

.rent-agree {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.rent-agree input {
    margin-top: 0.2rem;
    accent-color: #0e7a88;
}

.rent-agree a {
    color: #0e7a88;
    font-weight: 650;
    text-decoration: underline;
}

.terms-section {
    margin-top: 1.75rem;
    padding: 1rem 1.05rem 1.1rem;
    border: 1px solid rgba(22, 24, 29, 0.1);
    border-radius: 1rem;
    background: #fff;
}

.terms-section h2 {
    font-size: 1.25rem;
}

.terms-body {
    margin-top: 0.55rem;
    white-space: pre-line;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(22, 24, 29, 0.75);
}

.maintenance-screen {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: #f4f7f8;
}

.maintenance-card {
    width: min(26rem, 100%);
    padding: 1.75rem 1.4rem 1.5rem;
    border: 1px solid rgba(22, 24, 29, 0.1);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 12px 32px rgba(22, 24, 29, 0.06);
    text-align: center;
}

.maintenance-card img {
    width: min(100%, 14rem);
    height: auto;
    margin: 0 auto;
}

.maintenance-card h1 {
    margin-top: 0.85rem;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
}

.maintenance-card p {
    margin-top: 0.65rem;
    white-space: pre-line;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(22, 24, 29, 0.72);
}

.maintenance-staff {
    display: inline-block;
    margin-top: 1.15rem;
    font-size: 0.78rem;
    color: rgba(22, 24, 29, 0.45);
}

.orders-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

.orders-table th,
.orders-table td {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.orders-table th {
    padding: 0.7rem 0.75rem;
    background: #f4f7f8;
    color: rgba(22, 24, 29, 0.45);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.orders-table td {
    padding: 0.6rem 0.75rem;
    vertical-align: middle;
    border-top: 1px solid rgba(22, 24, 29, 0.08);
}

.overflow-x-auto,
.table-scroll {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid rgba(22, 24, 29, 0.1);
    border-radius: 0.85rem;
    background: #fff;
}

.record-list tr[hidden] {
    display: none;
}

.record-list.is-long .orders-table {
    font-size: 0.8rem;
}

.record-list.is-long .orders-table th,
.record-list.is-long .orders-table td {
    padding: 0.32rem 0.55rem;
}

.record-list.is-long .orders-table .mt-2 {
    margin-top: 0.2rem;
}

.record-list.is-long .orders-table .mt-1 {
    margin-top: 0.1rem;
}

.record-more {
    width: 100%;
    margin-top: 0.65rem;
}

.product-thumb {
    width: 4.5rem;
    height: 3.2rem;
    aspect-ratio: auto;
    border-radius: 0.45rem;
}

.orders-table .product-hours {
    font-size: 1.15rem;
}

.catalog-desc {
    max-width: 18rem;
    margin-top: 0.15rem;
    color: rgba(22, 24, 29, 0.62);
    font-size: 0.8rem;
    line-height: 1.35;
    white-space: normal;
}

.orders-table tr.order-status-waiting { background: #fffbeb; }
.orders-table tr.order-status-active { background: #ecfdf5; }
.orders-table tr.order-status-expired,
.orders-table tr.order-status-failed { background: #fff1f2; }
.orders-table tr.order-status-refunded { background: #f0f9ff; }
.orders-table tr.pay-status-pending { background: #fffbeb; }
.orders-table tr.pay-status-approved { background: #ecfdf5; }
.orders-table tr.pay-status-rejected { background: #fff1f2; }
.orders-table tr.pay-status-other { background: #f8fafc; }

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border-radius: 0.75rem;
    padding: 0.75rem 0.95rem;
    color: #16181d;
    font-size: 0.95rem;
    font-weight: 600;
}

.admin-main {
    min-width: 0;
}

.notice-toggle,
.popup-toggle,
.fund-pick {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.notice-bell {
    position: relative;
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(22, 24, 29, 0.15);
    border-radius: 0.8rem;
    background: #fff;
    color: #16181d;
    cursor: pointer;
}

.notice-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: #b45309;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.15rem;
    text-align: center;
}

.notice-backdrop,
.popup-backdrop {
    position: fixed;
    z-index: 65;
    inset: 0;
    background: rgba(244, 247, 248, 0.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.notice-pop,
.popup-card {
    position: fixed;
    z-index: 70;
    left: 50%;
    width: min(32rem, calc(100vw - 1.5rem));
    max-height: min(86vh, 42rem);
    overflow: auto;
    background: #fff;
    color: #16181d;
    border-radius: 1.15rem;
    padding: 1.15rem 1.15rem 1.3rem;
    box-shadow: 0 24px 50px rgba(22, 24, 29, 0.12);
    opacity: 0;
    pointer-events: none;
}

.notice-pop {
    top: 4.25rem;
    right: 0.75rem;
    left: auto;
    width: min(34rem, calc(100vw - 1rem));
    padding: 0.75rem 0.75rem 0.85rem;
    transform: translateY(-0.4rem);
}

.popup-card {
    top: 50%;
    transform: translate(-50%, -48%);
}

.notice-toggle:checked ~ .notice-backdrop,
.popup-toggle:checked + .popup-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.notice-toggle:checked ~ .notice-pop {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.popup-toggle:checked + .popup-backdrop + .popup-card {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.notice-allow {
    margin-top: 0.35rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
}

.notice-empty {
    margin-top: 0.65rem;
    color: rgba(22, 24, 29, 0.6);
    font-size: 0.875rem;
}

.notice-scroll {
    margin-top: 0.55rem;
    overflow-x: auto;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.84rem;
}

.notice-table th {
    padding: 0.35rem 0.45rem;
    color: rgba(22, 24, 29, 0.45);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.notice-table td {
    padding: 0.4rem 0.45rem;
    border-top: 1px solid rgba(22, 24, 29, 0.08);
    vertical-align: top;
}

.notice-table a {
    color: inherit;
    font-weight: 600;
}

.notice-table td:last-child a {
    color: rgba(22, 24, 29, 0.62);
    font-weight: 500;
}

.popup-head,
.popup-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.popup-actions {
    margin-top: 1.15rem;
}

.fund-progress {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.fund-progress span {
    width: 2rem;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(22, 24, 29, 0.12);
}

.fund-pane {
    display: none;
    margin-top: 1rem;
}

#fund-1:checked ~ .popup-head .dot-1,
#fund-2:checked ~ .popup-head .dot-1,
#fund-2:checked ~ .popup-head .dot-2,
#fund-3:checked ~ .popup-head .dot-1,
#fund-3:checked ~ .popup-head .dot-2,
#fund-3:checked ~ .popup-head .dot-3 {
    background: #0e7a88;
}

#fund-1:checked ~ .fund-pane-1,
#fund-2:checked ~ .fund-pane-2,
#fund-3:checked ~ .fund-pane-3 {
    display: block;
}

.pay-pick {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.pay-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: 1rem;
}

.pay-choices label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid rgba(22, 24, 29, 0.15);
    border-radius: 0.9rem;
    background: #fff;
    padding: 0.85rem 0.5rem;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
}

.pay-choices .ui-icon {
    width: 1.35rem;
    height: 1.35rem;
}

.order-card {
    border: 1px solid rgba(22, 24, 29, 0.1);
    border-left-width: 8px;
    border-radius: 1rem;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(22, 24, 29, 0.04);
}

.order-card.order-status-waiting { border-left-color: #d97706; background: #fffbeb; }
.order-card.order-status-active { border-left-color: #059669; background: #ecfdf5; }
.order-card.order-status-expired { border-left-color: #be123c; background: #fff1f2; }
.order-card.order-status-refunded { border-left-color: #0284c7; background: #f0f9ff; }
.order-card.order-status-failed { border-left-color: #e11d48; background: #fff1f2; }
.order-card.order-status-other { border-left-color: #64748b; background: #f8fafc; }

.order-status-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.order-status-label.order-status-waiting { background: #d97706; color: #fff; }
.order-status-label.order-status-active { background: #059669; color: #fff; }
.order-status-label.order-status-expired { background: #be123c; color: #fff; }
.order-status-label.order-status-refunded { background: #0284c7; color: #fff; }
.order-status-label.order-status-failed { background: #e11d48; color: #fff; }
.order-status-label.order-status-other { background: #64748b; color: #fff; }

.pay-card {
    border: 1px solid rgba(22, 24, 29, 0.1);
    border-left-width: 8px;
    border-radius: 1rem;
    background: #fff;
    padding: 1rem 1.15rem;
}

.pay-card.pay-status-pending { border-left-color: #d97706; background: #fffbeb; }
.pay-card.pay-status-approved { border-left-color: #059669; background: #ecfdf5; }
.pay-card.pay-status-rejected { border-left-color: #be123c; background: #fff1f2; }
.pay-card.pay-status-other { border-left-color: #64748b; background: #f8fafc; }

.pay-status-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pay-status-label.pay-status-pending { background: #d97706; color: #fff; }
.pay-status-label.pay-status-approved { background: #059669; color: #fff; }
.pay-status-label.pay-status-rejected { background: #be123c; color: #fff; }
.pay-status-label.pay-status-other { background: #64748b; color: #fff; }

.pay-choices label:only-child {
    grid-column: 1 / -1;
}

#pay-gcash:checked ~ .pay-choices label[for="pay-gcash"],
#pay-maya:checked ~ .pay-choices label[for="pay-maya"] {
    border-color: #0e7a88;
    background: #0e7a88;
    color: #fff;
}

.pay-detail {
    display: none;
    margin-top: 1rem;
}

#pay-gcash:checked ~ .pay-detail-gcash,
#pay-maya:checked ~ .pay-detail-maya {
    display: block;
}

@media (min-width: 800px) {
    .catalog-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .site-bar-inner {
        padding: 0.55rem 0.75rem;
    }

    .admin-nav-link {
        padding: 0.62rem 0.75rem;
    }

    .popup-card {
        width: min(32rem, calc(100vw - 1rem));
        max-height: min(90vh, 42rem);
        padding: 1rem;
    }

    main h1.font-display {
        font-size: 1.85rem;
        line-height: 1.15;
    }
}

.admin-main td {
    overflow-wrap: anywhere;
}

.admin-main .orders-table td,
.admin-main .orders-table th {
    overflow-wrap: normal;
    word-break: normal;
    white-space: nowrap;
}

.contact-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.contact-stack > li {
    width: 100%;
}

.contact-stack-page a,
.contact-stack-page button,
.contact-stack-page label {
    width: 100%;
    justify-content: center;
}

.popup-actions-center {
    justify-content: center;
}

.popup-actions-stack {
    flex-direction: column;
    align-items: stretch;
}

.popup-actions-stack > a,
.popup-actions-stack > label,
.popup-actions-stack > button {
    width: 100%;
    justify-content: center;
}

.popup-card.is-warning {
    border: 1px solid #f59e0b;
}

.auth-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem 1rem 2rem;
}

.auth-card {
    width: min(26rem, 100%);
    margin-top: auto;
    margin-bottom: auto;
    border: 1px solid rgba(22, 24, 29, 0.1);
    border-radius: 1.25rem;
    background: #fff;
    padding: 1.75rem 1.25rem 1.4rem;
    box-shadow: 0 18px 40px rgba(22, 24, 29, 0.06);
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

.auth-logo {
    height: 5.75rem;
    width: auto;
}

.auth-title {
    margin: 0;
}

.auth-note {
    margin: -0.35rem 0 1.15rem;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(22, 24, 29, 0.65);
}

.auth-links {
    margin-top: 0.9rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(22, 24, 29, 0.65);
}

.auth-links + .auth-links {
    margin-top: 0.35rem;
}

@media (min-width: 40rem) {
    .auth-card {
        padding: 2rem 1.75rem 1.6rem;
    }

    .auth-logo {
        height: 6.5rem;
    }
}

@media (min-width: 64rem) {
    .nav-drawer,
    .admin-sidebar {
        width: 30vw;
    }
}

button.is-loading,
input.is-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
    transition: none;
}

button.is-loading .ui-icon,
button.is-loading svg {
    visibility: hidden;
}

button.is-loading:disabled,
input.is-loading:disabled {
    opacity: 1;
}

button.is-loading::after,
input.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: -0.525rem;
    margin-left: -0.525rem;
    box-sizing: border-box;
    border: 2px solid #fff;
    border-top-color: rgb(14, 122, 136);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(22, 24, 29, 0.28);
    animation: btn-spin 0.7s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    button.is-loading::after,
    input.is-loading::after {
        animation: none;
    }
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}
