/* Products grid */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    position: relative;
    min-height: 235px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--card);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    background: var(--card-hover);
    border-color: rgba(25, 230, 209, 0.25);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.product-card.is-disabled {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: 0.58;
}

.product-card.is-disabled:hover {
    transform: none;
    background: var(--card);
    border-color: var(--border);
    box-shadow: none;
}

.product-card.is-disabled::after {
    content: attr(data-unavailable-label);
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.68);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.light-mode .product-card.is-disabled::after {
    background: rgba(255, 255, 255, 0.85);
    color: #111827;
    border: 1px solid rgba(16, 32, 43, 0.12);
}

.product-card.is-disabled .product-image img {
    filter: grayscale(1);
}

.product-card.is-disabled:hover .product-image img {
    transform: none;
}

.product-card.is-disabled .favorite-btn {
    display: none;
}

/* Favorite buttons */

.favorite-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(8, 14, 22, 0.75);
    color: #9aa4b2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: 0.2s ease;
}

.favorite-btn svg,
.modal-favorite-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: 0.2s ease;
}

.favorite-btn:hover {
    transform: scale(1.06);
    color: #ff315d;
    border-color: rgba(255, 49, 93, 0.28);
    background: rgba(255, 49, 93, 0.08);
}

.favorite-btn.is-active,
.modal-favorite-btn.is-active {
    color: #ff174f;
    background: rgba(255, 23, 79, 0.12);
    border-color: rgba(255, 23, 79, 0.35);
    box-shadow: 0 10px 22px rgba(255, 23, 79, 0.20);
}

.favorite-btn.is-active svg,
.modal-favorite-btn.is-active svg {
    fill: currentColor;
    filter: drop-shadow(0 0 8px rgba(255, 23, 79, 0.35));
}

body.light-mode .favorite-btn {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(16, 32, 43, 0.10);
}

body.light-mode .favorite-btn.is-active {
    background: rgba(255, 23, 79, 0.10);
    border-color: rgba(255, 23, 79, 0.25);
}

/* Product card content */

.product-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-body {
    padding: 16px 18px 18px;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
}

