button:not([class]),
input[type="submit"]:not([class]) {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #145c51;
    border-radius: 10px;
    background: #17665b;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
}

.btn {
    font-weight: 700;
}

.btn.light,
.btn-light {
    color: #24382f;
}

.mobile-pagination,
.collection-pagination {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin: 22px 0;
}

.collection-pagination > p {
    margin: 0;
    color: #68645d;
    font-size: 14px;
}

.mobile-pagination nav,
.collection-pagination nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.mobile-pagination nav > div,
.collection-pagination nav > div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.mobile-pagination nav a,
.mobile-pagination nav span,
.collection-pagination nav a,
.collection-pagination nav span {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #d9d2c7;
    border-radius: 9px;
    background: #fff;
    color: #25352f;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.mobile-pagination nav [aria-current="page"] span,
.collection-pagination nav [aria-current="page"] span {
    border-color: #17665b;
    background: #17665b;
    color: #fff;
}

@media (max-width: 850px) {
    body {
        font-size: 16px;
    }

    .sidebar {
        transform: translateX(-105%);
        transition: transform .2s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main {
        width: 100%;
        margin-left: 0;
    }

    .topbar {
        min-height: 60px;
        height: auto;
        padding: 9px 14px;
        gap: 10px;
    }

    .top-title {
        min-width: 0;
        font-size: 16px;
    }

    .content {
        padding: 18px 14px;
    }

    .page-head h1,
    .shop-welcome h1 {
        font-size: clamp(25px, 6vw, 32px);
        line-height: 1.25;
    }

    .page-head p,
    .shop-welcome p,
    .muted {
        font-size: 15px;
        line-height: 1.5;
    }

    .muted,
    .page-head p,
    .shop-welcome p {
        color: #5f5a50;
    }

    .auth-page .field label,
    .auth-page .remember,
    .auth-page .notice,
    .auth-page .alert {
        font-size: 15px;
        line-height: 1.5;
    }

    .auth-page .field input {
        min-height: 48px;
        font-size: 16px;
    }

    .auth-page .toggle-password {
        min-height: 40px;
        padding: 8px;
        background: transparent;
        color: #5f5a50;
    }

    .auth-page .btn.primary {
        min-height: 48px;
        font-size: 16px;
    }

    .eyebrow {
        font-size: 13px;
    }

    .btn,
    .btn.big {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 15px;
        white-space: normal;
        text-align: center;
    }

    .icon-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .field,
    .form-grid label,
    .entry-head label,
    .entry-search,
    .entry-category {
        font-size: 15px;
    }

    .form-grid input,
    .form-grid select,
    .form-grid textarea,
    .entry-head input,
    .report-filter input,
    .report-filter select,
    .searchbar input,
    .searchbar select {
        min-height: 46px;
        font-size: 16px;
    }

    .table th,
    .table td {
        font-size: 14px;
        line-height: 1.45;
    }

    .table td small,
    .table .muted,
    .card small {
        font-size: 14px;
    }

    .table th {
        font-size: 13px;
    }

    .table .btn {
        min-height: 42px;
        font-size: 14px;
    }

    .quick-grid,
    .shop-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .quick {
        min-height: 118px;
        padding: 14px;
    }

    .quick b {
        font-size: 16px;
        line-height: 1.35;
    }

    .quick span {
        font-size: 14px;
        line-height: 1.4;
    }

    .stats-grid,
    .shop-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stat-card {
        min-width: 0;
        padding: 14px;
    }

    .stat-card strong {
        font-size: clamp(19px, 5vw, 23px);
        overflow-wrap: anywhere;
    }

    .stat-card small,
    .shop-stats .stat-card > span {
        font-size: 14px;
        line-height: 1.4;
    }

    .card-head {
        flex-wrap: wrap;
        padding: 14px;
    }

    .card-body {
        padding: 14px;
    }

    .table-wrap,
    .excel-wrap {
        -webkit-overflow-scrolling: touch;
    }

    .dt-container .dt-info,
    .dt-container .dt-search,
    .dt-container .dt-length {
        font-size: 14px;
    }

    .dt-container .dt-search input,
    .dt-container .dt-length select {
        min-height: 42px;
        font-size: 16px;
    }

    .dt-container .dt-paging .dt-paging-button {
        min-width: 40px;
        min-height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 520px) {
    .shop-welcome {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .shop-welcome > .btn {
        width: 100%;
    }

    .quick-grid,
    .shop-actions,
    .stats-grid,
    .shop-stats {
        grid-template-columns: 1fr 1fr;
    }

    .quick {
        min-height: 112px;
        padding: 12px;
    }

    .quick span:last-child {
        font-size: 13px;
    }

    .account-menu > summary {
        padding-right: 8px;
    }

    .account-name {
        display: none;
    }

    .language-switch label {
        display: none;
    }

    .language-switch select {
        min-width: 78px;
        min-height: 42px;
        font-size: 14px;
    }

    .form-card {
        padding: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .field.full,
    .wide {
        grid-column: auto;
    }

    .actions,
    .form-actions {
        flex-wrap: wrap;
    }

    .actions > .btn,
    .form-actions > .btn {
        flex: 1 1 140px;
    }

    .measurement-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .measurement-heading > a,
    .field small a,
    .setup-notice a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 9px 12px;
        border: 1px solid #d6cdbd;
        border-radius: 9px;
        background: #fff;
        color: #145c51;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
    }

    .mobile-pagination nav a,
    .mobile-pagination nav span,
    .collection-pagination nav a,
    .collection-pagination nav span {
        min-width: 42px;
        min-height: 42px;
        padding: 7px 10px;
    }
}
