/* A Râu · Ver 021126_5 · 02/11/2026 */
.arau-card-quick-links { max-width: 100%; gap: 4px; flex-shrink: 0; }
.arau-card-quick-links button { min-width: 0; flex-shrink: 0; }
.arau-card-overlay .arau-card-info { padding-right: 0; }
.arau-card-overlay .arau-card-menu-btn { position: absolute; top: 10px; right: 8px; }
.arau-card-overlay .arau-card-title { padding-right: 30px; }
@media (max-width: 380px) {
  .arau-card-quick-links { gap: 3px; }
  .arau-card-quick-links button { padding: 2px 4px !important; font-size: 9px !important; }
}
#deliveryCoverPicker { width: min(780px, calc(100% - 24px)); max-height: 85svh; box-sizing: border-box; padding: 20px; border: 1px solid #DFC9A8; border-radius: 14px; background: #FAF5EE; color: #6E5033; }
#deliveryCoverPicker::backdrop { background: #2C2219b8; backdrop-filter: blur(5px); }
#deliveryCoverPicker header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#deliveryCoverPicker h2 { font: 500 25px 'Be Vietnam Pro', Georgia, serif; margin: 0; }
#deliveryCoverPicker p { font-size: 12px; line-height: 1.6; }
#deliveryCoverPicker button { cursor: pointer; color: #6E5033; background: white; border: 1px solid #DFC9A8; padding: 10px 14px; border-radius: 6px; }
#deliveryCoverPicker button:focus-visible { outline: 3px solid #B88A58; outline-offset: 2px; }
.delivery-cover-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#deliveryCoverPicker .delivery-cover-choice { aspect-ratio: 1; padding: 0; overflow: hidden; border-radius: 0; }
.delivery-cover-choice img { width: 100%; height: 100%; object-fit: cover; display: block; }
#deliveryCoverPicker[aria-busy='true'] .delivery-cover-choice { pointer-events: none; opacity: .65; }
.delivery-cover-feedback { position: sticky; bottom: 0; background: #FAF5EE; padding: 6px 0; }
#deliveryCoverPicker header { position: sticky; top: -20px; padding: 10px 0; background: #FAF5EE; z-index: 1; }
#deliveryCoverPicker footer { text-align: center; }
[hidden] { display: none !important; }
.lightbox-heading { flex: 1 1 auto; min-width: 0; }
.delivery-lightbox-tools, .delivery-lightbox-download, .delivery-lightbox-zoom { display: none; }
.delivery-share-link { margin: 0 0 18px; }
.delivery-share-link label { font-size: 12px; }
.delivery-share-link input { width: 100%; box-sizing: border-box; font-size: 12px; }
.delivery-share-link button { width: 100%; }
.delivery-create-result { margin: 0 0 14px; padding: 11px; border: 1px solid #DFC9A8; border-radius: 8px; background: #FAF5EE; }
.delivery-create-result label { display: block; margin: 0 0 6px; color: #9E7345; font-size: 11px; font-weight: 700; }
.delivery-create-result input { width: 100%; box-sizing: border-box; margin: 0 0 5px; color: #4E4027; background: #fff; }
#driveDeliveryResultStatus { min-height: 17px; color: #8C6B48; font-size: 11px; line-height: 1.5; }
.delivery-button-busy { cursor: wait !important; opacity: .78; }
.delivery-button-spinner { display: inline-block; width: 13px; height: 13px; margin-right: 7px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: delivery-button-spin .7s linear infinite; }
@keyframes delivery-button-spin { to { transform: rotate(360deg); } }
.drive-delivery-mode body { margin: 0 !important; background: #FAF5EE !important; color: #4E4027; }
.drive-delivery-mode #mainPhotoApp { margin-top: 0 !important; padding-top: 0 !important; }
html.drive-delivery-mode body #mainPhotoApp #gallery-view { margin-top: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.drive-delivery-mode #galleryHeroBanner,
.drive-delivery-mode #galleryTopBar,
.drive-delivery-mode #selectionProgressContainer,
.drive-delivery-mode #coupleRoleSelector,
.drive-delivery-mode #floatingSubmitBtn,
.drive-delivery-mode #pwaInstallBanner,
.drive-delivery-mode .heart-btn,
.drive-delivery-mode .intent-badge-tag,
.drive-delivery-mode .note-btn,
.drive-delivery-mode .hidden-from-view,
.drive-delivery-mode #lightboxModal .lightbox-dock,
.drive-delivery-mode #markupCanvas { display: none !important; }
.drive-delivery-mode #lightboxModal .lightbox-zoom-controls { display: none !important; }
.drive-delivery-mode #lightboxModal .lightbox-content { padding: 0 !important; }
.drive-delivery-mode #lightboxModal.delivery-image-loading::after { content: 'Đang tải ảnh nét…'; position: fixed; left: 50%; bottom: max(74px, calc(env(safe-area-inset-bottom) + 58px)); z-index: 2147483647; transform: translateX(-50%); padding: 8px 12px; border-radius: 8px; color: #fff; background: #6E5033e8; font: 600 11px/1.2 'Be Vietnam Pro', Arial, sans-serif; box-shadow: 0 5px 18px #0004; pointer-events: none; }
.drive-delivery-mode #lightboxModal .lightbox-topbar { align-items: flex-start !important; }
.drive-delivery-mode .delivery-lightbox-tools { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.drive-delivery-mode .delivery-lightbox-download,
.drive-delivery-mode .delivery-lightbox-zoom { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; height: 30px; border: 1px solid #ffffff38; background: #ffffff12; color: #fff; border-radius: 6px; padding: 0 9px; font: 600 10px/1 'Be Vietnam Pro', Arial, sans-serif; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.drive-delivery-mode .delivery-lightbox-download { gap: 5px; }
.drive-delivery-mode .delivery-lightbox-zoom { width: 30px; padding: 0; }
.drive-delivery-mode .delivery-lightbox-download svg,
.drive-delivery-mode .delivery-lightbox-zoom svg { width: 14px; height: 14px; stroke-width: 2; }
.drive-delivery-mode .delivery-lightbox-download:hover,
.drive-delivery-mode .delivery-lightbox-zoom:hover,
.drive-delivery-mode .delivery-lightbox-zoom.active { color: #2C2219; border-color: #DFC9A8; background: #DFC9A8; }
.drive-delivery-mode .lightbox-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-delivery-mode #lightboxModal .lightbox-nav { top: calc(50% + 20px) !important; width: 44px !important; height: 68px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: rgba(255,255,255,.86) !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; font-size: 34px !important; text-shadow: 0 2px 8px #000b; }
.drive-delivery-mode #lightboxModal .lightbox-nav:hover { background: transparent !important; color: #DFC9A8 !important; box-shadow: none !important; transform: translateY(-50%) scale(1.15) !important; }
.drive-delivery-mode #lightboxModal .lightbox-nav:active { transform: translateY(-50%) scale(.94) !important; }
.delivery-awaiting #mainPhotoApp { visibility: hidden !important; }
#deliveryHeader { position: relative; display: block; width: 100%; height: min(80svh, 860px); min-height: 440px; margin: 0; background: #2C2219; overflow: hidden; color: white; }
#deliveryCover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.delivery-cover-landscape { height: auto !important; min-height: 0 !important; max-height: 720px; aspect-ratio: var(--delivery-cover-ratio, 16 / 9); }
.delivery-cover-landscape #deliveryCover { object-fit: contain; object-position: center center; }
.delivery-cover-landscape .delivery-cover-content { inset: auto 24px 76px; }
.delivery-cover-landscape .delivery-studio { margin-bottom: 12px; }
.delivery-cover-landscape #deliveryCustomer { font-size: clamp(34px, 5vw, 68px); margin-bottom: 10px; }
.delivery-cover-landscape #deliveryDateLabel { margin-bottom: 10px; }
.delivery-cover-landscape .delivery-scroll { bottom: 14px; padding: 9px 16px; }
.delivery-cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #2C22191f 10%, #4E402738 42%, #21170dcc 100%); }
.delivery-cover-content { position: absolute; inset: auto 24px 110px; text-align: center; text-shadow: 0 2px 18px #0007; }
.delivery-studio { margin: 0 0 24px; font-size: 11px; letter-spacing: 4px; font-weight: 600; }
#deliveryCustomer { font-family: 'Be Vietnam Pro', Georgia, serif; font-size: clamp(38px, 6vw, 90px); font-weight: 500; line-height: 1.13; margin: 0 auto 20px; max-width: 1100px; overflow-wrap: anywhere; color: white; }
#deliveryDateLabel { font-size: 18px; letter-spacing: 5px; margin: 0 0 22px; }
.delivery-cover-caption { font-size: 13px; opacity: .9; }
.delivery-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: #fff; background: #ffffff12; border: 1px solid #ffffff63; border-radius: 30px; padding: 13px 22px; font: inherit; font-size: 12px; cursor: pointer; }
#deliveryToolbar { box-sizing: border-box; max-width: 1500px; margin: 0 auto; padding: 24px 28px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#deliveryToolbar strong { display: block; font-size: 20px; font-family: 'Be Vietnam Pro', Georgia, serif; }
#deliveryImageCount { display: block; font-size: 12px; color: #8C765D; margin-top: 5px; }
.delivery-tools { width: 100%; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: nowrap; }
.delivery-size-control { min-width: 0; display: flex; align-items: center; gap: 9px; color: #6E5033; font-size: 11px; font-weight: 700; white-space: nowrap; }
.delivery-size-options { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid #DFC9A8; border-radius: 7px; background: #fff; box-shadow: 0 4px 14px #8C623912; }
.delivery-size-options button { min-width: 46px; height: 30px; border: 0; border-radius: 5px; padding: 0 7px; background: transparent; color: #8C765D; font: 700 10px/1 'Be Vietnam Pro', Arial, sans-serif; cursor: pointer; transition: color .2s, background .2s, box-shadow .2s; }
.delivery-size-options button:hover { color: #8C6239; background: #FAF5EE; }
.delivery-size-options button.active { color: #fff; background: #B88A58; box-shadow: 0 3px 9px #B88A5840; }
.delivery-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.delivery-actions button, .delivery-actions a { color: #6E5033; background: white; border: 1px solid #DFC9A8; border-radius: 7px; padding: 10px 12px; font: inherit; font-size: 11px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: color .2s, border-color .2s, background .2s; }
.delivery-actions button:hover, .delivery-actions a:hover { color: #fff; border-color: #B88A58; background: #B88A58; }
.delivery-download-note { flex-basis: 100%; font-size: 12px; color: #8C765D; margin: 0; line-height: 1.6; }
.drive-delivery-mode .gallery-container { padding: 0 28px; max-width: 1500px; margin: 0 auto; box-sizing: border-box; }
.drive-delivery-mode .category-tab-pill { background: white; color: #6E5033; border-color: #DFC9A8; }
.drive-delivery-mode .category-tab-pill.active { background: #B88A58; color: white; }
.drive-delivery-mode #galleryGrid { grid-template-columns: repeat(var(--delivery-grid-cols, 4), minmax(0, 1fr)) !important; gap: 12px !important; }
.drive-delivery-mode .image-card,
.drive-delivery-mode .image-card img { border-radius: 0 !important; }
.drive-delivery-mode #galleryGrid .image-card { aspect-ratio: 1 / 1 !important; box-shadow: none; background: #EFE5D6; outline-offset: 3px; }
.drive-delivery-mode .image-card.selected { border: none !important; box-shadow: none !important; }
.drive-delivery-mode .image-card:focus-visible { outline: 3px solid #B88A58; }
.drive-delivery-mode .image-name { font-size: 11px; }
.drive-delivery-mode #bottomStatus { width: 100%; max-width: none !important; margin: 32px 0 0 !important; padding: 12px 12px max(6px, env(safe-area-inset-bottom)) !important; box-sizing: border-box; color: #8C765D; background: transparent; border: 0; border-radius: 0; box-shadow: none; font-size: 11px; }
#deliveryPolicyModal { position: fixed; inset: 0; z-index: 2147483646; display: flex; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; background: #2C2219c7; backdrop-filter: blur(8px); }
.delivery-policy-card { width: min(680px, 100%); max-height: min(92svh, 900px); display: flex; flex-direction: column; background: #fff; color: #4E4027; border-radius: 20px; padding: 28px; box-sizing: border-box; box-shadow: 0 24px 100px #0004; }
.delivery-policy-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; letter-spacing: 2px; color: #9E7345; }
.delivery-policy-head button { border: none; background: #FAF5EE; color: #8C6239; width: 32px; height: 32px; border-radius: 50%; font-size: 22px; cursor: pointer; }
#deliveryPolicyTitle { font-family: 'Be Vietnam Pro', Georgia, serif; font-size: 28px; line-height: 1.25; margin: 16px 0 20px; color: #6E5033; }
#deliveryPolicyText { overflow: auto; min-height: 80px; font-size: 13px; line-height: 1.8; padding: 0 12px 0 0; overscroll-behavior: contain; border-top: 1px solid #EADBC8; border-bottom: 1px solid #EADBC8; }
#deliveryPolicyText h3 { color: #9E7345; font-size: 15px; margin-bottom: 4px; }
.delivery-policy-agree { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.7; padding: 16px 0; margin: 0; cursor: pointer; }
.delivery-policy-agree input { width: 18px !important; height: 18px; margin: 3px 0 0; flex-shrink: 0; accent-color: #B88A58; }
#deliveryPolicyContinue { flex-shrink: 0; background: #B88A58; color: white; border: none; border-radius: 10px; padding: 15px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
#deliveryPolicyContinue:disabled { opacity: .42; cursor: not-allowed; }
.delivery-policy-leave { font-size: 11px; color: #8C765D; text-align: center; padding-top: 14px; text-decoration: underline; }
@media (max-width: 600px) {
  #deliveryHeader { height: 72svh; min-height: 390px; background: #2C2219; }
  #deliveryCover { object-fit: contain; object-position: center center; }
  #deliveryHeader.delivery-cover-landscape { height: auto; min-height: 0; max-height: none; aspect-ratio: var(--delivery-cover-ratio, 16 / 9); }
  .delivery-cover-landscape .delivery-cover-content { inset: auto 14px 48px; }
  .delivery-cover-landscape .delivery-studio { margin-bottom: 7px; font-size: 8px; }
  .delivery-cover-landscape #deliveryCustomer { font-size: clamp(25px, 8vw, 34px); line-height: 1.05; margin-bottom: 6px; }
  .delivery-cover-landscape #deliveryDateLabel { font-size: 11px; letter-spacing: 2px; margin-bottom: 5px; }
  .delivery-cover-landscape .delivery-cover-caption { font-size: 9px; }
  .delivery-cover-landscape .delivery-scroll { bottom: 8px; padding: 7px 12px; font-size: 9px; }
  .delivery-cover-content { inset: auto 20px 105px; }
  .delivery-studio { font-size: 9px; letter-spacing: 2.5px; }
  #deliveryDateLabel { font-size: 14px; letter-spacing: 3px; }
  #deliveryToolbar { padding: 18px 12px 12px; }
  .delivery-tools { gap: 8px; align-items: flex-end; }
  .delivery-size-control { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 9px; }
  .delivery-size-options { gap: 1px; padding: 2px; }
  .delivery-size-options button { min-width: 28px; height: 28px; padding: 0 3px; font-size: 8px; }
  .delivery-actions { gap: 4px; }
  .delivery-actions button, .delivery-actions a { padding: 9px 5px; font-size: 9px; }
  .delivery-cover-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .drive-delivery-mode #lightboxModal .lightbox-nav { top: calc(50% + 18px) !important; width: 34px !important; height: 58px !important; font-size: 28px !important; }
  .drive-delivery-mode #lightboxModal .lightbox-prev { left: 2px !important; }
  .drive-delivery-mode #lightboxModal .lightbox-next { right: 2px !important; }
  .drive-delivery-mode .gallery-container { padding: 0 12px; }
  .drive-delivery-mode #galleryGrid { gap: 7px !important; }
  #deliveryPolicyModal { padding: 12px; }
  .delivery-policy-card { padding: 20px; max-height: 94svh; border-radius: 16px; }
  #deliveryPolicyTitle { font-size: 23px; }
  .drive-delivery-mode .delivery-lightbox-tools { margin-top: 3px; }
  .drive-delivery-mode .delivery-lightbox-download,
  .drive-delivery-mode .delivery-lightbox-zoom { height: 28px; }
  .drive-delivery-mode .delivery-lightbox-download { padding: 0 7px; font-size: 9px; }
  .drive-delivery-mode .delivery-lightbox-zoom { width: 28px; }
}
@media (max-width: 380px) {
  .delivery-tools { gap: 5px; }
  .delivery-size-options button { min-width: 24px; padding: 0 2px; font-size: 8px; }
  .delivery-actions { gap: 3px; }
  .delivery-actions button, .delivery-actions a { padding: 9px 4px; font-size: 8px; }
}

/* 2.90: giữ nguyên URL khi hết hạn hoặc kết nối thất bại. */
.short-route-status{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;overflow:auto;padding:24px;background:#fdfbf7;color:#493728}.short-route-status>div{max-width:560px;padding:32px;border:1px solid #e2d1b5;border-radius:18px;background:#fffdf8;box-shadow:0 4px 24px #b4966e16}.short-route-status h1{font-size:24px;color:#8c6d46}.short-route-status p{line-height:1.7}.short-route-status button{margin:10px 8px 0 0}

/* Ver 021126_4 — chính sách minh họa, nội dung đầy đủ trong details. */
#deliveryPolicyModal .delivery-policy-card{width:min(860px,100%);max-width:860px;background:var(--studio-paper);color:var(--studio-ink)}
#deliveryPolicyTitle{font-size:clamp(22px,3vw,30px);margin:12px 0 16px}
#deliveryPolicyText{border:0;padding:0 6px 0 0;font-size:13px;min-height:0}
.delivery-policy-intro{margin:0 0 18px;font-size:14px;color:var(--studio-muted)}
.delivery-policy-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.delivery-policy-panel{display:flex;align-items:flex-start;gap:14px;padding:18px;background:var(--studio-soft);border:1px solid var(--studio-line);border-radius:16px!important;min-width:0}
.delivery-policy-panel svg{width:52px;height:52px;flex:0 0 52px;stroke:var(--studio-accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;fill:none}
#deliveryPolicyText .delivery-policy-panel h3{font-size:15px;margin:1px 0 7px;color:var(--studio-ink);line-height:1.5}
#deliveryPolicyText .delivery-policy-panel p{font-size:12px;line-height:1.8;margin:0;color:var(--studio-muted)}
.delivery-policy-details{margin-top:16px;color:var(--studio-muted)}
.delivery-policy-details summary{cursor:pointer;padding:10px 0;color:var(--studio-accent);font-weight:600}
.delivery-policy-details summary:focus-visible{outline:2px solid var(--studio-accent);outline-offset:3px}
.delivery-policy-details p{font-size:12px;line-height:1.9}
.delivery-policy-agree{font-size:12px;line-height:1.8}
#deliveryPolicyContinue{border-radius:999px!important;min-height:46px;padding:12px 20px}
#deliveryHeader .delivery-studio,#deliveryHeader .delivery-cover-caption{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:600px){#deliveryPolicyModal{padding:12px}#deliveryPolicyModal .delivery-policy-card{padding:20px 16px}.delivery-policy-panels{grid-template-columns:minmax(0,1fr);gap:10px}.delivery-policy-panel{padding:14px;gap:12px}.delivery-policy-panel svg{width:44px;height:44px;flex-basis:44px}#deliveryPolicyTitle{font-size:22px}}

/* Ver 021126_4 · illustrated policy */
#deliveryPolicyModal .delivery-policy-card{border-radius:24px!important}
#deliveryPolicyModal .delivery-policy-panel{border-radius:16px!important}
#deliveryPolicyTitle:focus{outline:none}
