#product-image-modal .modal-dialog { width: calc(100% - 24px); max-width: 1140px; margin: 12px auto; min-height: calc(100% - 24px); }
#product-image-modal .modal-content { max-height: calc(100dvh - 24px); overflow: hidden; }
#product-image-modal .modal-header { gap: 12px; min-width: 0; }
#product-image-modal .modal-title { min-width: 0; font-size: 18px; overflow-wrap: anywhere; }
#product-image-modal .btn-close { flex-shrink: 0; }
#product-image-modal .modal-body { min-height: 0; overflow: auto; padding: 12px; }
#product-image-modal .native-gallery-toolbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid #dee2e6; }
#product-image-modal .native-gallery-toolbar .btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 4px; flex: 0 0 40px; }
#product-image-modal [aria-pressed="true"], #product-image-modal [aria-expanded="true"] { outline: 2px solid var(--primary-color, #198754); outline-offset: -2px; }
#product-image-modal .native-gallery-stage { height: min(55dvh, 620px); overflow: auto; background: #f3f4f5; overscroll-behavior: contain; }
#product-image-modal #product-expanded-image { display: block; width: 100%; height: 100%; max-width: none; max-height: none; margin: auto; object-fit: contain; }
#product-image-modal .native-gallery-stage.is-zoomed { cursor: grab; touch-action: none; }
#product-image-modal .native-gallery-stage.is-zoomed:active { cursor: grabbing; }
#product-image-modal .native-gallery-thumbnails:not([hidden]) { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 2px; }
#product-image-modal .native-gallery-thumbnails button { flex: 0 0 64px; width: 64px; height: 64px; border: 1px solid #ced4da; border-radius: 4px; padding: 4px; background: #fff; }
#product-image-modal .native-gallery-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
#product-image-modal:fullscreen, #product-image-modal.is-fullscreen { background: #fff; padding: 0 !important; }
#product-image-modal:fullscreen .modal-dialog, #product-image-modal.is-fullscreen .modal-dialog { width: 100%; max-width: none; height: 100%; margin: 0; }
#product-image-modal:fullscreen .modal-content, #product-image-modal.is-fullscreen .modal-content { height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
#product-image-modal:fullscreen .modal-body, #product-image-modal.is-fullscreen .modal-body { display: flex; flex-direction: column; }
#product-image-modal:fullscreen .native-gallery-stage, #product-image-modal.is-fullscreen .native-gallery-stage { flex: 1; min-height: 0; }
#product-image-modal .native-gallery-controls, #product-image-modal .native-gallery-thumbnails { flex-shrink: 0; }
.native-payment-info { padding-block: 24px; text-align: center; }
.native-payment-info > i { font-size: 36px; color: #6c757d; margin-bottom: 16px; }
.native-payment-info h2 { font-size: 20px; }
.native-payment-info p { color: #6c757d; overflow-wrap: anywhere; }
@media (max-width: 575px) {
    #product-image-modal .native-gallery-toolbar { gap: 4px; padding-inline: 6px; }
    #product-image-modal .native-gallery-toolbar .btn { width: 36px; height: 36px; flex-basis: 36px; }
    #product-image-modal .modal-title { font-size: 16px; }
    #product-image-modal .native-gallery-stage { height: 44dvh; }
}