.product-name {
    min-height: 52px;
    color: var(--text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.6;
}

.product-price {
    color: var(--primary);
    font-size: 20px;
    font-weight: 900;
    direction: ltr;
    text-align: right;
}

.product-login-note {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

html[dir="ltr"] .product-price,
body.ltr .product-price {
    text-align: left;
}

/* Overlays */

.product-modal-overlay,
.status-modal-overlay,
.save-account-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.product-modal-overlay.show,
.status-modal-overlay.show,
.save-account-popup-overlay.show {
    display: flex;
}

/* Modals */

.product-modal,
.status-modal {
    width: 100%;
    max-width: 560px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: #0b1018;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.40);
}

.product-modal {
    overflow: visible;
}

.status-modal {
    overflow: hidden;
}

.save-account-popup {
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: #0b1018;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

body.light-mode .product-modal,
body.light-mode .status-modal,
body.light-mode .save-account-popup {
    background: #ffffff;
}

.product-modal-header,
.status-modal-header,
.save-account-popup-header {
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body.light-mode .product-modal-header,
body.light-mode .status-modal-header,
body.light-mode .save-account-popup-header {
    border-bottom-color: rgba(16, 32, 43, 0.08);
}

.product-modal-title,
.status-modal-title,
.save-account-popup-title {
    min-width: 0;
    color: var(--text);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-modal-body,
.status-modal-body,
.save-account-popup-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-modal-body {
    overflow: visible;
}

.modal-favorite-btn,
.status-modal-close,
.save-account-popup-close {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: 1px solid var(--soft-btn-border);
    border-radius: 14px;
    background: var(--soft-btn);
    color: var(--text);
    cursor: pointer;
}

.modal-favorite-btn {
    color: #9aa4b2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: 0.2s ease;
}

.modal-favorite-btn:hover {
    transform: scale(1.05);
    color: #ff315d;
    border-color: rgba(255, 49, 93, 0.26);
}

.status-modal-close,
.save-account-popup-close {
    font-size: 22px;
}

/* Form */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    overflow: visible;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label,
.save-account-popup-label {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.field input,
.save-account-popup-input {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--soft-btn-border);
    border-radius: 16px;
    background: var(--soft-btn);
    color: var(--text);
    padding: 0 14px;
    outline: none;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.field input::placeholder,
.save-account-popup-input::placeholder {
    color: var(--muted);
    font-weight: 800;
}

.field input:focus,
.save-account-popup-input:focus {
    border-color: rgba(25, 230, 209, 0.38);
    box-shadow: 0 0 0 4px rgba(25, 230, 209, 0.08);
}

.field input.is-locked {
    opacity: 0.78;
    cursor: not-allowed;
    border-color: rgba(25, 230, 209, 0.18);
    background: rgba(25, 230, 209, 0.055);
}

/* Quantity */

.quantity-total-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 10px;
    align-items: stretch;
}

.quantity-input-wrap {
    position: relative;
    min-width: 0;
}

.quantity-input-wrap input {
    padding-left: 46px;
}

.quantity-clear-btn {
    position: absolute;
    top: 50%;
    left: 11px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #ff6b6b;
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.68;
    transform: translateY(-50%);
    transition: 0.18s ease;
}

.quantity-clear-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}

.quantity-clear-btn:active {
    transform: translateY(-50%) scale(0.94);
}

.quantity-total-box,
.single-total-box {
    min-height: 54px;
    border: 1px solid rgba(25, 230, 209, 0.14);
    border-radius: 16px;
    background: rgba(25, 230, 209, 0.06);
    padding: 7px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.quantity-total-label,
.single-total-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.quantity-total-value,
.single-total-value {
    color: var(--primary);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
    direction: ltr;
    text-align: right;
    white-space: nowrap;
}

.quantity-total-box.is-error,
.single-total-box.is-error {
    border-color: rgba(255, 107, 107, 0.45);
    background: rgba(255, 107, 107, 0.08);
}

.quantity-total-box.is-error .quantity-total-value,
.single-total-box.is-error .single-total-value {
    color: #ff6b6b;
}

.qty-meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.qty-hint-part {
    color: var(--muted);
    transition: color 0.18s ease;
}

.qty-hint-part.is-error {
    color: #ff6b6b;
    font-weight: 900;
}

/* Saved accounts */

.saved-select-field {
    position: relative;
    z-index: 80;
    overflow: visible;
}

.saved-select-row {
    position: relative;
    z-index: 90;
    display: flex;
    align-items: stretch;
    gap: 10px;
    overflow: visible;
}

.saved-select-box {
    position: relative;
    z-index: 100;
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.saved-select-box:focus-within,
.saved-select-box.is-open {
    z-index: 9999;
}

.saved-select-trigger {
    position: relative;
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--soft-btn-border);
    border-radius: 16px;
    background: var(--soft-btn);
    color: var(--muted);
    padding: 0 46px 0 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-align: right;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: 0.2s ease;
}

.saved-select-trigger.has-value {
    color: var(--text);
    border-color: rgba(25, 230, 209, 0.22);
    background: rgba(25, 230, 209, 0.055);
}

.saved-select-trigger:hover {
    border-color: rgba(25, 230, 209, 0.22);
}

.saved-select-trigger:focus {
    outline: none;
    border-color: rgba(25, 230, 209, 0.38);
    box-shadow: 0 0 0 4px rgba(25, 230, 209, 0.08);
}

.saved-select-arrow {
    position: absolute;
    top: 27px;
    left: 16px;
    color: var(--muted);
    font-size: 14px;
    pointer-events: none;
    transform: translateY(-50%);
}

.saved-clear-btn {
    width: 54px;
    min-width: 54px;
    min-height: 54px;
    border: 1px solid rgba(255, 107, 107, 0.22);
    border-radius: 16px;
    background: rgba(255, 107, 107, 0.075);
    color: #ff6b6b;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: 0.2s ease;
}

.saved-clear-btn.show {
    display: inline-flex;
}

.saved-clear-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.35);
}

.saved-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 99999;
    width: 100%;
    max-height: min(310px, 45vh);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(11, 16, 24, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    display: none;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.light-mode .saved-select-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(16, 32, 43, 0.08);
}

.saved-select-dropdown.show {
    display: block;
}

.saved-search-wrap {
    position: relative;
    margin-bottom: 10px;
}

.saved-search-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--soft-btn-border);
    border-radius: 14px;
    background: var(--soft-btn);
    color: var(--text);
    padding: 0 14px 0 40px;
    outline: none;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
}

.saved-search-input:focus {
    border-color: rgba(25, 230, 209, 0.38);
    box-shadow: 0 0 0 4px rgba(25, 230, 209, 0.08);
}

.saved-search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    color: var(--muted);
    font-size: 13px;
    pointer-events: none;
    transform: translateY(-50%);
}

.saved-options-list {
    max-height: min(220px, 32vh);
    border-radius: 14px;
    overflow-y: auto;
    padding-bottom: 8px;
    overscroll-behavior: contain;
}

.saved-options-list::-webkit-scrollbar {
    width: 8px;
}

.saved-options-list::-webkit-scrollbar-track {
    background: transparent;
}

.saved-options-list::-webkit-scrollbar-thumb {
    background: rgba(25, 230, 209, 0.20);
    border-radius: 999px;
}

body.light-mode .saved-options-list::-webkit-scrollbar-thumb {
    background: rgba(16, 32, 43, 0.18);
}

