/* 

Responsive styles go here 

*/

/* --------------------------
    Share preview
-------------------------- */

html {
  height: 100%;
}
body {
  background-color: white;
}
.share-preview {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.share-preview .header {
  height: 54px;
  border-bottom: 1px solid #c3c3c3;
  box-sizing: border-box;
  padding: 10px;
}

.share-preview .header img {
  max-height: 34px;
  width: auto;
}

.share-preview .preview-iframe {
  border: none;
  flex: 1;
}

/* Shows when share link is not available */
.share-error-message {
  text-align: center;
  padding-top: 80px;
  color: #343434;
  font-family: 'Helvetica Neue', Arial, Helvetica, Verdana, sans-serif;
}

.share-error-message p {
  font-size: 14px;
  line-height: 1.4;
}

.share-preview.no-branding .header {
  display: none;
}

.share-preview.no-branding .preview-iframe {
  height: 100%;
}

/* --------------------------
    Share preview - responsive skin (share/preview_online_responsive.tpl)
    Additive: the legacy .share-preview rules above are untouched, so
    preview_online.tpl renders exactly as it did.
-------------------------- */

.share-preview-modern {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: #111827;
}

.share-preview-modern .header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #ffffff;
}

/* header_share_online.tpl is float based - the flex row above replaces that */
.share-preview-modern .header .headerLeft,
.share-preview-modern .header .headerRight {
  float: none;
  display: flex;
  align-items: center;
}

.share-preview-modern .header .clear {
  display: none;
}

.share-preview-modern .header img {
  max-height: 40px;
  width: auto;
}

.share-preview-modern .header select {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: #374151;
  background-color: #ffffff;
}

.share-preview-modern .share-error-message {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 16px;
  font-family: inherit;
  color: inherit;
}

.share-preview-modern .share-error-card {
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  padding: 32px 24px;
  text-align: center;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  outline: 1px solid rgba(17, 24, 39, 0.05);
}

.share-preview-modern .share-error-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: #ef4444;
}

.share-preview-modern .share-error-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
}
