/* 1.0.328 — restore desktop Product Creative scrolling and card labels. */
@media (min-width: 769px) {
  /* The body must be a constrained flex viewport; otherwise the inner grid
     grows with its cards and overflow-y never gets a scrollable height. */
  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-product-creative .left-panel-body {
    display: flex !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-product-creative .product-creative-page {
    flex: 1 1 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: 100% !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-product-creative .product-creative-quick {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-right: 10px !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    overscroll-behavior: contain !important;
    scrollbar-gutter: stable !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255,255,255,.22) transparent !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-product-creative .product-creative-quick::-webkit-scrollbar {
    width: 6px !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-product-creative .product-creative-quick::-webkit-scrollbar-thumb {
    border-radius: 999px !important;
    background: rgba(255,255,255,.22) !important;
  }

  /* Fully reset the original absolute caption. Partial overrides left its old
     size/position active and clipped the beginning of every Russian title. */
  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-product-creative
  .product-creative-quick > button:not(.product-creative-settings-tile) > span {
    position: absolute !important;
    inset: auto 7px 7px 7px !important;
    transform: none !important;
    z-index: 6 !important;
    display: -webkit-box !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 26px !important;
    max-height: 38px !important;
    margin: 0 !important;
    padding: 5px 7px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: rgba(7,10,15,.84) !important;
    box-shadow: none !important;
    color: rgba(248,250,253,.98) !important;
    font-size: 10px !important;
    font-weight: 760 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.72) !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-overflow: clip !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    pointer-events: none !important;
  }
}