.saved-option {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    padding: 11px 12px;
    font-family: 'Cairo', sans-serif;
    text-align: right;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: 0.16s ease;
}

.saved-option:last-child {
    margin-bottom: 6px;
}

.saved-option:hover,
.saved-option.is-active {
    background: rgba(25, 230, 209, 0.10);
}

body.light-mode .saved-option:hover,
body.light-mode .saved-option.is-active {
    background: rgba(16, 32, 43, 0.05);
}

.saved-option-name {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.5;
}

.saved-option-id {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    direction: ltr;
    text-align: left;
}

.saved-empty {
    padding: 18px 10px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.saved-link-btn {
    min-width: 120px;
    border: 1px solid var(--soft-btn-border);
    border-radius: 14px;
    background: var(--soft-btn);
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    white-space: nowrap;
}

.saved-link-btn:hover {
    border-color: rgba(25, 230, 209, 0.22);
}

/* Player ID */

.player-id-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.player-id-row input {
    flex: 1;
}

.player-id-add-btn {
    width: 54px;
    min-width: 54px;
    height: 54px;
    border: 1px solid rgba(25, 230, 209, 0.22);
    border-radius: 16px;
    background: rgba(25, 230, 209, 0.08);
    color: var(--primary);
    font-family: 'Cairo', sans-serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: 0.2s ease;
}

.player-id-add-btn:hover {
    transform: translateY(-1px);
    background: rgba(25, 230, 209, 0.14);
}

.player-id-add-btn:active {
    transform: translateY(0);
}

/* Save account popup */

.save-account-popup-text {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.save-account-popup-actions {
    display: flex;
    gap: 10px;
}

.save-account-popup-btn,
.save-account-popup-cancel-btn {
    flex: 1;
    min-height: 48px;
    border-radius: 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
}

.save-account-popup-btn {
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #031116;
}

.save-account-popup-cancel-btn {
    border: 1px solid rgba(255, 107, 107, 0.35);
    background: transparent;
    color: #ff6b6b;
}

.save-account-msg {
    min-height: 18px;
    font-size: 12px;
    font-weight: 800;
}

.save-account-msg.success {
    color: var(--primary);
}

.save-account-msg.error {
    color: #ff6b6b;
}

/* Buttons and status */

.modal-actions,
.status-modal-actions {
    margin-top: 6px;
    display: flex;
    gap: 14px;
}

.modal-actions {
    direction: ltr;
    position: relative;
    z-index: 1;
}

.modal-btn,
.status-btn {
    flex: 1;
    min-height: 52px;
    border: none;
    border-radius: 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    transition: 0.2s ease;
}

.modal-btn-primary,
.status-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #031116;
}

.modal-btn-secondary,
.status-btn-secondary {
    border: 1px solid rgba(255, 107, 107, 0.35);
    background: transparent;
    color: #ff6b6b;
}

.status-btn-dark {
    border: 1px solid var(--soft-btn-border);
    background: var(--soft-btn);
    color: var(--text);
}

.modal-note,
.status-modal-text {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.status-modal-center {
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.status-icon {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 40px;
    font-weight: 900;
}

.status-icon svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.status-icon.success {
    border: 1px solid rgba(25, 230, 209, 0.25);
    background: rgba(25, 230, 209, 0.12);
    color: var(--primary);
}

.status-icon.pending {
    border: 1px solid rgba(255, 193, 7, 0.25);
    background: rgba(255, 193, 7, 0.12);
    color: #ffc107;
}

.status-icon.error {
    border: 1px solid rgba(255, 107, 107, 0.25);
    background: rgba(255, 107, 107, 0.12);
    color: #ff6b6b;
}

/* Dynamic params */

.dynamic-params-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hidden {
    display: none !important;
}

/* LTR */

html[dir="ltr"] .quantity-total-value,
html[dir="ltr"] .single-total-value,
body.ltr .quantity-total-value,
body.ltr .single-total-value {
    text-align: left;
}

html[dir="ltr"] .quantity-input-wrap input,
body.ltr .quantity-input-wrap input {
    padding-right: 46px;
    padding-left: 14px;
}

html[dir="ltr"] .quantity-clear-btn,
body.ltr .quantity-clear-btn {
    right: 10px;
    left: auto;
}

html[dir="ltr"] .saved-select-trigger,
body.ltr .saved-select-trigger {
    padding: 0 14px 0 46px;
    text-align: left;
}

html[dir="ltr"] .saved-select-arrow,
body.ltr .saved-select-arrow {
    right: 16px;
    left: auto;
}

html[dir="ltr"] .saved-search-input,
body.ltr .saved-search-input {
    padding: 0 40px 0 14px;
    text-align: left;
}

html[dir="ltr"] .saved-search-icon,
body.ltr .saved-search-icon {
    right: 14px;
    left: auto;
}

html[dir="ltr"] .saved-option,
body.ltr .saved-option {
    text-align: left;
}

html[dir="ltr"] .modal-btn,
body.ltr .modal-btn,
html[dir="ltr"] .status-btn,
body.ltr .status-btn {
    direction: ltr;
}

/* Responsive */

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .form-grid,
    .dynamic-params-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .product-card {
        min-height: 190px;
    }

    .product-image {
        height: 110px;
    }

    .product-body {
        padding: 11px;
        gap: 8px;
    }

    .product-name {
        min-height: 40px;
        font-size: 13px;
        line-height: 1.45;
    }

    .product-price {
        font-size: 15px;
    }

    .product-login-note {
        font-size: 11px;
    }

    .favorite-btn {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .favorite-btn svg {
        width: 19px;
        height: 19px;
    }

    .product-card.is-disabled::after {
        top: 8px;
        right: 8px;
        padding: 5px 8px;
        font-size: 10px;
    }

    .product-modal-overlay {
        align-items: flex-start;
        justify-content: center;
        padding: 14px;
    }

    .product-modal {
        width: 100%;
        max-width: 94vw;
        border-radius: 22px;
        margin: auto;
        overflow: visible;
    }

    .product-modal-header,
    .status-modal-header,
    .save-account-popup-header {
        padding: 16px;
    }

    .product-modal-title,
    .status-modal-title,
    .save-account-popup-title {
        font-size: 18px;
    }

    .modal-favorite-btn,
    .status-modal-close,
    .save-account-popup-close {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 12px;
    }

    .modal-favorite-btn svg {
        width: 20px;
        height: 20px;
    }

    .product-modal-body,
    .status-modal-body,
    .save-account-popup-body {
        padding: 16px;
        gap: 14px;
    }

    .quantity-total-row {
        grid-template-columns: minmax(0, 1fr) 118px;
        gap: 8px;
    }

    .quantity-total-box,
    .single-total-box {
        min-height: 50px;
        border-radius: 14px;
        padding: 7px 9px;
    }

    .quantity-total-label,
    .single-total-label {
        font-size: 9.5px;
    }

    .quantity-total-value,
    .single-total-value {
        font-size: 14px;
    }

    .quantity-input-wrap input {
        padding-left: 40px;
    }

    .quantity-clear-btn {
        left: 8px;
        width: 26px;
        height: 26px;
        font-size: 16px;
    }

    html[dir="ltr"] .quantity-input-wrap input,
    body.ltr .quantity-input-wrap input {
        padding-right: 40px;
        padding-left: 10px;
    }

    html[dir="ltr"] .quantity-clear-btn,
    body.ltr .quantity-clear-btn {
        right: 8px;
        left: auto;
    }

    .saved-select-row {
        flex-direction: row;
        align-items: stretch;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .saved-select-box {
        flex: 1;
        min-width: 0;
    }

    .saved-select-trigger {
        min-height: 48px;
        border-radius: 14px;
        font-size: 12px;
        padding: 0 34px 0 10px;
    }

    .saved-select-arrow {
        top: 24px;
        left: 12px;
        font-size: 12px;
    }

    .saved-clear-btn {
        width: 48px;
        min-width: 48px;
        min-height: 48px;
        border-radius: 14px;
        font-size: 18px;
    }

    .saved-link-btn {
        min-width: 92px;
        min-height: 48px;
        border-radius: 14px;
        padding: 0 8px;
        font-size: 11px;
        flex-shrink: 0;
    }

    .saved-select-dropdown {
        max-height: min(295px, 46vh);
        border-radius: 16px;
        padding: 8px;
    }

    .saved-search-input {
        min-height: 42px;
        font-size: 12px;
    }

    .saved-options-list {
        max-height: min(205px, 32vh);
        padding-bottom: 8px;
    }

    .saved-option {
        padding: 9px 10px;
    }

    .saved-option-name {
        font-size: 12px;
    }

    .saved-option-id {
        font-size: 11px;
    }

    .modal-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        direction: ltr;
    }

    .status-modal-actions,
    .save-account-popup-actions {
        flex-direction: column;
    }

    .modal-btn {
        min-height: 48px;
        border-radius: 14px;
        font-size: 14px;
    }

    .field input,
    .save-account-popup-input {
        min-height: 50px;
        border-radius: 14px;
        font-size: 13px;
    }

    .player-id-row {
        gap: 8px;
    }

    .player-id-add-btn {
        width: 50px;
        min-width: 50px;
        height: 50px;
        border-radius: 14px;
        font-size: 24px;
    }

    .qty-meta {
        font-size: 11px;
        gap: 5px;
    }
}