/* PhotoBridge v793 — mobile finance lab identity, customer invoice totals, polished gallery renewal, Instagram beta and gallery video guides. */

/* ---------- 1) Print / Finance: same lab identity geometry on mobile ---------- */
@media(max-width:820px){
  html body #root .photographerMain[data-pb791-finance="1"] .photographerPrintModeNav.pb790FinanceNav.pb791FinanceNav>.photographerPrintTopLab{
    direction:rtl!important;
    justify-content:flex-start!important;
    text-align:right!important;
    padding-inline:10px!important;
  }
  html body #root .photographerMain[data-pb791-finance="1"] .photographerPrintTopLabStatic,
  html body #root .photographerMain[data-pb791-finance="1"] .photographerPrintTopLabSelect,
  html body #root .photographerMain[data-pb791-finance="1"] .photographerPrintTopLabSelect .pbSelect{
    flex:0 1 auto!important;
    width:auto!important;
    min-width:min(220px,calc(100vw - 20px))!important;
    max-width:calc(100vw - 20px)!important;
    margin:0!important;
    direction:rtl!important;
    text-align:right!important;
    justify-content:flex-start!important;
    overflow:visible!important;
  }
  html body #root .photographerMain[data-pb791-finance="1"] .photographerPrintTopLabStatic{
    min-height:32px!important;
    height:auto!important;
    padding:5px 8px!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    line-height:1.35!important;
    align-items:center!important;
  }
  html body #root .photographerMain[data-pb791-finance="1"] .photographerPrintTopLabSelect .pbSelectTrigger,
  html body #root .photographerMain[data-pb791-finance="1"] .photographerPrintTopLabSelect .pbSelectButton{
    width:100%!important;
    max-width:calc(100vw - 20px)!important;
    min-height:32px!important;
    height:auto!important;
    padding:5px 8px!important;
    direction:rtl!important;
    text-align:right!important;
    justify-content:space-between!important;
    line-height:1.35!important;
  }
  html body #root .photographerMain[data-pb791-finance="1"] .photographerPrintTopLabSelect .pbSelectTrigger>span,
  html body #root .photographerMain[data-pb791-finance="1"] .photographerPrintTopLabSelect .pbSelectButton>span{
    min-width:0!important;
    max-width:calc(100vw - 58px)!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    text-align:right!important;
  }
}

/* ---------- 2) Public gallery: total is always visible + sheets slide in ---------- */
@keyframes pb793BackdropIn{from{opacity:0}to{opacity:1}}
@keyframes pb793SheetIn{from{opacity:.35;transform:translate3d(0,34px,0) scale(.985)}to{opacity:1;transform:translate3d(0,0,0) scale(1)}}
@keyframes pb793PopIn{from{opacity:.25;transform:translate3d(0,14px,0) scale(.97)}to{opacity:1;transform:none}}

.pb792CartLayer,.pb792NoteLayer,.pb793ModalLayer,.pb793GuideLayer{animation:pb793BackdropIn .2s ease-out both!important}
.pb792CartCard,.pb792NoteCard,.pb793ModalCard,.pb793GuideSheet,
.publicClientGalleryPage .clientGalleryOptionalOrdering,
.publicClientGalleryPage .clientGalleryFinalizeConfirm,
.publicClientGalleryPage .clientGalleryPrintOrderModal,
.publicClientGalleryPage .clientGalleryCartModal,
.publicClientGalleryPage .clientGalleryNoteModal{animation:pb793SheetIn .3s cubic-bezier(.22,.85,.3,1) both!important;transform-origin:bottom center!important}

