/* Product viewing only. No typography, layout or commerce overrides. */
.tc-iz-host { position: relative; }
.tc-iz-host > .tc-iz-trigger {
  position: absolute; top: 8px; right: 8px; z-index: 5; display: grid; place-items: center;
  width: 44px; height: 44px; min-width: 44px; padding: 0; margin: 0;
  background: #fff; color: #164d8d; border: 1px solid #8094ad; border-radius: 50%;
  box-shadow: 0 2px 8px rgb(15 38 68 / 14%); cursor: pointer; line-height: 1;
}
.tc-iz-trigger svg { width: 21px; height: 21px; pointer-events: none; }
.tc-iz-trigger[hidden], .tc-iz-dialog [hidden] { display: none !important; }
.tc-iz-trigger:hover { background: #edf5ff; }
.tc-iz-trigger:focus-visible, .tc-iz-dialog button:focus-visible, .tc-iz-stage:focus-visible { outline: 3px solid #1667c5; outline-offset: 3px; }
dialog.tc-iz-dialog {
  box-sizing: border-box; position: fixed; inset: 0; margin: auto; padding: 0;
  width: min(1120px, calc(100vw - 32px)); max-width: none;
  height: min(900px, calc(100dvh - 32px)); max-height: none;
  border: 1px solid #c6d4e3; border-radius: 16px; background: #fff; color: #162b43;
  box-shadow: 0 16px 56px rgb(0 0 0 / 22%); font-family: inherit; overflow: hidden;
}
.tc-iz-dialog:not([open]) { display: none; }
.tc-iz-dialog[open] { display: flex; flex-direction: column; }
.tc-iz-dialog::backdrop { background: rgb(11 27 46 / 76%); }
.tc-iz-header { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #d7e1ec; background: #f1f6fc; flex: 0 0 auto; }
.tc-iz-header h2 { font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.3; color: #162b43; margin: 0; flex: 1; }
.tc-iz-dialog button {
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
  min-width: 44px; min-height: 44px; padding: 8px 12px; margin: 0; border: 1px solid #9aaec4;
  border-radius: 8px; background: #fff; color: #153f72; cursor: pointer; box-shadow: none; text-shadow: none;
}
.tc-iz-dialog button:hover { background: #e9f2ff; }
.tc-iz-dialog button:disabled { color: #596879; background: #eef1f4; border-color: #c6ced7; cursor: default; }
.tc-iz-header .tc-iz-close { background: #b94306; color: #fff; border-color: #b94306; }
.tc-iz-header .tc-iz-close:hover { background: #943606; }
.tc-iz-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #f5f7fa; touch-action: none; user-select: none; outline-offset: -4px; }
.tc-iz-stage img { position: absolute; left: 50%; top: 50%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; object-fit: contain; transform-origin: center; pointer-events: none; user-select: none; }
.tc-iz-stage.is-enlarged { cursor: grab; }
.tc-iz-stage.is-dragging { cursor: grabbing; }
.tc-iz-toolbar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-top: 1px solid #d7e1ec; flex: 0 0 auto; }
.tc-iz-counter, .tc-iz-scale { font-size: 14px; color: #30465f; white-space: nowrap; min-width: 54px; text-align: center; }
.tc-iz-status { min-height: 22px; margin: 0; padding: 4px 12px 8px; font-size: 13px; line-height: 1.4; color: #42566e; text-align: center; }
.tc-iz-caption { margin: 0; padding: 8px 14px; font-size: 14px; line-height: 1.4; color: #30465f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-iz-status.is-loading::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 7px; border: 2px solid #b5c8df; border-top-color: #164d8d; border-radius: 50%; animation: tc-iz-spin .8s linear infinite; }
@keyframes tc-iz-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tc-iz-status.is-loading::before { animation: none; } }
@media (max-width: 600px) {
  dialog.tc-iz-dialog { width: calc(100vw - 12px); height: calc(100dvh - 12px); border-radius: 12px; }
  .tc-iz-header { padding: 8px 10px; }
  .tc-iz-toolbar { gap: 6px; padding: 8px; }
  .tc-iz-dialog button { padding: 8px 10px; }
  .tc-iz-caption { padding: 6px 10px; font-size: 13px; }
}
