/* OneTarget Mini Cart – elegant neutral default. All selectors are scoped to the isolated widget.
   Elementor's per-widget styles override these defaults; no Royal or WooCommerce globals. */
.otmc-root {
    --otmc-ink:#202839;
    --otmc-muted:#748093;
    --otmc-line:#e9edf3;
    --otmc-accent:#f6ae45;
    --otmc-gap:14px;
    position:relative;
    display:inline-flex;
    vertical-align:middle;
    max-width:100%;
    font-family:inherit;
    color:var(--otmc-ink);
}
.otmc-root *, .otmc-root *::before,.otmc-root *::after {box-sizing:border-box}
.otmc-trigger {
    display:inline-flex;align-items:center;justify-content:center;gap:10px;
    cursor:pointer;background:transparent;border:1px solid transparent;border-radius:8px;
    color:inherit;padding:5px 8px;line-height:1.2;max-width:100%;min-width:0;
    font-weight:600;box-shadow:none;
    transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease;
}
.otmc-trigger:hover {background:transparent;border-color:transparent;box-shadow:none}
.otmc-trigger > svg {flex:none;width:19px;height:19px;max-width:none}
.otmc-trigger-text {min-width:0;overflow-wrap:anywhere}
.otmc-trigger:focus-visible {outline:2px solid currentColor;outline-offset:2px}
.otmc-trigger-count {
    display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 5px;
    border-radius:99px;background:#fff0d8;color:#68400c;font-size:11px;font-weight:700;
}
.otmc-backdrop {position:fixed;z-index:99997;inset:0;background:rgba(16,24,40,.50);backdrop-filter:blur(2px)}
.otmc-backdrop[hidden] {display:none!important}
.otmc-panel {
    position:fixed;top:0;right:0;bottom:0;z-index:99998;
    display:flex;flex-direction:column;width:min(100vw,460px);max-width:100vw;
    height:100dvh;max-height:100dvh;background:#f8fafc;color:var(--otmc-ink);
    box-shadow:-18px 0 65px rgba(13,25,45,.18);
    transform:translateX(105%);visibility:hidden;pointer-events:none;
    transition:transform .28s cubic-bezier(.22,1,.36,1),visibility .28s;
    direction:inherit;text-align:start;
}
.otmc-root.otmc-open .otmc-panel {transform:translateX(0);visibility:visible;pointer-events:auto}
.otmc-root[dir="rtl"] .otmc-panel {right:auto;left:0;transform:translateX(-105%);box-shadow:18px 0 65px rgba(13,25,45,.18)}
.otmc-root[dir="rtl"].otmc-open .otmc-panel {transform:translateX(0)}
.otmc-header {
    flex:none;display:flex;align-items:center;justify-content:space-between;gap:15px;
    min-height:78px;padding:18px 25px;background:#fff;border-bottom:1px solid var(--otmc-line);
}
.otmc-header h2 {margin:0;font-size:22px;font-weight:700;line-height:1.3;color:inherit;letter-spacing:-.02em}
.otmc-close {
    display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:10px;
    background:#f1f4f8;color:#687586;cursor:pointer;font-size:27px;line-height:1;padding:0;
    transition:background-color .18s ease,color .18s ease;
}
.otmc-close:hover {background:#e9edf4;color:#202839}
.otmc-scrollarea {padding:22px 22px 14px;overflow:auto;overscroll-behavior:contain;flex:1;min-height:0}
.otmc-items {margin:0!important;padding:0!important;list-style:none!important;display:flex;flex-direction:column;gap:13px}
.otmc-card {
    padding:16px;background:#fff;border:1px solid var(--otmc-line);border-radius:15px;
    min-width:0;box-shadow:0 5px 18px rgba(22,34,54,.045);
    transition:background-color .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.otmc-card:hover {background:#fff;box-shadow:0 8px 25px rgba(22,34,54,.075);border-color:#dfe5ed}
.otmc-card-body {display:flex;align-items:flex-start;gap:15px;min-width:0}
.otmc-image {width:96px;flex:0 0 96px;min-width:0}
.otmc-image a {display:block}
.otmc-image img {
    display:block!important;width:100%!important;height:auto!important;aspect-ratio:1;
    object-fit:cover;max-width:100%!important;float:none!important;margin:0!important;
    border-radius:11px;background:#f3f5f8;
}
.otmc-information {flex:1;min-width:0}
.otmc-row {display:flex;align-items:flex-start;gap:12px;min-width:0}
.otmc-product-info {flex:1;min-width:0}
.otmc-product-title,.otmc-product-title a {
    font-size:14px;line-height:1.45;font-weight:650;color:var(--otmc-ink);
    overflow-wrap:anywhere;word-break:normal;text-decoration:none;
}
.otmc-product-title a:hover {color:#b77219;text-decoration:none}
.otmc-unit-price {margin-top:7px;font-size:12px;line-height:1.4;color:var(--otmc-muted)}
.otmc-line-total {flex:0 0 auto;max-width:40%;text-align:end;white-space:nowrap;font-size:14px;font-weight:750;color:var(--otmc-ink)}
.otmc-variation {margin-top:7px;font-size:12px;color:var(--otmc-muted)}
.otmc-variation dl.variation {margin:0;display:flex;flex-wrap:wrap;gap:3px}
.otmc-variation dt,.otmc-variation dd {float:none;margin:0}
.otmc-actions {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;min-width:0}
.otmc-qty {
    display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid #e4e9f0;
    border-radius:10px;max-width:100%;min-width:0;background:#fafbfc;
}
.otmc-qty-button {
    display:grid;place-items:center;width:32px;height:32px;min-width:32px;
    border:0;border-radius:7px;background:#e9edf3;color:#3a4658;
    cursor:pointer;font-size:19px;line-height:1;padding:0;
    transition:background-color .18s ease,color .18s ease;
}
.otmc-qty-button:hover {background:#dbe3ed;color:#1b283a}
.otmc-qty-input {
    width:37px!important;min-width:0!important;height:32px!important;max-width:50px!important;min-height:0!important;
    background:transparent!important;box-shadow:none!important;border:0!important;
    padding:0 3px!important;margin:0!important;color:var(--otmc-ink)!important;
    text-align:center!important;font-size:14px!important;font-weight:650!important;
    appearance:textfield;-moz-appearance:textfield;
}
.otmc-qty-input::-webkit-outer-spin-button,.otmc-qty-input::-webkit-inner-spin-button {-webkit-appearance:none;margin:0}
.otmc-qty-static {display:inline-block;padding:8px 12px}
.otmc-remove {
    display:inline-flex;align-items:center;gap:6px;margin-inline-start:auto;padding:7px 9px;
    background:transparent;border:0;border-radius:7px;color:#8590a0;
    font-size:12px;font-weight:550;cursor:pointer;white-space:nowrap;flex:0 0 auto;
    transition:color .18s ease,background-color .18s ease;
}
.otmc-remove:hover {color:#d23d44;background:#fff0f1}
.otmc-footer {margin-top:0;border:0;padding:0}
.otmc-subtotal {
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    font-size:15px;color:#687486;margin-bottom:17px;
}
.otmc-subtotal strong {font-size:21px;font-weight:750;color:var(--otmc-ink)}
.otmc-footer-buttons {display:flex;gap:10px;flex-wrap:wrap}
.otmc-footer-buttons a {
    display:inline-flex;align-items:center;justify-content:center;text-align:center;
    flex:1 1 135px;padding:14px 12px;background:#fff;border:1px solid #dce2e9;
    border-radius:10px;color:#354154;text-decoration:none;font-size:13px;font-weight:650;
    line-height:1.35;min-width:0;transition:filter .18s ease,box-shadow .18s ease;
}
.otmc-footer-buttons a.otmc-checkout {background:var(--otmc-accent);color:#2b241b;border-color:var(--otmc-accent)}
.otmc-footer-buttons a:hover {filter:brightness(.96);box-shadow:0 5px 13px rgba(22,34,54,.09)}
/* A bottom summary remains legible when the product list scrolls; without changing AJAX markup. */
.otmc-scrollarea > .otmc-footer {
    position:sticky;bottom:-14px;z-index:2;margin:20px -22px -14px;padding:20px 22px 23px;
    background:#fff;border-top:1px solid var(--otmc-line);
    box-shadow:0 -9px 24px rgba(22,34,54,.035);
}
.otmc-empty {padding:35px 10px;color:var(--otmc-muted);text-align:center;font-size:14px}
.otmc-error {padding:12px 24px;background:#fff2f2;color:#ac2727;font-size:13px}
.otmc-root.otmc-busy .otmc-scrollarea {opacity:.65;pointer-events:none}
@media(max-width:460px) {
    .otmc-header {min-height:68px;padding:14px 17px}
    .otmc-scrollarea {padding:15px 14px 10px}
    .otmc-card {padding:12px;border-radius:12px}
    .otmc-card-body {gap:11px}
    .otmc-image {width:75px;flex-basis:75px}
    .otmc-row {flex-wrap:wrap;gap:5px}
    .otmc-product-info {flex-basis:100%}
    .otmc-line-total {max-width:100%;margin-inline-start:0;font-size:13px}
    .otmc-actions {margin-top:12px}
    .otmc-remove-label {display:none}
    .otmc-remove {font-size:15px}
    .otmc-qty-button {width:29px;height:29px;min-width:29px}
    .otmc-qty-input {width:31px!important}
    .otmc-scrollarea > .otmc-footer {bottom:-10px;margin:16px -14px -10px;padding:17px 14px 19px}
    .otmc-footer-buttons a {flex-basis:110px;font-size:12px;padding:13px 9px}
}
@media(prefers-reduced-motion:reduce) {
    .otmc-panel,.otmc-card,.otmc-trigger,.otmc-qty-button,.otmc-remove,.otmc-footer-buttons a {transition:none}
}

/* OneTarget header toggle. No shared Royal selector/class; only this widget is affected.
   Background defaults are transparent but Elementor background controls set the two
   variables, which intentionally work even against theme button !important rules. */
.elementor-widget-onetarget-mini-cart .otmc-root {
    display:inline-flex;
    width:fit-content;
    max-width:100%;
    flex:0 0 auto;
    vertical-align:middle;
    box-shadow:none;
}
.elementor-widget-onetarget-mini-cart .otmc-root > button.otmc-trigger {
    -webkit-appearance:none;
    appearance:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    width:fit-content;
    min-width:0;
    max-width:100%;
    height:auto;
    margin:0;
    padding:5px 8px;
    gap:8px;
    border:1px solid transparent;
    border-radius:0;
    background-color:var(--otmc-trigger-bg,transparent) !important;
    background-image:none !important;
    box-shadow:none;
    color:inherit;
    line-height:1.2;
    vertical-align:middle;
    cursor:pointer;
}
.elementor-widget-onetarget-mini-cart .otmc-root > button.otmc-trigger:hover,
.elementor-widget-onetarget-mini-cart .otmc-root > button.otmc-trigger:focus:not(:focus-visible),
.elementor-widget-onetarget-mini-cart .otmc-root > button.otmc-trigger:active {
    background-color:var(--otmc-trigger-hover-bg,var(--otmc-trigger-bg,transparent)) !important;
    background-image:none !important;
}
.elementor-widget-onetarget-mini-cart .otmc-root > button.otmc-trigger > svg {
    display:block;
    flex:none;
    width:19px;
    height:19px;
    fill:none;
    stroke:currentColor;
}
.elementor-widget-onetarget-mini-cart .otmc-root > button.otmc-trigger:focus-visible {
    outline:2px solid currentColor;
    outline-offset:2px;
}

/* Fixed-position drawer is portaled outside Elementor header stacking contexts.
   These rules act only on the OneTarget Mini Cart widget. */
.otmc-overlay-portal {
    position:fixed !important;
    inset:0 !important;
    z-index:2147483000 !important;
    width:0 !important;
    height:0 !important;
    pointer-events:none !important;
    overflow:visible !important;
    transform:none !important;
    filter:none !important;
    contain:none !important;
}
.otmc-overlay-portal .otmc-root {display:block;width:0;height:0;max-width:none;pointer-events:none}
.otmc-overlay-portal .otmc-backdrop,
.otmc-overlay-portal .otmc-panel {pointer-events:auto}
.otmc-overlay-portal .otmc-panel {
    position:fixed !important;
    top:0 !important;
    bottom:0 !important;
    height:100vh !important;
    height:100dvh !important;
    max-height:100dvh !important;
    margin:0 !important;
}
.otmc-overlay-portal .otmc-backdrop {position:fixed !important;inset:0 !important}
.otmc-trigger-icon {display:inline-flex;align-items:center;justify-content:center;flex:none;line-height:1}
.otmc-trigger-icon svg,.otmc-trigger-icon img {width:19px;height:19px;display:block;object-fit:contain;max-width:none}
.otmc-trigger-icon i {font-size:19px;line-height:1}
/* Compact layout changes arrangement only: all user-defined Elementor styles still apply. */
.otmc-layout-compact .otmc-scrollarea {padding:14px 16px 10px}
.otmc-layout-compact .otmc-items {gap:0}
.otmc-layout-compact .otmc-card {box-shadow:none;border:0;border-bottom:1px solid var(--otmc-line);border-radius:0;padding:12px 0}
.otmc-layout-compact .otmc-card:hover {box-shadow:none}
.otmc-layout-compact .otmc-card-body {gap:11px}
.otmc-layout-compact .otmc-image {width:68px;flex-basis:68px}
.otmc-layout-compact .otmc-image img {border-radius:7px}
.otmc-layout-compact .otmc-row {gap:7px}
.otmc-layout-compact .otmc-product-title,.otmc-layout-compact .otmc-product-title a {font-size:13px}
.otmc-layout-compact .otmc-unit-price {font-size:11px;margin-top:4px}
.otmc-layout-compact .otmc-line-total {font-size:12px;max-width:34%}
.otmc-layout-compact .otmc-actions {margin-top:8px}
.otmc-layout-compact .otmc-qty {padding:2px;gap:2px}
.otmc-layout-compact .otmc-qty-button {width:25px;min-width:25px;height:25px;font-size:16px}
.otmc-layout-compact .otmc-qty-input {width:27px!important;height:25px!important;font-size:12px!important}
.otmc-layout-compact .otmc-remove {font-size:11px;padding:4px}
.otmc-layout-compact .otmc-scrollarea > .otmc-footer {margin:14px -16px -10px;padding:15px 16px 18px}
@media(max-width:460px) {
  .otmc-layout-compact .otmc-scrollarea {padding:10px 12px}
  .otmc-layout-compact .otmc-card {padding:10px 0}
  .otmc-layout-compact .otmc-image {width:59px;flex-basis:59px}
  .otmc-layout-compact .otmc-scrollarea > .otmc-footer {margin:12px -12px -10px;padding:12px}
}

/* Compact mode: a floating dropdown anchored to the trigger, not an edge drawer. */
.otmc-overlay-portal.otmc-popup-mode {
    width:0 !important;
    height:0 !important;
}
.otmc-overlay-portal.otmc-popup-mode .otmc-backdrop { display:none !important; }
.otmc-overlay-portal.otmc-popup-mode .otmc-panel {
    position:fixed !important;
    top:auto;
    left:auto;
    right:auto;
    bottom:auto;
    width:min(360px, calc(100vw - 24px));
    height:auto !important;
    min-height:0 !important;
    max-height:calc(100dvh - 24px);
    display:flex;
    border:1px solid var(--otmc-line);
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 15px 45px rgba(13,25,45,.16);
    transform:translateY(-6px) scale(.985) !important;
    transform-origin:top center;
    opacity:0;
    transition:transform .18s ease,opacity .18s ease,visibility .18s;
}
.otmc-overlay-portal.otmc-popup-mode .otmc-root.otmc-open .otmc-panel {
    transform:translateY(0) scale(1) !important;
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}
.otmc-overlay-portal.otmc-popup-above .otmc-panel {transform-origin:bottom center;}
.otmc-popup-mode .otmc-header {min-height:50px;padding:11px 15px;}
.otmc-popup-mode .otmc-header h2 {font-size:16px;}
.otmc-popup-mode .otmc-close {width:28px;height:28px;font-size:22px;}
.otmc-popup-mode .otmc-scrollarea {padding:10px 13px;overflow:auto;min-height:0;}
.otmc-popup-mode .otmc-layout-compact .otmc-scrollarea > .otmc-footer {
    position:sticky;
    bottom:-10px;
    margin:12px -13px -10px;
    padding:13px;
}
.otmc-popup-mode .otmc-footer-buttons a {font-size:12px;padding:10px 7px;}
@media (prefers-reduced-motion:reduce) {
    .otmc-overlay-portal.otmc-popup-mode .otmc-panel {transition:none;}
}
