/* Scoped to the Caffito notebook and plugin payment result. No external font. */
#caffito-notes-drawer .dop-checkout, .dop-result {
    direction: rtl;
    font-family: var(--font-family-base, Tahoma, sans-serif);
    text-align: right;
}
#caffito-notes-drawer .dop-checkout { margin-block-start: 12px; }
#caffito-notes-drawer .dop-fields { display: grid; gap: 10px; }
#caffito-notes-drawer .dop-fields label { display: grid; gap: 5px; font-size: inherit; }
#caffito-notes-drawer .dop-fields input,
#caffito-notes-drawer .dop-fields select {
    width: 100%; min-height: 44px; box-sizing: border-box; font: inherit;
    color: inherit; background: inherit; padding: 8px 12px;
    border: 1px solid currentColor; border-radius: var(--border--radius, 12px);
}
#caffito-notes-drawer .dop-fields input:focus,
#caffito-notes-drawer .dop-fields select:focus { outline: 2px solid var(--primary--color, #00704a); outline-offset: 2px; }
#caffito-notes-drawer .dop-submit { width: 100%; min-height: 46px; font: inherit; cursor: pointer; }
#caffito-notes-drawer .dop-submit:disabled { opacity: .55; cursor: wait; }
#caffito-notes-drawer .dop-message { margin-block: 8px; line-height: 1.8; overflow-wrap: anywhere; }
#caffito-notes-drawer .dop-error { font-weight: 700; }
#caffito-notes-drawer .notes-footer[data-dop-cart] > .notes-controls,
#caffito-notes-drawer .notes-footer[data-dop-cart] > .notes-grand,
#caffito-notes-drawer .notes-footer[data-dop-cart] > .notes-first { display: none; }
#caffito-notes-drawer .notes-footer[data-dop-cart] { position: relative; bottom: auto; }
#caffito-notes-drawer .dop-empty .dop-fields,
#caffito-notes-drawer .dop-empty .dop-submit,
#caffito-notes-drawer .dop-empty .dop-server-total { display: none; }
#caffito-notes-drawer .dop-server-total { font-weight: 700; margin-block: 12px; }
.dop-result { max-width: 680px; margin: 32px auto; padding: 24px; box-sizing: border-box; line-height: 2; }
.dop-result button { font: inherit; min-height: 44px; border-radius: var(--border--radius, 12px); background: var(--primary--color, #00704a); color: #fff; border: 0; padding: 8px 18px; cursor: pointer; }
.dop-result .dop-test-note { font-weight: 700; border: 1px dashed currentColor; padding: 10px; }
@media(min-width: 640px) { #caffito-notes-drawer .dop-fields { grid-template-columns: 1fr 1fr; } #caffito-notes-drawer .dop-fields label:last-child { grid-column: 1 / -1; } }
.dop-checkout .dop-payment-hint { font-size:13px; line-height:1.9; padding:10px; background:#fff5de; border-radius:10px; }
.dop-checkout [hidden] { display:none!important; }
.notes-footer[data-dop-no-waiter] .notes-controls,.notes-footer[data-dop-no-waiter] .notes-status,.notes-footer[data-dop-no-waiter] .notes-first { display:none!important; }
#caffito-notes-drawer .dop-checkout .dop-submit { background:var(--dop-button-bg,#00704a)!important; color:var(--dop-button-text,#fff)!important; }
.dop-checkout .dop-submit:disabled { opacity:.45; }
@media(hover:hover) { #caffito-notes-drawer .dop-checkout .dop-submit:hover:not(:disabled) { background:var(--dop-button-hover-bg,#005c3d)!important; color:var(--dop-button-hover-text,#fff)!important; } }

@font-face{font-family:DOPVazirmatn;src:url(fonts/Vazirmatn.woff2) format('woff2');font-weight:100 900;font-display:swap}
.dop-serve-choice{border:1px solid #cfdbd5;padding:12px;border-radius:12px;margin:12px 0}
.dop-serve-choice legend{font-size:14px;padding:0 5px}.dop-serve-choice label{display:block;font-size:13px;margin:7px 0}
.dop-product-badges{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0;font-size:11px;line-height:1.7}
.dop-product-badges span{background:#edf5ef;color:#305c43;border-radius:20px;padding:3px 8px}.dop-product-badges .dop-discount-badge{background:#fff0d5;color:#8b5211;font-weight:600}
.dop-table-dock,.dop-service-dialog{--dop-accent:#006b52;--dop-bg:#fff;--dop-text:#12372d;--dop-radius:20px;font-family:DOPVazirmatn,Tahoma,sans-serif;color:var(--dop-text)}
.dop-table-dock{position:fixed;z-index:99990;top:50%;left:12px;display:grid;gap:8px;max-width:190px;transform:translateY(-50%)}
.dop-table-dock[data-position=right]{left:auto;right:12px}
.dop-table-dock button,.dop-table-dock a{background:var(--dop-accent);color:#fff;border:0;border-radius:var(--dop-radius);padding:12px 15px;font:600 13px DOPVazirmatn,Tahoma,sans-serif;text-align:center;cursor:pointer;text-decoration:none;box-shadow:0 5px 22px #164c2930}
.dop-table-dock [hidden]{display:none!important}
.dop-service-dialog{width:min(94vw,520px);max-height:88vh;overflow:auto;border:1px solid #b7c8bd;border-radius:var(--dop-radius);background:var(--dop-bg);padding:22px;box-shadow:0 25px 80px #09261555;box-sizing:border-box}
.dop-service-dialog:not([open]){display:none}.dop-service-dialog::backdrop{background:#0d251b70;backdrop-filter:blur(3px)}
.dop-service-dialog *{box-sizing:border-box;font-family:inherit}.dop-service-dialog p{font-size:13px;line-height:1.9;color:var(--dop-text)}
.dop-service-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #d5e0d7;padding-bottom:10px}
.dop-service-head h2{font-size:21px;margin:0;color:var(--dop-text)}.dop-service-head button{border:0;border-radius:50%;background:#e7eeea;width:36px;height:36px;font-size:24px;cursor:pointer;color:#183c2b;padding:0}
.dop-service-list{display:grid;gap:8px}.dop-service-item{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #d9e4dc;border-radius:var(--dop-radius);background:var(--dop-bg)}
.dop-service-icon{font-size:25px}.dop-service-item>div:first-of-type{flex:1;display:grid;gap:4px}.dop-service-item b{font-size:14px}.dop-service-item small{font-size:11px}
.dop-service-quantity{display:flex;direction:ltr;align-items:center;gap:4px}.dop-service-quantity input{width:34px;min-width:0;text-align:center;border:0;background:transparent;color:var(--dop-text);font:inherit;padding:0;-moz-appearance:textfield}.dop-service-quantity input::-webkit-inner-spin-button{display:none}
.dop-service-quantity button{border:0;border-radius:9px;background:#e8f0eb;color:#174c32;width:28px;height:32px;padding:0;font-size:21px;cursor:pointer}
.dop-service-send{width:100%;background:var(--dop-accent);color:#fff;border:0;padding:12px;border-radius:var(--dop-radius);font:600 15px DOPVazirmatn,Tahoma,sans-serif;cursor:pointer}.dop-service-send:disabled{opacity:.45;cursor:wait}
.dop-service-invoice{border-top:1px solid #dce7de;margin-top:16px;font-size:13px;line-height:1.9}.dop-service-invoice h3{font-size:17px}
@media(max-width:500px){.dop-table-dock{left:6px;max-width:138px}.dop-table-dock[data-position=right]{right:6px}.dop-table-dock button,.dop-table-dock a{font-size:11px;padding:10px 9px}.dop-service-dialog{padding:16px}.dop-service-item{padding:10px 8px}}

.dop-product-badges span{background:var(--dop-product-badge-bg,#edf5ef);color:var(--dop-product-badge-text,#305c43);border-radius:var(--dop-product-badge-radius,20px)}.dop-product-badges .dop-discount-badge{background:var(--dop-discount-badge-bg,#fff0d5);color:var(--dop-discount-badge-text,#8b5211)}
.dop-table-dock{z-index:2147483647}.dop-dock-icon{margin-inline-end:6px}body:has(#caffito-notes-drawer.open) .dop-table-dock .dop-dock-label{display:none}body:has(#caffito-notes-drawer.open) .dop-table-dock button,body:has(#caffito-notes-drawer.open) .dop-table-dock a{width:44px;height:44px;padding:9px;font-size:20px}body:has(#caffito-notes-drawer.open) .dop-dock-icon{margin:0}

/* Equal-spaced right dock, keeping the theme's notebook identity. */
.dop-table-dock{top:auto;bottom:24px;left:auto!important;right:16px!important;transform:none;gap:8px;max-width:calc(100vw - 32px);align-items:end;justify-items:end}
.dop-table-dock>#caffito-notes-toggle{position:static!important;inset:auto!important;transform:none!important;display:flex!important;flex-direction:row!important;align-items:center;justify-content:center;gap:8px;width:max-content!important;max-width:calc(100vw - 32px)!important;height:auto!important;min-height:52px;margin:0!important;padding:12px var(--dop-notebook-padding,20px)!important;background:var(--gray-700,#383838)!important;color:var(--gray-100,#fff)!important;border:3px solid var(--gray-500,#a0a0a0)!important;border-radius:1000px!important;font-family:var(--font-family-base,Tahoma,sans-serif)!important;font-size:var(--dop-notebook-font-desktop,18px)!important;font-weight:500!important;line-height:1.5!important;white-space:nowrap!important;box-shadow:0 5px 22px #164c2920}
.dop-table-dock>#caffito-notes-toggle[data-notebook-style=custom]{background:var(--dop-notebook-bg)!important;color:var(--dop-notebook-text)!important;border-color:var(--dop-notebook-border)!important;border-radius:var(--dop-notebook-radius)!important}
.dop-table-dock>#caffito-notes-toggle svg{width:var(--dop-notebook-icon-size,24px)!important;height:var(--dop-notebook-icon-size,24px)!important;flex:none}
.dop-table-dock>#caffito-notes-toggle i,.dop-table-dock>#caffito-notes-toggle .notes-icon{font-size:var(--dop-notebook-icon-size,24px)!important;line-height:1!important;flex:none}
.dop-notes-label{font:inherit!important;white-space:nowrap!important;flex:none}.dop-table-dock .notes-count{flex:none}
.dop-table-dock>a,.dop-table-dock>button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;margin:0;white-space:nowrap}.dop-dock-icon{margin:0}
body:has(#caffito-notes-drawer.open) .dop-table-dock .dop-notes-label,body:has(#caffito-notes-drawer.open) .dop-table-dock .notes-count{display:none}
body:has(#caffito-notes-drawer.open) .dop-table-dock>#caffito-notes-toggle{width:46px!important;height:46px!important;min-height:46px!important;padding:8px!important}
@media(max-width:600px){.dop-table-dock{right:10px!important;bottom:18px;max-width:calc(100vw - 20px)}.dop-table-dock>#caffito-notes-toggle{font-size:var(--dop-notebook-font-mobile,14px)!important;min-height:48px;max-width:calc(100vw - 20px)!important}}
/* Extra metadata grows the card instead of escaping its fixed theme height. */
.product-card[data-dop-meta]{height:auto!important;min-height:180px;gap:12px;min-width:0;box-sizing:border-box}
.product-card[data-dop-meta] .product-card-upper{min-width:0;flex:1;align-items:flex-start}
.product-card[data-dop-meta] .product-card-details{min-width:0}
.product-card[data-dop-meta] .product-card-button{position:static!important;flex-shrink:0;width:100%;margin-top:auto;white-space:normal}
.product-cards:has(.product-card[data-dop-meta]){gap:var(--gap--,20px)!important;grid-auto-rows:auto;align-items:stretch}
.dop-original-price{display:inline-block;flex-basis:100%;color:var(--gray-500,#777);font-size:.85em;font-weight:400;margin-bottom:4px;text-decoration:line-through}
.product-card[data-dop-meta] .price-section:has(.dop-original-price){flex-wrap:wrap;gap:4px 6px;height:auto}
.product-card[data-dop-meta] .dop-product-badges{margin:8px 0 0}

/* Caffito barista carousel has a separate fixed-height card and nested price row. */
.owl-carousel-bestseller.dop-product-carousel .owl-stage{display:flex;align-items:stretch}
.owl-carousel-bestseller.dop-product-carousel .owl-item{display:flex;height:auto!important;flex-shrink:0}
.owl-carousel-bestseller.dop-product-carousel .product-card[data-dop-meta]{display:flex;flex-direction:column;align-self:stretch;height:auto!important;max-height:none!important;width:100%;overflow:hidden}
.owl-carousel-bestseller.dop-product-carousel .product-card-upper{flex:1 1 auto;height:auto!important;min-height:0;overflow:visible}
.product-card[data-dop-meta] .price-caption-section{min-width:0;flex:1;display:flex;flex-direction:column;height:auto!important;overflow:visible}
.product-card[data-dop-meta] .number-toman-section{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px;min-width:0;width:auto!important}
.product-card[data-dop-meta] .number-toman-section .dop-original-price{display:block;flex-basis:100%;white-space:normal;margin:0;line-height:1.7}
.product-card[data-dop-meta] .number-phrase,.product-card[data-dop-meta] .toman-phrase{white-space:nowrap;position:static!important}
.product-card[data-dop-meta] .price-section{min-width:0;height:auto!important;gap:4px 8px;align-items:baseline;flex-wrap:wrap}
.owl-carousel-bestseller.dop-product-carousel .product-card-button{height:auto!important;min-height:44px;line-height:1.7;padding:10px;box-sizing:border-box}
.owl-carousel-bestseller.dop-product-carousel .owl-stage-outer{height:auto!important;max-height:none!important}

.dop-personal-orders{font:inherit;position:relative;max-width:360px}.dop-personal-orders>summary{list-style:none;background:var(--dop-accent,#00704a);color:#fff;border-radius:24px;padding:16px 22px;font-weight:800;cursor:pointer}.dop-personal-orders>div{position:absolute;bottom:100%;right:0;background:#fff;box-shadow:0 10px 35px #0003;border-radius:14px;padding:12px;max-height:40vh;overflow:auto;min-width:240px}.dop-personal-orders>div>a{display:block;padding:12px;color:#12372d;text-decoration:none;border-bottom:1px solid #eee}.dop-personal-orders[hidden]{display:none!important}.dop-bill-released{outline:3px solid #00704a55}

/* In RTL grids, start is the physical right edge. All floating actions share notebook geometry. */
.dop-table-dock{justify-items:start!important;direction:rtl;max-width:calc(100vw - 24px)}.dop-table-dock>.dop-personal-orders{justify-self:start;width:max-content;max-width:calc(100vw - 24px)}
.dop-table-dock .dop-dock-control{display:flex!important;align-items:center;justify-content:center;gap:8px;width:max-content;max-width:calc(100vw - 24px);min-height:52px;margin:0;padding:12px var(--dop-dock-padding,20px);background:var(--gray-700,#383838)!important;color:var(--gray-100,#fff)!important;border:3px solid var(--gray-500,#a0a0a0)!important;border-radius:1000px!important;font-family:var(--font-family-base,Tahoma,sans-serif)!important;font-size:var(--dop-dock-font-desktop,18px)!important;font-weight:500!important;line-height:1.5;white-space:nowrap;cursor:pointer;box-shadow:0 5px 22px #164c2920;list-style:none}
.dop-table-dock[data-dock-style=custom] .dop-dock-control{background:var(--dop-dock-bg)!important;color:var(--dop-dock-text)!important;border-color:var(--dop-dock-border)!important;border-radius:var(--dop-dock-radius)!important}.dop-table-dock .dop-dock-control .dop-dock-icon{font-size:var(--dop-dock-icon-size,24px);flex:none}
.dop-table-dock .dop-dock-control[hidden]{display:none!important}.dop-personal-orders>div>a{font-size:14px!important;white-space:normal!important;height:auto!important;color:#12372d!important;background:#fff!important}
body:has(#caffito-notes-drawer.open) .dop-table-dock .dop-dock-control{width:46px!important;height:46px!important;min-height:46px!important;padding:7px!important}body:has(#caffito-notes-drawer.open) .dop-personal-orders>summary .dop-dock-label{display:none}
.dop-checkout-dialog{width:min(94vw,600px);max-height:90dvh;overflow:auto;border:1px solid #d5e5df;border-radius:24px;padding:24px;font:16px DOPVazirmatn,Tahoma;line-height:1.8;color:#12372d;background:#fff}.dop-checkout-dialog::backdrop{background:#0007}.dop-checkout-dialog header{display:flex;align-items:center;justify-content:space-between;gap:10px}.dop-checkout-dialog h2{font-size:22px;margin:0}.dop-checkout-dialog header button{border:0;background:#edf3ef;width:40px;height:40px;border-radius:50%;font-size:24px;cursor:pointer}.dop-checkout-totals{padding:16px;background:#edf5f1;border-radius:16px;margin:18px 0}.dop-checkout-totals>*{display:block}.dop-checkout-totals strong{font-size:22px}.dop-checkout-dialog fieldset{border:1px solid #d5e5df;border-radius:16px;padding:16px}.dop-checkout-dialog fieldset label,.dop-split-choice{display:flex;gap:10px;align-items:center;padding:10px}.dop-checkout-dialog input{font:inherit;accent-color:#00704a}.dop-checkout-primary,.dop-checkout-secondary{display:block;width:100%;padding:16px;margin:12px 0;border:0;border-radius:14px;font:700 16px DOPVazirmatn,Tahoma;cursor:pointer;background:#00704a;color:#fff}.dop-checkout-secondary{background:#fff1f0;color:#922e34;border:1px solid #e6b8b8}.dop-checkout-dialog button:disabled{opacity:.5;cursor:wait}.dop-split-item{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #e4ece7;padding:14px 0}.dop-split-item small{display:block;font-size:12px;color:#526e63}.dop-split-item input{width:75px;border:1px solid #b7cfc1;padding:8px;border-radius:10px;text-align:center}.dop-checkout-notice{font-weight:700;color:#984638}.dop-chrome-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.dop-share-tickets article{padding:12px;border:1px solid #d5e5df;border-radius:12px;margin:8px 0}
@media(max-width:600px){.dop-table-dock .dop-dock-control{font-size:var(--dop-dock-font-mobile,14px)!important;min-height:48px;max-width:calc(100vw - 20px)}.dop-checkout-dialog{padding:18px}.dop-checkout-totals strong{font-size:19px}}
.dop-payer-name{display:grid;gap:8px;margin:15px 0;font-size:14px}.dop-payer-name input{font:inherit;padding:12px 14px;border:1px solid #c2d9ce;border-radius:12px;min-width:0}.dop-split-items{max-height:380px;overflow:auto}.dop-split-item input[type=checkbox]{width:23px;height:23px;min-width:23px;accent-color:#00704a;padding:0}.dop-split-item:has(input:checked){background:#eaf7f0;border-radius:12px;padding:12px}
