/* Regały w Elblągu. Author: Vlad_Odya. Styles deliberately scoped. */
.ins-shelves-offer {
  box-sizing: border-box; display: flex; align-items: center; gap: 32px;
  width: 100%; min-width: 0; margin: 28px 0; padding: 28px;
  border-radius: 18px; background: #f7f8fa; color: #102131; scroll-margin-top: 120px;
}
.ins-shelves-offer .ins-shelves-copy { flex: 1; min-width: 0; }
.ins-shelves-offer .ins-shelves-label { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.ins-shelves-offer h2 { margin: 0 0 14px; font-size: clamp(23px, 3vw, 30px); line-height: 1.2; color: #102131; }
.ins-shelves-offer p { margin: 0 0 10px; line-height: 1.6; overflow-wrap: anywhere; }
.ins-shelves-offer .ins-shelves-copy p:last-child { margin-bottom: 0; }
.ins-shelves-offer .ins-shelves-pricing { flex: 0 0 235px; min-width: 0; }
.ins-shelves-offer .ins-shelves-pricing strong { display: block; font-size: 24px; line-height: 1.3; }
.ins-shelves-offer .ins-shelves-phone,
.ins-shelves-dialog .ins-shelves-phone {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; padding: 12px 16px; background: #ffe300; color: #102131;
  border-radius: 8px; text-decoration: none; font-size: 15px; font-weight: 700; line-height: 1.4;
}
.ins-shelves-offer .ins-shelves-preview {
  display: block; margin: 12px 0 0; padding: 3px 0; border: 0; border-radius: 0;
  background: transparent; color: #102131; font: inherit; font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.ins-shelves-offer .ins-shelves-preview[hidden] { display: none; }
.ins-shelves-dialog {
  box-sizing: border-box; width: min(540px, calc(100vw - 28px)); max-width: none;
  max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px);
  margin: auto; padding: 0; border: 0; border-radius: 14px;
  background: #fff; color: #102131; overflow: auto; box-shadow: 0 20px 70px #0005;
}
.ins-shelves-dialog:not([open]) { display: none; }
.ins-shelves-dialog::backdrop { background: #07111bc4; }
.ins-shelves-dialog .ins-shelves-dialog-content { position: relative; }
.ins-shelves-dialog .ins-shelves-close {
  position: sticky; top: 8px; float: right; z-index: 1; width: 40px; height: 40px;
  margin: 8px 8px -48px 0; padding: 0; border: 1px solid #fff8; border-radius: 50%;
  background: #102131; color: #fff; font: 32px/1 Arial, sans-serif; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ins-shelves-dialog .ins-shelves-poster {
  display: block; width: 100%; height: auto; max-height: calc(100vh - 162px);
  max-height: calc(100dvh - 162px); object-fit: contain; background: #fff;
}
.ins-shelves-dialog .ins-shelves-dialog-footer { padding: 14px 18px 18px; text-align: center; }
.ins-shelves-dialog .ins-shelves-dialog-footer p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.ins-shelves-dialog .ins-shelves-dialog-actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.ins-shelves-dialog .ins-shelves-details { color: #102131; font-size: 14px; text-underline-offset: 3px; }
.ins-shelves-offer a:focus-visible, .ins-shelves-offer button:focus-visible,
.ins-shelves-dialog a:focus-visible, .ins-shelves-dialog button:focus-visible {
  outline: 3px solid #287ac1; outline-offset: 3px;
}
html.ins-shelves-modal-open { overflow: hidden; }
@media (max-width: 640px) {
  .ins-shelves-offer { display: block; padding: 22px; }
  .ins-shelves-offer .ins-shelves-pricing { margin-top: 20px; }
  .ins-shelves-dialog .ins-shelves-dialog-actions { gap: 10px; }
  .ins-shelves-dialog .ins-shelves-poster { max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); }
  .ins-shelves-dialog .ins-shelves-dialog-footer { padding: 12px 14px 16px; }
}
