/* Client gallery photo store (phase 2b-1, CollectionPage/store.js) */
.rb-store-sale .rb-store-bag .btn-controller { color: #fff; }
/* always-visible marker on photos for sale (the bag button itself only shows on hover, like the other buttons) */
.elem-single.rb-store-sale::before { content: ""; position: absolute; right: 8px; top: 8px; z-index: 101; width: 26px; height: 26px; border-radius: 999px; pointer-events: none;
    background: rgb(17 24 39 / .75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / 14px no-repeat; }
.elem-single.rb-store-in-cart::before { background-color: #16a34a; }
.elem-single.rb-store-in-cart::after { content: "In cart"; position: absolute; right: 40px; top: 10px; z-index: 101; background: #16a34a; color: #fff; font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; padding: 5px 8px; border-radius: 999px; pointer-events: none; }
.elem-single { position: relative; }
/* bought already (2b-2a): green check marker + "Purchased", the bag becomes a download button */
.rb-store-owned .rb-store-bag .btn-controller { color: #fff; }
.elem-single.rb-store-owned::before { content: ""; position: absolute; right: 8px; top: 8px; z-index: 101; width: 26px; height: 26px; border-radius: 999px; pointer-events: none;
    background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.elem-single.rb-store-owned::after { content: "Purchased"; position: absolute; right: 40px; top: 10px; z-index: 101; background: #16a34a; color: #fff; font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; padding: 5px 8px; border-radius: 999px; pointer-events: none; }
.csg-actions .rb-store-bag { order: -1; }
/* photo size beside the bag (photo store 3a) */
.rb-store-size { font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #fff; background: rgb(17 24 39 / .6); padding: 5px 8px; border-radius: 999px;
    white-space: nowrap; align-self: center; cursor: default; }
.csg-actions .rb-store-size { order: -2; margin-right: 8px; }
.elem-ControllBar-inner-right .rb-store-size { margin-right: 4px; }

.rb-store-fab { position: fixed; right: 20px; bottom: 20px; z-index: 1040; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border: 0; border-radius: 999px;
    background: #111827; color: #fff; font: 600 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; box-shadow: 0 8px 24px rgb(0 0 0 / .25); cursor: pointer; transition: transform .2s; }
.rb-store-fab i { font-size: 18px; }
.rb-store-fab .rb-store-count { min-width: 22px; height: 22px; border-radius: 999px; background: #fff; color: #111827; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.rb-store-fab:not(.rb-has) .rb-store-count { background: rgb(255 255 255 / .25); color: #fff; }
.rb-store-fab.rb-pop { transform: scale(1.12); }

/* above the full-screen viewers too (the In cart badge on a photo there opens it) */
.rb-store-panel { position: fixed; inset: 0; z-index: 100150; pointer-events: none; }
.rb-store-shade { position: absolute; inset: 0; background: rgb(17 24 39 / .45); opacity: 0; transition: opacity .25s; }
.rb-store-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; color: #111827; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: -12px 0 32px rgb(0 0 0 / .18);
    font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.rb-store-panel.rb-open { pointer-events: auto; }
.rb-store-panel.rb-open .rb-store-shade { opacity: 1; }
.rb-store-panel.rb-open .rb-store-sheet { transform: none; }
html.rb-store-lock, html.rb-store-lock body { overflow: hidden; }
.rb-store-head { position: relative; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 16px 18px; border-bottom: 1px solid #e5e7eb; }
.rb-store-head b { flex: 1; font-size: 18px; }
.rb-store-x, .rb-store-back { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; font-size: 18px; color: #374151; cursor: pointer; }
.rb-store-x:hover, .rb-store-back:hover { background: #f3f4f6; }
.rb-store-body { flex: 1; overflow-y: auto; padding: 4px 0 24px; }
.rb-store-pad { padding: 12px 18px; }
.rb-store-muted { color: #6b7280; }
.rb-store-small { font-size: 12px; color: #6b7280; margin: 10px 18px 0; }
.rb-store-pad .rb-store-small { margin: 10px 0 0; }
.rb-store-err { color: #dc2626; font-size: 13px; margin: 10px 18px 0; }
.rb-store-pad .rb-store-err { margin: 10px 0 0; }
.rb-store-empty { text-align: center; padding: 40px 24px 16px; color: #374151; }
.rb-store-empty i { font-size: 40px; color: #9ca3af; display: block; margin-bottom: 12px; }
.rb-store-items { list-style: none; margin: 0; padding: 0 18px; }
.rb-store-items li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.rb-store-thumb { width: 64px; height: 64px; border-radius: 8px; background: #f3f4f6 center / cover no-repeat; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; color: #6b7280; }
.rb-store-item-text { flex: 1; min-width: 0; word-break: break-word; }
.rb-store-price { text-align: right; font-weight: 600; }
.rb-store-link { border: 0; background: none; padding: 0; color: #6b7280; font-size: 12px; text-decoration: underline; cursor: pointer; }
.rb-store-offer { margin: 14px 18px 0; padding: 12px 14px; border: 1px dashed #d1d5db; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rb-store-totals { margin: 14px 18px 0; display: grid; gap: 6px; }
.rb-store-pad .rb-store-totals { margin: 14px 0 0; }
.rb-store-totals > div { display: flex; justify-content: space-between; gap: 10px; }
.rb-store-good { color: #15803d; }
.rb-store-total { border-top: 1px solid #e5e7eb; padding-top: 8px; font-size: 16px; }
.rb-store-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 36px); margin: 16px 18px 0; height: 48px; border: 0; border-radius: 12px;
    background: #111827; color: #fff !important; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none !important; }
.rb-store-pad .rb-store-btn { width: 100%; margin: 16px 0 0; }
.rb-store-btn:disabled { opacity: .5; cursor: not-allowed; }
.rb-store-btn-light { background: #fff; color: #111827 !important; border: 1px solid #d1d5db; }
.rb-store-offer .rb-store-btn, .rb-store-pad .rb-store-dl, .rb-store-dl { width: auto; height: 38px; margin: 0; padding: 0 14px; font-size: 14px; flex-shrink: 0; }
.rb-store-pad .rb-store-items { padding: 0; }
.rb-store-item-text b { font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
.rb-store-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin: 14px 0 4px; }
.rb-store-input { width: 100%; height: 44px; border: 1px solid #d1d5db; border-radius: 10px; padding: 0 12px; font-size: 16px; box-sizing: border-box; }
.rb-store-input:focus { outline: 2px solid #111827; outline-offset: 0; border-color: #111827; }
/* phone: a fixed +1 before the number (US numbers, like the rest of the platform) */
.rb-store-phone { position: relative; }
.rb-store-phone .rb-store-input { padding-left: 44px; }
.rb-store-cc { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 16px; color: #6b7280; pointer-events: none; }
.rb-store-code { letter-spacing: .4em; font-size: 22px; text-align: center; }
.rb-store-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: 13px; color: #374151; cursor: pointer; }
.rb-store-check input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: #111827; }
.rb-store-element { margin-top: 16px; min-height: 120px; }
.rb-store-done { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: #ecfdf5; color: #065f46; }
.rb-store-done i { font-size: 26px; }
.rb-store-panel [hidden] { display: none !important; }
.rb-store-mine { display: flex; align-items: center; gap: 12px; width: calc(100% - 36px); margin: 16px 18px 0; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px;
    background: #f9fafb; color: #111827; text-align: left; font: inherit; cursor: pointer; }
.rb-store-mine:hover { background: #f3f4f6; }
.rb-store-mine > i { font-size: 20px; color: #374151; }
.rb-store-mine > span { flex: 1; min-width: 0; }
.rb-store-center { text-align: center; }
.rb-store-receipt { display: inline-block; margin-top: 4px; color: #065f46; font-size: 13px; font-weight: 600; text-decoration: underline; }
@media (max-width: 640px) {
    .rb-store-fab { right: 12px; bottom: 12px; }
    .rb-store-sheet { width: 100vw; }
}

/* ===== Websites (photo store 3b): the template's portfolio tiles (rb-site.js .rb-tile) ===== */
.rb-tile.rb-store-sale, .rb-tile.rb-store-owned { position: relative; }
.rb-tile .rb-store-mark { position: absolute; top: 8px; right: 8px; z-index: 3; width: 26px; height: 26px; border-radius: 999px; pointer-events: none;
    background: rgb(17 24 39 / .75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / 14px no-repeat; }
.rb-tile.rb-store-in-cart .rb-store-mark { background-color: #16a34a; }
.rb-tile.rb-store-owned .rb-store-mark { background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.rb-tile.rb-store-in-cart .rb-store-mark::after, .rb-tile.rb-store-owned .rb-store-mark::after { position: absolute; right: 32px; top: 2px; background: #16a34a; color: #fff;
    font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.rb-tile.rb-store-in-cart .rb-store-mark::after { content: "In cart"; }
.rb-tile.rb-store-owned .rb-store-mark::after { content: "Purchased"; }
.rb-store-tilebtn { position: absolute; right: 8px; bottom: 8px; z-index: 3; width: 38px; height: 38px; border-radius: 999px; border: 0; padding: 0;
    background: rgb(17 24 39 / .72); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer;
    text-decoration: none !important; opacity: 0; transition: opacity .15s; }
.rb-store-tilebtn:hover { background: rgb(17 24 39 / .9); }
.rb-tile:hover .rb-store-tilebtn, .rb-tile:focus-within .rb-store-tilebtn { opacity: 1; }
@media (hover: none) { .rb-store-tilebtn { opacity: 1; } }
.rb-store-toast { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 100400; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 10px;
    background: #111827; color: #fff; font: 500 14px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; box-shadow: 0 8px 24px rgb(0 0 0 / .25); transition: opacity .3s; }
.rb-store-toast.is-error { background: #b91c1c; }
.rb-store-toast.is-out { opacity: 0; }
/* phones: the cart button sits above the website's Message / Book now bar; in the photo viewer, above the photo strip */
@media (max-width: 767px) { body:has(.rb-mobile-bar) .rb-store-fab { bottom: calc(76px + env(safe-area-inset-bottom)); } }
html.rb-viewer-open .rb-store-fab { bottom: 84px; padding: 0 14px; }
html.rb-viewer-open .rb-store-fab:not(.rb-has) { display: none; }
html.rb-viewer-open .rb-store-fab .rb-store-fab-label { display: none; }
html.rb-viewer-open:has(.rb-viewer.rb-strip-off) .rb-store-fab { bottom: 12px; }

/* Google sign-in at checkout (2b-2b): Google's button (galleries) or our button that opens the rebookmedia.com window (websites) */
.rb-store-google { padding-top: 4px; }
.rb-store-google-btn { display: flex; justify-content: center; min-height: 44px; }
.rb-store-google .rb-store-btn { margin-top: 0; gap: 10px; }
.rb-store-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; color: #9ca3af; font-size: 12px; }
.rb-store-or::before, .rb-store-or::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }

/* ===== Print checkout: the Buy panel (Digital | Prints, crop frame on the photo) and the Delivery step ===== */
/* above the gallery's full-screen viewer (.csg-modal 100050) and the website viewer (.rb-viewer 1000): the bag there opens it */
.rb-buy { position: fixed; inset: 0; z-index: 100200; display: none; grid-template-columns: minmax(0, 1fr) 440px; background: #111;
    font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #111827; }
.rb-buy.rb-open { display: grid; }
.rb-buy [hidden] { display: none !important; }
.rb-buy-stage { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.rb-buy-top { padding: 16px 24px 0; color: #fff; opacity: .85; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-buy-canvas { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 12px; overflow: hidden; }
.rb-buy-pic { position: relative; flex-shrink: 0; overflow: hidden; }
.rb-buy-pic img { display: block; width: 100%; height: 100%; object-fit: fill; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.rb-buy-frame { position: absolute; border: 3px solid #fff; box-sizing: border-box; box-shadow: 0 0 0 4000px rgb(0 0 0 / .55); cursor: grab; touch-action: none; }
.rb-buy-frame:active { cursor: grabbing; }
.rb-buy-frame:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }
.rb-buy-frame i { position: absolute; inset: 0; opacity: .35; pointer-events: none;
    background: linear-gradient(#fff, #fff) 33.3% 0 / 1px 100% no-repeat, linear-gradient(#fff, #fff) 66.6% 0 / 1px 100% no-repeat,
                linear-gradient(#fff, #fff) 0 33.3% / 100% 1px no-repeat, linear-gradient(#fff, #fff) 0 66.6% / 100% 1px no-repeat; }
.rb-buy-hint { padding: 0 24px 18px; text-align: center; color: #fff; font-size: 13px; opacity: .9; min-height: 20px; }
.rb-buy-turn { border: 0; background: none; padding: 0; color: #fff; text-decoration: underline; font: inherit; cursor: pointer; }
.rb-buy-panel { background: #fff; display: flex; flex-direction: column; min-height: 0; }
.rb-buy-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.rb-buy-head b { font-size: 18px; }
.rb-buy-tabs { display: flex; margin: 0 18px; border-bottom: 1px solid #e5e7eb; }
.rb-buy-tab { flex: 1; min-height: 44px; border: 0; border-bottom: 3px solid transparent; background: none; font: 600 14px/1.2 inherit; font-family: inherit; color: #6b7280; cursor: pointer; }
.rb-buy-tab[aria-selected="true"] { color: #111827; border-bottom-color: #111827; }
.rb-buy-body { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.rb-buy-body p { margin: 0; }
.rb-buy-body > .rb-store-btn, .rb-buy-body .rb-store-offer { width: 100%; margin: 0; box-sizing: border-box; }
.rb-buy-body .rb-store-offer .rb-store-btn { width: auto; margin: 0; }
.rb-buy-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rb-buy-chip { min-height: 36px; padding: 0 14px; border: 1px solid #e5e7eb; border-radius: 999px; background: #fff; font: 500 13px inherit; font-family: inherit; color: #374151; cursor: pointer; }
.rb-buy-chip[aria-pressed="true"] { background: #111827; border-color: #111827; color: #fff; }
.rb-buy-sizes { display: flex; flex-direction: column; gap: 6px; }
.rb-buy-size { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 0 12px; border: 1px solid #e5e7eb; border-radius: 10px;
    background: #fff; font: 14px inherit; font-family: inherit; color: #111827; text-align: left; cursor: pointer; }
.rb-buy-size[aria-checked="true"] { border: 2px solid #111827; padding: 0 11px; }
.rb-buy-note { margin: -4px 0 0 !important; }
.rb-buy-label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6b7280; margin-bottom: 4px; }
.rb-buy-group { display: flex; flex-direction: column; }
.rb-buy-opt { display: flex; gap: 10px; align-items: center; min-height: 36px; cursor: pointer; }
.rb-buy-opt input { width: 18px; height: 18px; accent-color: #111827; flex-shrink: 0; margin: 0; }
.rb-buy-qty { display: flex; align-items: center; gap: 12px; }
.rb-buy-qty .rb-buy-label { margin: 0; }
.rb-buy-step { display: inline-flex; border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; }
.rb-buy-step button { width: 44px; height: 40px; border: 0; background: #fff; font-size: 18px; cursor: pointer; color: #111827; }
.rb-buy-step input { width: 46px; border: 0; border-left: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb; text-align: center; font: 600 16px inherit; font-family: inherit; }
.rb-buy-foot { border-top: 1px solid #e5e7eb; padding: 12px 18px; display: flex; align-items: center; gap: 12px; }
.rb-buy-foot:empty { display: none; }
.rb-buy-foot .rb-store-btn { width: auto; flex-shrink: 0; margin: 0; padding: 0 22px; }
.rb-buy-total { flex: 1; display: flex; flex-direction: column; }
.rb-buy-total b { font-size: 18px; }
.rb-buy-total .rb-store-muted { font-size: 12px; }
.rb-buy-body .rb-buy-dig { border-style: solid; border-color: #e5e7eb; }
@media (max-width: 760px) {
    .rb-buy { grid-template-columns: 1fr; grid-template-rows: minmax(280px, 48vh) minmax(0, 1fr); }
    .rb-buy-top { padding: 10px 16px 0; font-size: 13px; }
    .rb-buy-hint { padding: 0 16px 10px; font-size: 12px; }
    .rb-buy-panel { border-radius: 16px 16px 0 0; }
    .rb-buy-head { padding: 12px 16px 4px; }
    .rb-buy-tabs { margin: 0 16px; }
    .rb-buy-body { padding: 12px 16px; }
    .rb-buy-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
}
.rb-store-prints { margin: 16px 0 0; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px; }
.rb-store-prints .rb-store-items { padding: 0; }
.rb-store-thumb-print { border: 2px solid #fff; box-shadow: 0 0 0 1px #d1d5db; }
.rb-del-opt { display: flex; align-items: flex-start; gap: 10px; padding: 12px; margin-top: 8px; border: 1px solid #e5e7eb; border-radius: 10px; cursor: pointer; }
.rb-del-opt:has(input:checked) { border: 2px solid #111827; padding: 11px; }
.rb-del-opt input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #111827; flex-shrink: 0; }
.rb-del-opt > span { flex: 1; }
.rb-del-ship { align-items: center; }
.rb-del-addr { margin: 10px 0 4px; }
.rb-del-addr #rb-del-search { margin-bottom: 2px; }
.rb-del-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px 96px; gap: 8px; }
.pac-container { z-index: 100300 !important; }
.rb-del-hand { display: inline-block; margin-top: 8px; font-size: 13px; }
.rb-del-fields .rb-del-hand { margin: 0 0 2px; }
/* Buy panel: previous / next photo, the photo's In cart badge (hover / Tab / tap lists what's in the cart), the Cart button */
.rb-buy-top { display: flex; gap: 4px; }
.rb-buy-count { opacity: .7; }
.rb-buy-canvas { position: relative; }
.rb-buy-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 52px; border-radius: 8px; border: 1px solid rgb(255 255 255 / .25);
    background: rgb(0 0 0 / .35); color: #fff; font-size: 18px; cursor: pointer; }
.rb-buy-nav:hover { background: rgb(0 0 0 / .55); }
.rb-buy-nav:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }
.rb-buy-prev { left: 12px; }
.rb-buy-next { right: 12px; }
.rb-buy-incart { position: absolute; top: 14px; right: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px;
    background: #16a34a; color: #fff; font: 600 13px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
.rb-buy-incart:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.rb-buy-incart-tip { display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; max-width: 300px; padding: 10px 12px; border-radius: 10px;
    background: #fff; color: #111827; text-align: left; font-weight: 400; font-size: 13px; line-height: 1.4; box-shadow: 0 8px 24px rgb(0 0 0 / .3); }
.rb-buy-incart-tip em { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: #6b7280; }
.rb-buy-incart-tip b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; margin-bottom: 4px; }
.rb-buy-incart-tip span { display: block; padding: 2px 0; }
.rb-buy-incart:hover .rb-buy-incart-tip, .rb-buy-incart:focus-visible .rb-buy-incart-tip, .rb-buy-incart[aria-expanded="true"] .rb-buy-incart-tip { display: block; }
.rb-buy-headacts { display: inline-flex; align-items: center; gap: 6px; }
.rb-buy-cartbtn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid #e5e7eb; border-radius: 999px; background: #fff;
    font: 600 13px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #111827; cursor: pointer; }
.rb-buy-cartn { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #111827; color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 760px) {
    .rb-buy-nav { width: 36px; height: 44px; }
    .rb-buy-prev { left: 6px; }
    .rb-buy-next { right: 6px; }
    .rb-buy-incart { height: 28px; padding: 0 10px; font-size: 12px; }
}
/* the same badge on the gallery's full-screen viewer (top-right of the photo) */
.rb-viewer-incart { top: 10px; right: 10px; z-index: 6; }
.jq-toast-wrap { z-index: 100400 !important; }
/* crop zoom: corner handle on the frame + a slider under the photo (limited to what prints sharply) */
.rb-buy-handle { position: absolute; right: -9px; bottom: -9px; width: 18px; height: 18px; border-radius: 4px; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .5);
    cursor: nwse-resize; touch-action: none; }
.rb-buy-zoom { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 24px 8px; color: #fff; font-size: 13px; }
.rb-buy-zoom label { opacity: .85; margin-right: 2px; }
.rb-buy-zoom input { width: min(260px, 50vw); accent-color: #fff; }
.rb-buy-zoomval { min-width: 36px; font-weight: 600; }
@media (max-width: 760px) { .rb-buy-zoom { padding: 0 16px 4px; font-size: 12px; } .rb-buy-zoom label { display: none; } .rb-buy-handle { width: 22px; height: 22px; right: -11px; bottom: -11px; } }

/* the project's client with digital photos included (cart + gallery note + Buy panel) */
.rb-store-incl { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #bbf7d0; background: #f0fdf4; border-radius: 12px; }
.rb-store-incl > i { font-size: 20px; color: #15803d; flex-shrink: 0; }
.rb-store-incl > div { flex: 1; min-width: 0; }
.rb-store-incl .rb-store-btn { width: auto; height: 38px; margin: 0; padding: 0 14px; font-size: 14px; flex-shrink: 0; }
.rb-incl-note { margin: -4px 0 12px; font-size: 14px; color: #166534; }
.rb-incl-note i { margin-right: 4px; }
.rb-buy-dlall { display: inline-block; margin-top: 10px; }
@media (max-width: 420px) { .rb-store-incl { flex-wrap: wrap; } .rb-store-incl .rb-store-btn { width: 100%; } }

/* download progress in the panel (included photos, bought photos, Download all) */
.rb-dl-status { margin-top: 10px; }
.rb-dl-bar { display: block; height: 6px; border-radius: 999px; background: #e5e7eb; overflow: hidden; position: relative; }
.rb-dl-bar i { display: block; height: 100%; width: 2%; background: #111827; border-radius: 999px; transition: width .15s linear; }
.rb-dl-bar-busy i { position: absolute; width: 35%; animation: rb-dl-busy 1.1s ease-in-out infinite; }
@keyframes rb-dl-busy { 0% { left: -35%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .rb-dl-bar-busy i { animation: none; left: 0; width: 100%; opacity: .35; } }
.rb-dl-text { margin: 6px 0 0; font-size: 13px; color: #374151; }
.rb-dl-done { margin: 0; padding: 10px 12px; border-radius: 10px; background: #f0fdf4; color: #166534; font-size: 13px; }
.rb-dl-err { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 13px; }
.rb-dl-done i, .rb-dl-err i { margin-right: 4px; }
.rb-store-btn:disabled .fa-spin { opacity: 1; }
/* phones: the "Save to Photos" sheet (savePhotos.css) opens above the Buy panel and the cart */
.sp-backdrop { z-index: 100260 !important; }
.sp-modal, .sp-root.open .sp-modal[role="dialog"][aria-modal="true"] { z-index: 100261 !important; }

/* Buy panel: About this product (RebookMedia's product details) */
.rb-buy-about { margin: 12px 0 0; border: 1px solid #e5e7eb; border-radius: 12px; }
.rb-buy-about > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; font-weight: 600; list-style: none; }
.rb-buy-about > summary::-webkit-details-marker { display: none; }
.rb-buy-about > summary::after { content: "+"; font-weight: 400; font-size: 18px; color: #6b7280; }
.rb-buy-about[open] > summary::after { content: "\2212"; }
.rb-buy-about > summary .rb-store-muted { flex: 1; text-align: right; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-buy-about-body { padding: 0 12px 12px; font-size: 14px; line-height: 1.5; color: #374151; }
.rb-buy-about-body p { margin: 0 0 8px; }
.rb-buy-about-body ul { margin: 0 0 8px; padding-left: 18px; list-style: disc; }
.rb-buy-about-lead { font-weight: 600; color: #111827; }
.rb-buy-about-main { height: 200px; border-radius: 10px; background: #f3f4f6; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.rb-buy-about-main img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.rb-buy-about-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.rb-buy-about-thumbs button { width: 48px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #f3f4f6; cursor: pointer; }
.rb-buy-about-thumbs button[aria-pressed="true"] { border-color: #111827; }
.rb-buy-about-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Buy panel: add-on choices with photos (add-on details) */
.rb-buy-gnote { margin: 0 0 6px; }
.rb-buy-vnote { margin: 6px 0 0; color: #374151; }
.rb-buy-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.rb-buy-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 4px; border: 2px solid #e5e7eb; border-radius: 10px; cursor: pointer; font-size: 12px; line-height: 1.3; }
.rb-buy-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rb-buy-tile img, .rb-buy-tile-none { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; background: #f3f4f6; display: block; }
.rb-buy-tile:has(input:checked) { border-color: #111827; }
.rb-buy-tile:has(input:focus-visible) { outline: 2px solid #2563eb; outline-offset: 2px; }
