/* R-Style Live — klientės mobilus krepšelis */
:root {
    --rs-c-bg: #f4f2fd;
    --rs-c-card: #ffffff;
    --rs-c-text: #1a1b22;
    --rs-c-muted: #5b5e6b;
    --rs-c-line: #e4e2ef;
    --rs-c-primary: #2563eb;
    --rs-c-primary-press: #1d4ed8;
    --rs-c-ok: #16a34a;
    --rs-c-warn: #d97706;
    --rs-c-danger: #dc2626;
    --rs-c-radius: 16px;
    --rs-c-tap: 44px;
}
.rs-c-standalone,
.rs-c-standalone body {
    margin: 0;
    min-height: 100%;
    background: var(--rs-c-bg);
    color: var(--rs-c-text);
    font-family: Geist, "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
.rs-c-app {
    max-width: 560px;
    margin: 0 auto;
    padding: 12px 16px 32px;
    min-height: 100%;
    box-sizing: border-box;
}
.rs-c-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0 18px;
}
.rs-c-brand {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rs-c-muted);
}
.rs-c-hello {
    margin: 0 0 6px;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 650;
}
.rs-c-lead {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--rs-c-muted);
}
.rs-c-steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin: 0 0 20px;
}
.rs-c-step {
    background: var(--rs-c-card);
    border: 1px solid var(--rs-c-line);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
}
.rs-c-step.is-done {
    border-color: #bbf7d0;
    background: #f0fdf4;
}
.rs-c-step.is-now {
    border-color: #bfdbfe;
    background: #eff6ff;
}
.rs-c-step__n {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rs-c-muted);
    margin-bottom: 4px;
}
.rs-c-step.is-now .rs-c-step__n { color: var(--rs-c-primary); }
.rs-c-step.is-done .rs-c-step__n { color: var(--rs-c-ok); }
.rs-c-step__t {
    font-size: 13px;
    font-weight: 600;
}
.rs-c-wait {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--rs-c-radius);
    padding: 14px 16px;
    margin: 0 0 16px;
}
.rs-c-wait h2 {
    margin: 0 0 8px;
    font-size: 15px;
}
.rs-c-wait ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.rs-c-wait li {
    padding: 8px 0;
    border-top: 1px solid #fed7aa;
    font-size: 14px;
}
.rs-c-wait li:first-child { border-top: 0; padding-top: 0; }
.rs-c-wait .rs-c-item__sub { margin: 2px 0 6px; }
.rs-c-wait .rs-c-item__status { margin-top: 2px; }
.rs-c-wait--no {
    background: #fef2f2;
    border-color: #fecaca;
}
.rs-c-wait--no h2 { color: #991b1b; }
.rs-c-wait--no li { border-top-color: #fecaca; }
.rs-c-empty {
    background: var(--rs-c-card);
    border-radius: var(--rs-c-radius);
    padding: 28px 20px;
    text-align: center;
    color: var(--rs-c-muted);
}
.rs-c-order {
    background: var(--rs-c-card);
    border: 1px solid var(--rs-c-line);
    border-radius: var(--rs-c-radius);
    margin: 0 0 16px;
    overflow: hidden;
}
.rs-c-order__head {
    padding: 16px 16px 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}
.rs-c-order__title {
    margin: 0;
    font-size: 17px;
    font-weight: 650;
}
.rs-c-order__meta {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--rs-c-muted);
}
.rs-c-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}
.rs-c-pill--pay { background: #fef3c7; color: #92400e; }
.rs-c-pill--prep { background: #dbeafe; color: #1e40af; }
.rs-c-pill--sent { background: #dcfce7; color: #166534; }
.rs-c-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid var(--rs-c-line);
    align-items: start;
}
.rs-c-item img {
    width: 72px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--rs-c-bg);
    display: block;
}
.rs-c-item__ph {
    width: 72px;
    height: 90px;
    border-radius: 10px;
    background: var(--rs-c-bg);
}
.rs-c-item__name {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.3;
}
.rs-c-item__sub {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--rs-c-muted);
    line-height: 1.35;
}
.rs-c-item__status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
    background: #eef2ff;
    color: #3730a3;
}
.rs-c-item__status--ok {
    background: #dcfce7;
    color: #166534;
}
.rs-c-item__status--no {
    background: #fee2e2;
    color: #991b1b;
}
.rs-c-order--wait {
    border-color: #fed7aa;
}
.rs-c-order--wait .rs-c-item {
    border-top-color: #ffedd5;
}
.rs-c-item__status--wait {
    background: #ffedd5;
    color: #9a3412;
}
.rs-c-item__status--warn {
    background: #fef3c7;
    color: #92400e;
}
.rs-c-del {
    width: var(--rs-c-tap);
    height: var(--rs-c-tap);
    margin: -8px -8px 0 0;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 22px;
    line-height: 1;
    border-radius: 12px;
    cursor: pointer;
}
.rs-c-del:active { background: #fef2f2; color: var(--rs-c-danger); }
.rs-c-note {
    margin: 0 16px 16px;
    padding: 12px 14px;
    background: #eff6ff;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
    color: #1e3a8a;
}
.rs-c-note strong { color: var(--rs-c-text); }
.rs-c-pay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 16px 16px;
}
.rs-c-pay small {
    display: block;
    color: var(--rs-c-muted);
    font-size: 12px;
}
.rs-c-pay__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.rs-c-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 16px 16px;
    padding: 12px 14px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 12px;
    color: #9a3412;
    font-size: 14px;
    line-height: 1.45;
}
.rs-c-alert p {
    margin: 0;
}
.rs-c-alert__icon {
    flex: 0 0 auto;
    margin-top: 1px;
}
.rs-c-countdown {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    color: #9a3412;
    letter-spacing: 0.01em;
}
.rs-c-countdown.is-over {
    color: #991b1b;
}
.rs-c-order--paid {
    background: #f8fafc;
}
.rs-c-ship {
    margin: 0 16px 16px;
    padding: 12px 14px;
    background: var(--rs-c-bg);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}