.pb792CartCard{max-height:min(88dvh,800px)!important}
.pb792CartRows{flex:1 1 auto!important;min-height:0!important;overflow:auto!important}
.pb792CartCard>header,.pb792CartCard>footer{flex:0 0 auto!important;background:#fff!important;z-index:2!important}
.pb792CartCard>footer{position:relative!important;box-shadow:0 -8px 20px rgba(15,23,42,.045)!important}
.pb793CartTotal{
  flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
  margin:0!important;padding:10px 14px!important;border-top:1px solid #e4e7ec!important;background:linear-gradient(180deg,#f8faff 0%,#eef2ff 100%)!important;
  color:#1d2939!important;font-family:Vazirmatn,Tahoma,Arial,sans-serif!important
}
.pb793CartTotal small{font-size:10px!important;font-weight:850!important;color:#475467!important}
.pb793CartTotal b{font-size:14px!important;font-weight:950!important;color:#2448c5!important;white-space:nowrap!important}
.publicClientGalleryPage .clientGalleryFinalizeConfirm .pb793FinalizeTotal{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
  margin:10px 0!important;padding:11px 13px!important;border:1px solid #c7d2fe!important;border-radius:13px!important;background:#eef2ff!important
}
.publicClientGalleryPage .clientGalleryFinalizeConfirm .pb793FinalizeTotal small{font-size:10px!important;color:#475467!important;font-weight:850!important}
.publicClientGalleryPage .clientGalleryFinalizeConfirm .pb793FinalizeTotal b{font-size:14px!important;color:#2448c5!important;font-weight:950!important;white-space:nowrap!important}
.publicClientGalleryPage .clientGalleryCustomerOrderHead{overflow:visible!important;align-items:center!important}
.publicClientGalleryPage .clientGalleryCustomerOrderHead>strong{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;visibility:visible!important;opacity:1!important;
  min-width:max-content!important;max-width:none!important;padding:7px 10px!important;border-radius:10px!important;background:#eef2ff!important;color:#2448c5!important;
  font-size:13px!important;font-weight:950!important;white-space:nowrap!important;overflow:visible!important;position:relative!important;z-index:2!important
}
@media(max-width:520px){
  .pb792CartLayer,.pb792NoteLayer,.pb793ModalLayer,.pb793GuideLayer{padding:8px!important}
  .pb792CartCard,.pb792NoteCard,.pb793ModalCard,.pb793GuideSheet{border-radius:18px 18px 14px 14px!important;max-height:90dvh!important}
  .publicClientGalleryPage .clientGalleryCustomerOrderHead{gap:7px!important;flex-wrap:wrap!important}
  .publicClientGalleryPage .clientGalleryCustomerOrderHead>strong{font-size:11.5px!important;padding:6px 8px!important}
}

/* ---------- 3) Gallery renewal: centered, obvious CTA ---------- */
.clientGalleryCard.pb792Renewable{position:relative!important}
.clientGalleryCard.pb792Renewable .pb791GalleryLifetime{max-width:64%!important;margin-left:0!important}
.clientGalleryCard.pb792Renewable .clientGalleryCardActions .pb792RenewGallery,
.clientGalleryCardActions .pb792RenewGallery{
  position:static!important;inset:auto!important;transform:none!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex:1 1 100%!important;width:100%!important;max-width:100%!important;min-width:0!important;
  height:42px!important;min-height:42px!important;margin:5px auto 2px!important;padding:0 14px!important;
  border:1px solid #86d7a7!important;border-radius:12px!important;background:linear-gradient(180deg,#effdf4 0%,#e4f8ec 100%)!important;color:#067647!important;
  box-shadow:0 5px 14px rgba(6,118,71,.10)!important;font-size:11px!important;font-weight:950!important;line-height:1.2!important;text-align:center!important;white-space:nowrap!important
}
.clientGalleryCardActions .pb792RenewGallery::before{content:"↻";display:inline-grid;place-items:center;margin-left:6px;font-size:15px!important;line-height:1!important}
.clientGalleryCardActions .pb792RenewGallery:active{transform:translateY(1px)!important}
@media(max-width:820px){
  .clientGalleryCard.pb792Renewable .pb791GalleryLifetime{max-width:62%!important;margin-left:0!important}
  .clientGalleryCard.pb792Renewable .clientGalleryCardActions .pb792RenewGallery,
  .clientGalleryCardActions .pb792RenewGallery{height:40px!important;min-height:40px!important;font-size:10.5px!important;border-radius:11px!important}
}

/* Polished modal used by renewal + video guides. */
.pb793ModalLayer,.pb793GuideLayer{
  position:fixed!important;inset:0!important;z-index:2147483644!important;display:grid!important;place-items:end center!important;padding:12px!important;
  background:rgba(15,23,42,.58)!important;backdrop-filter:blur(3px)!important;direction:rtl!important;font-family:Vazirmatn,Tahoma,Arial,sans-serif!important
}
.pb793ModalCard,.pb793GuideSheet{
  width:min(520px,100%)!important;max-height:min(88dvh,780px)!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;
  border:1px solid rgba(255,255,255,.65)!important;border-radius:21px!important;background:#fff!important;box-shadow:0 28px 90px rgba(15,23,42,.36)!important;color:#101828!important
}
.pb793ModalHead,.pb793GuideHead{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;padding:15px 16px 12px!important;border-bottom:1px solid #eaecf0!important}
.pb793ModalHead>div,.pb793GuideHead>div{display:grid!important;gap:3px!important;min-width:0!important}
.pb793ModalHead b,.pb793GuideHead b{font-size:14px!important;font-weight:950!important;color:#101828!important}
.pb793ModalHead small,.pb793GuideHead small{font-size:9.5px!important;line-height:1.65!important;color:#667085!important}
.pb793ModalClose,.pb793GuideClose{flex:0 0 34px!important;width:34px!important;height:34px!important;border:0!important;border-radius:10px!important;background:#f2f4f7!important;color:#344054!important;font-size:21px!important;line-height:1!important;cursor:pointer!important}
.pb793ModalBody,.pb793GuideBody{min-height:0!important;overflow:auto!important;padding:14px 16px!important;-webkit-overflow-scrolling:touch!important}
.pb793ModalSummary{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-bottom:12px!important}
.pb793ModalSummary>span{display:grid!important;gap:4px!important;padding:10px!important;border:1px solid #e4e7ec!important;border-radius:12px!important;background:#f8fafc!important}
.pb793ModalSummary small{font-size:9px!important;color:#667085!important}.pb793ModalSummary b{font-size:12px!important;color:#101828!important;font-weight:950!important}
.pb793ModalMessage{margin:0!important;padding:11px 12px!important;border:1px solid #dfe5ef!important;border-radius:12px!important;background:#f8fafc!important;color:#475467!important;font-size:10px!important;line-height:1.9!important}
.pb793ModalMessage.success{border-color:#abefc6!important;background:#ecfdf3!important;color:#067647!important}.pb793ModalMessage.error{border-color:#fecdca!important;background:#fef3f2!important;color:#b42318!important}.pb793ModalMessage.warn{border-color:#fedf89!important;background:#fffaeb!important;color:#b54708!important}
.pb793ModalActions{display:grid!important;grid-template-columns:1fr 1.35fr!important;gap:8px!important;padding:10px 16px max(12px,env(safe-area-inset-bottom))!important;border-top:1px solid #eaecf0!important;background:#fff!important}
.pb793ModalActions button{min-height:43px!important;border-radius:11px!important;border:1px solid #d0d5dd!important;background:#fff!important;color:#344054!important;font-family:inherit!important;font-size:10.5px!important;font-weight:950!important;cursor:pointer!important}
.pb793ModalActions button.primary{border-color:#315efb!important;background:#315efb!important;color:#fff!important}.pb793ModalActions button.wallet{border-color:#7f56d9!important;background:#7f56d9!important;color:#fff!important}.pb793ModalActions button:disabled{opacity:.55!important;cursor:wait!important}

/* ---------- 4) Instagram for all photographers + clear experimental badge ---------- */
.photographerHomeModeNav .photographerInstagramDesignEntry,
.photographerBottomAppNav .photographerInstagramMobileNav{
  display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;position:relative!important
}
.photographerHomeModeNav .photographerInstagramDesignEntry::after{
  content:"آزمایشی";display:inline-flex!important;align-items:center!important;justify-content:center!important;margin-right:5px!important;padding:2px 5px!important;
  border:1px solid rgba(124,58,237,.24)!important;border-radius:999px!important;background:#f5f3ff!important;color:#6941c6!important;font-size:7.5px!important;font-weight:950!important;line-height:1.2!important;white-space:nowrap!important
}
.photographerBottomAppNav .photographerInstagramMobileNav::after{
  content:"آزمایشی";position:absolute!important;top:2px!important;left:2px!important;z-index:3!important;padding:2px 4px!important;border-radius:999px!important;background:#7f56d9!important;color:#fff!important;
  font-size:6px!important;font-weight:950!important;line-height:1.1!important;box-shadow:0 2px 6px rgba(15,23,42,.16)!important;white-space:nowrap!important
}

/* ---------- 5) Gallery video guide: two prepared slots (Instagram / Windows) ---------- */
.clientGalleryIntroHeader{gap:12px!important;align-items:flex-start!important;justify-content:space-between!important;flex-wrap:wrap!important}
.pb793GalleryGuideButton{
  appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;flex:0 0 auto!important;
  min-height:38px!important;padding:0 12px!important;border:1px solid #c7d2fe!important;border-radius:11px!important;background:#eef2ff!important;color:#2448c5!important;
  box-shadow:0 4px 12px rgba(49,94,251,.08)!important;font-family:Vazirmatn,Tahoma,Arial,sans-serif!important;font-size:10px!important;font-weight:950!important;cursor:pointer!important
}
.pb793GalleryGuideButton>span{display:grid!important;place-items:center!important;width:22px!important;height:22px!important;border-radius:7px!important;background:#315efb!important;color:#fff!important;font-size:9px!important}
.pb793GuideChoices{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.pb793GuideChoice{appearance:none!important;display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;grid-template-areas:"icon copy" "status status"!important;align-items:center!important;gap:6px 9px!important;min-height:108px!important;padding:12px!important;border:1px solid #dfe5ef!important;border-radius:15px!important;background:#fff!important;text-align:right!important;font-family:inherit!important;color:#101828!important;cursor:pointer!important;box-shadow:0 3px 10px rgba(15,23,42,.04)!important}
.pb793GuideChoice:hover{border-color:#a5b4fc!important;background:#f8faff!important}.pb793GuideChoice:disabled{cursor:default!important;opacity:.78!important;background:#f8fafc!important}
.pb793GuideIcon{grid-area:icon!important;display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border-radius:11px!important;background:#eef2ff!important;color:#315efb!important;font-size:18px!important}
.pb793GuideChoice>div{grid-area:copy!important;display:grid!important;gap:3px!important}.pb793GuideChoice b{font-size:11px!important;font-weight:950!important}.pb793GuideChoice small{font-size:8.5px!important;line-height:1.6!important;color:#667085!important}
.pb793GuideStatus{grid-area:status!important;display:inline-flex!important;width:max-content!important;max-width:100%!important;padding:3px 7px!important;border-radius:999px!important;background:#ecfdf3!important;color:#067647!important;font-size:8px!important;font-weight:900!important}.pb793GuideChoice:disabled .pb793GuideStatus{background:#f2f4f7!important;color:#667085!important}
.pb793GuideHint{margin-top:11px!important;padding:10px 11px!important;border:1px dashed #d0d5dd!important;border-radius:11px!important;background:#fafafa!important;color:#667085!important;font-size:9px!important;line-height:1.9!important}
.pb793GuideVideoWrap{display:grid!important;gap:10px!important}.pb793GuideVideoWrap video{display:block!important;width:100%!important;max-height:62dvh!important;background:#0b1020!important;border-radius:14px!important;object-fit:contain!important}.pb793GuideVideoMeta{display:grid!important;gap:3px!important}.pb793GuideVideoMeta b{font-size:12px!important}.pb793GuideVideoMeta small{font-size:9px!important;color:#667085!important;line-height:1.7!important}
@media(max-width:560px){
  .pb793GalleryGuideButton{width:100%!important;min-height:40px!important}
  .pb793GuideChoices{grid-template-columns:1fr!important}
  .pb793GuideChoice{min-height:88px!important}
  .pb793ModalSummary{grid-template-columns:1fr 1fr!important}
}

@media(prefers-reduced-motion:reduce){
  .pb792CartLayer,.pb792NoteLayer,.pb793ModalLayer,.pb793GuideLayer,.pb792CartCard,.pb792NoteCard,.pb793ModalCard,.pb793GuideSheet,
  .publicClientGalleryPage .clientGalleryOptionalOrdering,.publicClientGalleryPage .clientGalleryFinalizeConfirm,.publicClientGalleryPage .clientGalleryPrintOrderModal,.publicClientGalleryPage .clientGalleryCartModal,.publicClientGalleryPage .clientGalleryNoteModal{animation:none!important}
}
