/* 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); }

.rb-store-panel { position: fixed; inset: 0; z-index: 1050; 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; }
.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: 1100; 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; }