.rs-c-ship span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--rs-c-muted);
    margin-bottom: 4px;
}
.rs-c-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 8px -16px -12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--rs-c-line);
    display: flex;
    align-items: center;
    gap: 12px;
}
.rs-c-standalone .rs-c-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.rs-c-bar__sum {
    flex: 1;
    min-width: 0;
}
.rs-c-bar__sum small {
    display: block;
    font-size: 12px;
    color: var(--rs-c-muted);
}
.rs-c-bar__sum strong {
    font-size: 18px;
    letter-spacing: -0.02em;
}
.rs-c-item__why {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 400;
    color: #9ca3af;
}
.rs-c-btn,
a.rs-c-btn,
a.rs-c-btn:hover,
a.rs-c-btn:focus,
a.rs-c-btn:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--rs-c-tap);
    padding: 0 20px;
    border-radius: 12px;
    background: var(--rs-c-primary);
    color: #fff;
    font-weight: 650;
    font-size: 16px;
    text-decoration: none !important;
    border: 0;
    white-space: nowrap;
    box-shadow: none;
}
.rs-c-btn:active { background: var(--rs-c-primary-press); color: #fff; }
.rs-c-btn.is-done {
    background: var(--rs-c-ok);
}
.rs-c-error {
    padding: 40px 20px;
    text-align: center;
}

@media (min-width: 782px) {
    .rs-c-app { padding-top: 8px; }
}

body.rstyle-customer-live {
    background: var(--rs-c-bg);
}
body.rstyle-customer-live .woocommerce {
    max-width: 980px;
    margin: 24px auto 48px;
    padding: 0 16px;
    box-sizing: border-box;
}
body.rstyle-customer-live .woocommerce-MyAccount-navigation,
body.rstyle-customer-live .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
}
body.rstyle-customer-live .woocommerce-MyAccount-navigation {
    margin: 0 0 20px;
}
body.rstyle-customer-live .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none !important;
    margin: 0;
    padding: 0;
}
body.rstyle-customer-live .woocommerce-MyAccount-navigation li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    list-style: none !important;
}
body.rstyle-customer-live .woocommerce-MyAccount-navigation li::before,
body.rstyle-customer-live .woocommerce-MyAccount-navigation li::marker {
    content: none !important;
}
body.rstyle-customer-live .woocommerce-MyAccount-navigation a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--rs-c-line);
    color: var(--rs-c-text) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(26, 27, 34, 0.04);
}
body.rstyle-customer-live .woocommerce-MyAccount-navigation li.is-active a,
body.rstyle-customer-live .woocommerce-MyAccount-navigation a[aria-current="page"] {
    background: var(--rs-c-primary);
    border-color: var(--rs-c-primary);
    color: #fff !important;
}
body.rstyle-customer-live .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
    background: transparent;
    color: var(--rs-c-muted) !important;
}
body.rstyle-customer-live .woocommerce-MyAccount-content {
    background: transparent;
}
body.rstyle-customer-live .woocommerce-MyAccount-content > h2,
body.rstyle-customer-live .woocommerce-MyAccount-content > h3 {
    font-family: Geist, "Segoe UI", system-ui, sans-serif;
}
.rs-c-ask {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    font-family: Geist, "Segoe UI", system-ui, sans-serif;
}
.rs-c-ask__open,
.rs-c-ask__send {
    border: 0;
    background: var(--rs-c-primary);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.rs-c-ask__open {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}
.rs-c-ask__panel {
    width: min(360px, calc(100vw - 32px));
    height: min(460px, calc(100vh - 96px));
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--rs-c-line);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(26, 27, 34, 0.16);
    overflow: hidden;
}
.rs-c-ask__panel[hidden] {
    display: none;
}
.rs-c-ask__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--rs-c-line);
    font-size: 14px;
}
.rs-c-ask__close {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--rs-c-muted);
}
.rs-c-ask__log {
    flex: 1;
    overflow: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rs-c-ask__msg {
    max-width: 90%;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
}
.rs-c-ask__msg--user {
    align-self: flex-end;
    background: #dbeafe;
}
.rs-c-ask__msg--bot {
    align-self: flex-start;
    background: #f4f2fd;
}
.rs-c-ask__form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--rs-c-line);
}
.rs-c-ask__input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--rs-c-line);
    border-radius: 999px;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
}
.rs-c-ask__send {
    border-radius: 999px;
    padding: 0 14px;
}
.rs-c-ask__send:disabled {
    opacity: 0.6;
}
body.rstyle-customer-live .woocommerce-MyAccount-content > p,
body.rstyle-customer-live .woocommerce-MyAccount-content > .woocommerce-info,
body.rstyle-customer-live .woocommerce-MyAccount-content > .woocommerce-message,
body.rstyle-customer-live .woocommerce > .woocommerce-info,
body.rstyle-customer-live .woocommerce > .woocommerce-message,
body.rstyle-customer-live .woocommerce > .woocommerce-notices-wrapper .woocommerce-info,
body.rstyle-customer-live .woocommerce > .woocommerce-notices-wrapper .woocommerce-message {
    display: none;
}

/* 2.5.28: when to pay, longer for more items; never "cancelled" */
.rs-c-alert__text p + p { margin-top: 6px; }
.rs-c-alert--late { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.rs-c-cod-box { margin: 4px 0 14px; padding: 14px 16px; border: 2px solid #16a34a; border-radius: 12px; background: #f0fdf4; color: #14532d; font-size: 15px; line-height: 1.45; }
.rs-c-cod-box p { margin: 0; }
.rs-c-cod-box p + p { margin-top: 6px; }
.rs-c-cod-box strong { font-size: 18px; }
