/* Measured from GMB Main 23423:107255, 23423:106793, 33825:712100. */
.gmb-stories-page { padding: 32px; }
.gmb-stories-page > .gmb-back { height: 18px; padding: 0; margin-bottom: 30px; }
.gmb-stories-page > .gmb-back img { margin-right: 8px; transform: rotate(180deg); }
.gmb-stories-page .gmb-page__title { font-size: 36px; line-height: 43px; color: #2b3134; }
.gmb-stories { max-width: 1040px; }
.gmb-stories .gmb-switch { display: flex; min-height: 20px; margin: 0; }
.gmb-stories .gmb-field__label { line-height: 16px; }
.gmb-stories .gmb-dropdown__arrow { flex-basis: 14px; width: 14px; height: 14px; margin-right: 6px; background: url('./assets/story-chevron.svg') center no-repeat; }
.gmb-stories .gmb-dropdown__arrow::before { content: none; }
.gmb-stories input[type=date]::-webkit-calendar-picker-indicator { background: url('./assets/story-calendar.svg') center no-repeat; width: 14px; height: 14px; padding: 0; }
.gmb-stories__flags { display: flex; flex-direction: column; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #e4e1e1; }
.gmb-stories .gmb-switch__label { margin-left: 8px; transform: none; }
.gmb-stories__layout { display: grid; grid-template-columns: minmax(0,480px) minmax(0,480px); gap: 80px; align-items: start; margin-top: 20px; }
.gmb-stories__editor { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.gmb-stories .gmb-field { margin: 0; }
.gmb-stories__period { border: 0; margin: 0; padding: 0; min-width: 0; }
.gmb-stories__period legend { padding: 0; margin-bottom: 8px; }
.gmb-stories__dates { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; }
.gmb-stories__dates .gmb-input { margin-top: 8px; }
.gmb-stories__audience { display: grid; grid-template-columns: minmax(0,1fr) 24px; gap: 16px; align-items: start; }
.gmb-stories__refresh { margin-top: 25px; }
.gmb-stories__list { display: flex; flex-direction: column; gap: 16px; }
.gmb-story { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.gmb-story__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gmb-story[data-single-promotion] .gmb-story__header { display: none; }
.gmb-story__title { margin: 0; font: 700 14px/17px var(--gmb-font-heading); }
.gmb-story__tools { display: flex; align-items: center; gap: 16px; }
.gmb-story-icon { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.gmb-story-icon:focus-visible, .gmb-story-add:focus-visible { outline: 2px solid var(--gmb-color-primary); outline-offset: 3px; }
.gmb-story-icon:disabled { opacity: .35; cursor: default; }
.gmb-story-icon img { display: block; flex: none; }
.gmb-story__move { cursor: grab; touch-action: none; user-select: none; }
.gmb-story__move:focus { outline: none; }
.gmb-story__move:focus-visible { outline: 2px solid #839096; outline-offset: 3px; }
.gmb-story__move img { pointer-events: none; -webkit-user-drag: none; }
/* Sortable keeps the full item under the pointer and its in-list ghost at the future position. */
.gmb-story--dragging { z-index: 1200 !important; background: var(--gmb-color-page); box-shadow: 0 8px 24px #0003; opacity: .95 !important; pointer-events: none; cursor: grabbing; }
.gmb-story--dragging [data-move-story] { outline: none; cursor: grabbing; }
.gmb-story--placeholder { background: #eef1f3; outline: 2px dashed #b0bac3; outline-offset: 4px; border-radius: 4px; }
.gmb-story--placeholder > * { opacity: .25; }
@media (prefers-reduced-motion: reduce) { .gmb-stories__list > .gmb-story { transition: none !important; } }
.gmb-story__media { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.gmb-story__media .gmb-upload__preview { flex: none; }
.gmb-story__media .gmb-upload__label { margin: 0; }
.gmb-story__media .gmb-upload__media { background: #ededed; border-radius: 4px; }
.gmb-story__media .gmb-upload__media img, .gmb-story__media .gmb-upload__media video { background: #ededed; }
.gmb-story__media .gmb-upload__media--coffee { position: relative; }
.gmb-story__media .gmb-upload__media--coffee img { position: absolute; width: 53.12%; height: 136%; left: 23.44%; top: -18%; }
.gmb-story__media .gmb-field__hint { max-width: 419px; margin: 0; }
.gmb-story__settings { display: flex; flex-direction: column; gap: 8px; }
.gmb-story__settings[hidden], .gmb-stories [hidden] { display: none !important; }
.gmb-story-add { display: inline-flex; width: fit-content; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: #555; font: 400 12px/16px Arial,sans-serif; cursor: pointer; }
.gmb-story-add span { border-bottom: 1px dashed #999; }
.gmb-stories__actions { display: flex; gap: 16px; margin-top: 20px; }
.gmb-stories__delete { color: #ff5252; background: transparent; opacity: .62; }
.gmb-stories__delete:hover:not(:disabled) { background: #ff525212; }
.gmb-stories__notice { margin: 0; }
.gmb-stories__notice.gmb-alert { padding: 8px 8px 8px 14px; }
.gmb-stories__notice .gmb-alert__text { margin: 0; line-height: 16px; }
.gmb-stories__notice::before { border: 0; background: white; }
.gmb-alert--success { background: var(--gmb-color-primary); }
.gmb-story-preview { width: 290px; max-width: 100%; display: flex; flex-direction: column; gap: 8px; }
.gmb-story-preview__label { margin: 0; font: 700 13px/16px var(--gmb-font-heading); color: #3a3a3a; }
.gmb-story-phone { position: relative; width: 290px; height: 564px; padding: 10px 15px 0; overflow: hidden; }
.gmb-story-phone::before { position: absolute; inset: 0 5px; border-radius: 36px 36px 0 0; background: #cdcdcd; content: ''; }
.gmb-story-phone__power, .gmb-story-phone__volume { position: absolute; width: 10px; border-radius: 20px; background: #cdcdcd; }
.gmb-story-phone__power { top: 169px; right: 0; height: 80px; }
.gmb-story-phone__volume { top: 154px; left: 0; height: 50px; box-shadow: 0 60px #cdcdcd; }
.gmb-story-phone__screen { position: relative; width: 260px; height: 554px; overflow: hidden; border-radius: 26px 26px 0 0; background: #12181b; }
.gmb-story-phone__image, .gmb-story-phone__video { display: block; width: 260px; height: 554px; object-fit: cover; }
.gmb-story-phone__empty { padding: 100px 20px; color: #fff; text-align: center; }
.gmb-story-progress { position: absolute; top: 24px; left: 16px; right: 16px; display: flex; gap: 8px; }
.gmb-story-progress__item { position: relative; flex: 1; height: 4px; border-radius: 8px; background: #ffffff80; overflow: hidden; }
.gmb-story-progress__fill { display: block; width: 0; height: 4px; background: white; }
.gmb-story-phone__close { position: absolute; top: 44px; right: 16px; width: 24px; height: 24px; }
.gmb-story-phone__close img:first-child { position: absolute; inset: 0; }
.gmb-story-phone__close img:last-child { position: absolute; left: 7.47px; top: 7.47px; }
.gmb-story-phone__actionbar { position: absolute; bottom: 0; width: 260px; height: 52px; padding: 8px; }
.gmb-story-phone__action { width: 244px; height: 36px; border: 0; border-radius: 4px; background: #009be1; color: #fff; font: 500 14px var(--gmb-font-heading); cursor: pointer; }
.gmb-story-preview__play { width: 100%; gap: 6px; border: 1px solid var(--gmb-color-primary); background: transparent; color: var(--gmb-color-primary); font-weight: 500; }
.gmb-story-preview__play:hover:not(:disabled) { background: #26b99a12; }
.gmb-stories-demo-options { margin-top: 24px; max-width: 1040px; }
@media (max-width: 900px) {
  .gmb-stories-page { padding: 20px; }
  .gmb-stories__layout { grid-template-columns: minmax(0,480px) 290px; gap: 32px; }
}
@media (max-width: 700px) {
  .gmb-stories-page { padding: 16px; }
  .gmb-stories-page .gmb-page__title { font-size: 28px; line-height: 34px; }
  .gmb-stories__layout { grid-template-columns: minmax(0,480px); gap: 24px; }
  .gmb-stories__dates { gap: 16px; }
}
