:root {
        color-scheme: light;
        --nova-blue: #1968ab;
        --nova-blue-dark: #0f4f84;
        --nova-red: #e75560;
        --ink: #132033;
        --muted: #8b99ad;
        --line: rgba(19, 32, 51, 0.09);
        --glass: rgba(255, 255, 255, 0.72);
        --glass-strong: rgba(255, 255, 255, 0.88);
        --shell-shadow: 0 34px 94px -28px rgba(12, 55, 96, 0.45), 0 20px 42px -30px rgba(231, 85, 96, 0.38);
        --card-shadow: 0 20px 44px -30px rgba(12, 55, 96, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.82);
        --blue-grad: linear-gradient(145deg, #247cc5 0%, #1968ab 56%, #0a3e70 100%);
      }

      * {
        box-sizing: border-box;
      }

      html,
      body {
        margin: 0;
        min-height: 100%;
      }

      body {
        min-height: 100dvh;
        overflow-x: hidden;
        color: var(--ink);
        font-family: "Noto Sans Georgian", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        -webkit-font-smoothing: antialiased;
        background: #ffffff;
      }

      button,
      textarea,
      input {
        font: inherit;
      }

      button {
        -webkit-tap-highlight-color: transparent;
      }

      a {
        color: inherit;
        text-decoration: none;
      }

      .chat-widget {
        position: fixed;
        right: clamp(12px, 3vw, 26px);
        bottom: 26px;
        z-index: 20;
        width: min(468px, calc(100vw - 32px));
        height: min(788px, calc(100dvh - 56px));
        min-height: 540px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.78);
        border-radius: 28px;
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(240, 248, 255, 0.62)),
          var(--glass);
        backdrop-filter: blur(30px) saturate(170%);
        -webkit-backdrop-filter: blur(30px) saturate(170%);
        box-shadow: var(--shell-shadow);
        opacity: 0;
        transform: translateY(26px) scale(0.96);
        transform-origin: bottom right;
        pointer-events: none;
        transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.34, 1.25, 0.45, 1);
      }

      .chat-widget::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 4;
        border-radius: inherit;
        padding: 2px;
        background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.18) 34%, rgba(25, 104, 171, 0.42) 72%, rgba(231, 85, 96, 0.24));
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
      }

      .chat-widget::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 20%),
          radial-gradient(460px 220px at 100% 100%, rgba(231, 85, 96, 0.13), transparent 68%),
          radial-gradient(420px 260px at 0% 0%, rgba(25, 104, 171, 0.13), transparent 70%);
        pointer-events: none;
      }

      .chat-widget.open {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
      }

      .chat-header {
        position: absolute;
        top: 16px;
        left: 16px;
        right: 16px;
        z-index: 8;
        display: flex;
        align-items: center;
        gap: 13px;
        min-height: 68px;
        padding: 12px 12px 12px 14px;
        border: 1px solid rgba(255, 255, 255, 0.78);
        border-radius: 22px;
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.68)),
          var(--glass-strong);
        backdrop-filter: blur(22px) saturate(165%);
        -webkit-backdrop-filter: blur(22px) saturate(165%);
        box-shadow: var(--card-shadow);
      }

      .launcher-mark {
        display: grid;
        place-items: center;
        background: var(--blue-grad);
        color: #fff;
      }

      .brand-avatar,
      .row-avatar {
        display: grid;
        place-items: center;
        background: #fff;
      }

      .brand-avatar {
        position: relative;
        flex: 0 0 auto;
        width: 46px;
        height: 46px;
        border: 1px solid rgba(19, 32, 51, 0.08);
        border-radius: 15px;
        box-shadow: 0 14px 26px -16px rgba(10, 62, 112, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.9);
      }

      .brand-avatar svg {
        width: 32px;
        height: auto;
      }

      .launcher-mark svg {
        width: 34px;
        height: 34px;
      }

      .assistant-title {
        flex: 1 1 auto;
        min-width: 0;
      }

      .assistant-title strong {
        display: block;
        font-size: 17px;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: 0;
      }

      .assistant-title span {
        display: block;
        margin-top: 3px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 600;
      }

      .header-actions {
        display: flex;
        gap: 8px;
      }

      .round-btn,
      .send,
      .launcher {
        display: grid;
        place-items: center;
        cursor: pointer;
        transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, opacity 0.18s ease;
      }

      .round-btn {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(19, 32, 51, 0.08);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.68);
        color: #243449;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 12px 22px -18px rgba(10, 62, 112, 0.55);
      }

      .round-btn:hover {
        border-color: rgba(25, 104, 171, 0.22);
        color: var(--nova-blue);
        transform: translateY(-1px);
      }

      .round-btn.close:hover {
        border-color: rgba(231, 85, 96, 0.24);
        color: var(--nova-red);
      }

      .round-btn svg {
        width: 18px;
        height: 18px;
      }

      .messages {
        position: absolute;
        inset: 0;
        z-index: 5;
        overflow-y: auto;
        padding: 112px 20px 92px;
        scroll-behavior: smooth;
        overscroll-behavior: contain;
      }

      .messages::-webkit-scrollbar {
        width: 7px;
      }

      .messages::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(25, 104, 171, 0.18);
      }

      .message {
        display: flex;
        gap: 11px;
        align-items: flex-start;
        margin-bottom: 10px;
        animation: rise 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
      }

      .message.user {
        justify-content: flex-end;
      }

      @keyframes rise {
        from {
          opacity: 0;
          transform: translateY(10px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .row-avatar {
        position: relative;
        flex: 0 0 auto;
        width: 34px;
        height: 34px;
        border: 1px solid rgba(19, 32, 51, 0.08);
        border-radius: 11px;
        box-shadow: 0 10px 20px -14px rgba(10, 62, 112, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9);
      }

      .row-avatar svg {
        width: 27px;
        height: auto;
      }

      .message-stack {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        flex-direction: column;
        gap: 9px;
      }

      .message.user .message-stack {
        align-items: flex-end;
        max-width: 86%;
      }

      .bubble {
        max-width: min(100%, 348px);
        border: 1px solid rgba(19, 32, 51, 0.08);
        border-radius: 18px;
        padding: 13px 15px;
        color: var(--ink);
        font-size: 14px;
        line-height: 1.6;
        word-break: break-word;
        box-shadow: var(--card-shadow);
      }

      .assistant .bubble {
        border-top-left-radius: 8px;
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
          rgba(255, 255, 255, 0.86);
      }

      .user .bubble {
        border-color: rgba(25, 104, 171, 0.28);
        border-top-right-radius: 8px;
        background: var(--blue-grad);
        color: #fff;
        box-shadow: 0 16px 34px -20px rgba(10, 62, 112, 0.72);
        white-space: pre-wrap;
      }

      .bubble strong {
        font-weight: 800;
      }

      .bubble a {
        color: var(--nova-blue);
        font-weight: 700;
        text-decoration: underline;
        text-underline-offset: 2px;
        word-break: break-word;
      }

      .bubble a:hover {
        color: var(--nova-blue-dark);
      }

      .user .bubble a {
        color: #fff;
        text-decoration-color: rgba(255, 255, 255, 0.7);
      }

      .bubble p {
        margin: 0 0 8px;
      }

      .bubble p:last-child {
        margin-bottom: 0;
      }

      .bubble ul,
      .bubble ol {
        margin: 8px 0 0;
        padding-left: 22px;
      }

      .bubble li + li {
        margin-top: 6px;
      }

      .products {
        display: flex;
        gap: 12px;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        cursor: grab;
        user-select: none;
      }

      .products.grabbing {
        cursor: grabbing;
      }

      .products::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
      }

      .gift-bundles {
        display: grid;
        gap: 12px;
        width: 100%;
      }

      .gift-bundle {
        display: grid;
        gap: 9px;
        min-width: 0;
        padding: 11px;
        border: 1px solid rgba(25, 104, 171, 0.14);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.72);
      }

      .gift-bundle-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: var(--ink);
        font-size: 13px;
      }

      .gift-bundle-heading span {
        color: var(--muted);
        white-space: nowrap;
      }

      .product-card {
        position: relative;
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        width: 158px;
        overflow: hidden;
        border: 1px solid rgba(19, 32, 51, 0.08);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.88);
        color: var(--ink);
        box-shadow: var(--card-shadow);
        transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
      }

      .product-card:hover {
        border-color: rgba(25, 104, 171, 0.22);
        transform: translateY(-2px);
        box-shadow: 0 22px 42px -28px rgba(10, 62, 112, 0.58);
      }

      .product-stage {
        position: relative;
        display: grid;
        place-items: center;
        min-height: 132px;
        background: linear-gradient(180deg, #fff, #f5faff);
        color: var(--muted);
        font-weight: 800;
      }

      .product-stage img {
        width: 100%;
        height: 132px;
        object-fit: contain;
        padding: 14px;
      }

      .price-chip {
        position: absolute;
        left: 10px;
        bottom: 10px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        border: 1px solid rgba(255, 255, 255, 0.86);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.92);
        padding: 6px 9px;
        color: var(--nova-red);
        font-size: 13px;
        font-weight: 800;
        box-shadow: 0 10px 18px -12px rgba(231, 85, 96, 0.62);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
      }

      .price-chip .price-was {
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
        text-decoration: line-through;
        text-decoration-color: rgba(231, 85, 96, 0.7);
      }

      .discount-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        border-radius: 10px;
        background: var(--nova-red);
        padding: 4px 8px;
        color: #fff;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.2px;
        box-shadow: 0 10px 18px -12px rgba(231, 85, 96, 0.8);
      }

      .product-body {
        display: grid;
        gap: 7px;
        padding: 12px 13px 14px;
      }

      .product-title {
        display: -webkit-box;
        overflow: hidden;
        margin: 0;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        color: var(--ink);
        font-size: 12.5px;
        font-weight: 800;
        line-height: 1.35;
      }

      .product-meta {
        overflow: hidden;
        color: var(--muted);
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .debug {
        overflow: auto;
        max-height: 180px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.66);
        padding: 12px;
        color: var(--muted);
        font: 11px/1.45 Consolas, "SFMono-Regular", ui-monospace, monospace;
        white-space: pre-wrap;
      }

      .typing {
        display: inline-grid;
        grid-template-columns: repeat(3, 7px);
        gap: 5px;
        align-items: center;
        min-height: 18px;
      }

      .typing span {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--nova-blue);
        opacity: 0.42;
        animation: blink 1s infinite ease-in-out;
      }

      .typing span:nth-child(2) {
        animation-delay: 0.15s;
      }

      .typing span:nth-child(3) {
        animation-delay: 0.3s;
      }

      @keyframes blink {
        0%,
        100% {
          opacity: 0.28;
          transform: translateY(0);
        }
        50% {
          opacity: 1;
          transform: translateY(-3px);
        }
      }

      .composer {
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 16px;
        z-index: 8;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 9px;
        align-items: end;
        border: 1px solid rgba(255, 255, 255, 0.78);
        border-radius: 26px;
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68)),
          rgba(255, 255, 255, 0.78);
        backdrop-filter: blur(20px) saturate(165%);
        -webkit-backdrop-filter: blur(20px) saturate(165%);
        padding: 7px;
        box-shadow: 0 20px 42px -30px rgba(10, 62, 112, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.86);
      }

      .composer:focus-within {
        border-color: rgba(25, 104, 171, 0.28);
        box-shadow: 0 20px 42px -30px rgba(10, 62, 112, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.86),
          0 0 0 3px rgba(25, 104, 171, 0.12);
      }

      .chat-widget.image-drop-active .composer {
        border-color: rgba(25, 104, 171, 0.55);
        box-shadow: 0 20px 42px -30px rgba(10, 62, 112, 0.52), 0 0 0 4px rgba(25, 104, 171, 0.14);
      }

      .chat-widget.image-drop-active .composer::after {
        content: "ფოტო ჩააგდე აქ";
        position: absolute;
        inset: 0;
        z-index: 12;
        display: grid;
        place-items: center;
        border: 2px dashed rgba(25, 104, 171, 0.58);
        border-radius: inherit;
        background: rgba(245, 250, 255, 0.96);
        color: var(--nova-blue-dark);
        font-size: 14px;
        font-weight: 800;
        pointer-events: none;
      }

      .composer textarea {
        width: 100%;
        height: 46px;
        min-height: 46px;
        max-height: 46px;
        resize: none;
        border: 0;
        border-radius: 18px;
        background: transparent;
        color: var(--ink);
        outline: none;
        padding: 13px 4px 11px 8px;
        line-height: 20px;
        font-size: 14px;
        overflow-y: auto;
        overscroll-behavior: contain;
      }

      .composer textarea::-webkit-scrollbar {
        width: 6px;
      }

      .composer textarea::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(25, 104, 171, 0.22);
      }

      .composer textarea::placeholder {
        color: #94a1b3;
      }

      .send {
        position: relative;
        width: 46px;
        height: 46px;
        border: 0;
        border-radius: 50%;
        background: var(--nova-blue);
        color: #fff;
        box-shadow: 0 12px 22px -12px rgba(10, 62, 112, 0.7);
      }

      .send:hover {
        transform: translateY(-1px) scale(1.03);
        box-shadow: 0 18px 30px -14px rgba(10, 62, 112, 0.72);
      }

      .send:active,
      .launcher:active,
      .round-btn:active {
        transform: scale(0.96);
      }

      .send:disabled {
        cursor: wait;
        opacity: 0.58;
        transform: none;
      }

      .send svg {
        width: 21px;
        height: 21px;
      }

      .launcher {
        position: fixed;
        right: clamp(12px, 3vw, 26px);
        bottom: 24px;
        z-index: 24;
        width: 62px;
        height: 62px;
        border: 1px solid rgba(255, 255, 255, 0.7);
        border-radius: 50%;
        background: transparent;
        padding: 0;
        color: #fff;
        box-shadow: 0 18px 36px -14px rgba(10, 62, 112, 0.68), 0 8px 28px -18px rgba(231, 85, 96, 0.8);
      }

      .launcher:hover {
        transform: translateY(-2px);
      }

      .chat-widget.open ~ .launcher {
        opacity: 0;
        transform: translateY(10px) scale(0.82);
        pointer-events: none;
      }

      .launcher-mark {
        position: absolute;
        inset: 0;
        border-radius: inherit;
      }

      @media (max-width: 560px) {
        .chat-widget {
          right: 8px;
          bottom: 12px;
          width: calc(100vw - 16px);
          height: calc(100dvh - 24px);
          min-height: 320px;
          border-radius: 30px;
        }

        .chat-header {
          top: 12px;
          left: 12px;
          right: 12px;
          min-height: 62px;
          padding: 11px;
          border-radius: 20px;
          gap: 11px;
        }

        .brand-avatar {
          width: 42px;
          height: 42px;
          border-radius: 14px;
        }

        .assistant-title strong {
          font-size: 16px;
        }

        .assistant-title span {
          font-size: 11px;
        }

        .round-btn {
          width: 38px;
          height: 38px;
        }

        .messages {
          padding: 100px 16px 88px;
        }

        .row-avatar {
          width: 32px;
          height: 32px;
          border-radius: 10px;
        }

        .bubble {
          max-width: min(100%, 262px);
          padding: 12px 14px;
          font-size: 13.5px;
        }

        .products {
          gap: 10px;
        }

        .composer {
          left: 12px;
          right: 12px;
          bottom: 12px;
        }

        .send {
          width: 44px;
          height: 44px;
        }

        .launcher {
          right: 20px;
          bottom: 18px;
          width: 58px;
          height: 58px;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          scroll-behavior: auto !important;
          transition-duration: 0.01ms !important;
        }
      }

      .attach {
        display: grid;
        place-items: center;
        width: 46px;
        height: 46px;
        border: 0;
        border-radius: 50%;
        background: rgba(25, 104, 171, 0.1);
        color: var(--nova-blue);
        cursor: pointer;
      }

      .attach:hover {
        background: rgba(25, 104, 171, 0.17);
      }

      .attach svg {
        width: 22px;
        height: 22px;
      }

      .image-preview {
        grid-column: 1 / -1;
        position: relative;
        width: 76px;
        height: 76px;
        margin: 2px 0 0 4px;
      }

      .image-preview[hidden] {
        display: none;
      }

      .image-preview img,
      .message-image {
        width: 100%;
        height: 100%;
        border-radius: 14px;
        object-fit: cover;
      }

      .image-preview img {
        border: 1px solid rgba(25, 104, 171, 0.2);
      }

      .image-preview button {
        position: absolute;
        top: -7px;
        right: -7px;
        width: 24px;
        height: 24px;
        border: 0;
        border-radius: 50%;
        background: var(--nova-red);
        color: #fff;
        cursor: pointer;
        font-size: 18px;
        line-height: 1;
      }

      .user-image-wrap {
        width: min(240px, 72vw);
        height: 180px;
        overflow: hidden;
        border-radius: 18px 18px 8px 18px;
        box-shadow: var(--card-shadow);
      }

      /* "Show all" control rendered right under the assistant's own text. */
      .collection-links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }

      .show-all-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: 1px solid rgba(25, 104, 171, 0.24);
        border-radius: 999px;
        background: rgba(25, 104, 171, 0.08);
        padding: 6px 13px;
        color: var(--nova-blue);
        cursor: pointer;
        font-size: 12.5px;
        font-weight: 800;
        line-height: 1.2;
        text-decoration: none;
        transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
      }

      .show-all-link::after {
        content: "→";
        font-size: 13px;
      }

      .show-all-link:hover {
        border-color: rgba(25, 104, 171, 0.42);
        background: rgba(25, 104, 171, 0.14);
        transform: translateY(-1px);
      }

      .show-all-link:focus-visible {
        outline: 2px solid var(--nova-blue);
        outline-offset: 2px;
      }

      /* The panel is absolutely positioned inside the widget shell, never over
         the host page, so an iframe embed keeps it fully visible. */
      .collection-modal {
        position: absolute;
        inset: 0;
        z-index: 12;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        border-radius: inherit;
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 248, 255, 0.94)),
          #fff;
        animation: rise 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
      }

      .collection-modal[hidden] {
        display: none;
      }

      .collection-head {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 20px 18px 12px;
        border-bottom: 1px solid var(--line);
      }

      .collection-heading {
        flex: 1 1 auto;
        min-width: 0;
      }

      .collection-heading strong {
        display: block;
        overflow: hidden;
        font-size: 15.5px;
        font-weight: 800;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .collection-heading span {
        display: block;
        margin-top: 3px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
      }

      .collection-body {
        overflow-y: auto;
        padding: 16px 18px 20px;
        overscroll-behavior: contain;
      }

      .collection-body::-webkit-scrollbar {
        width: 7px;
      }

      .collection-body::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(25, 104, 171, 0.18);
      }

      .collection-grid {
        display: grid;
        gap: 12px;
        grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
      }

      .collection-grid .catalog-card {
        width: auto;
        flex: 1 1 auto;
      }

      /* Keep the compact two-line title in chat, but show the complete product
         name after the shopper opens the expanded "Show all" collection. */
      .collection-grid .catalog-card .product-title {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
        overflow-wrap: anywhere;
        word-break: break-word;
      }

      .collection-status {
        margin: 14px 0 0;
        color: var(--muted);
        font-size: 12.5px;
        font-weight: 600;
        text-align: center;
      }

      .collection-more {
        display: block;
        width: 100%;
        margin-top: 14px;
        border: 1px solid rgba(25, 104, 171, 0.22);
        border-radius: 16px;
        background: rgba(25, 104, 171, 0.08);
        padding: 11px 14px;
        color: var(--nova-blue);
        cursor: pointer;
        font-size: 13px;
        font-weight: 800;
      }

      .collection-more:hover {
        background: rgba(25, 104, 171, 0.14);
      }

      .collection-more[hidden] {
        display: none;
      }

      .collection-more:disabled {
        cursor: wait;
        opacity: 0.6;
      }

      .collection-foot {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 18px 18px;
        border-top: 1px solid var(--line);
      }

      .collection-back {
        display: inline-flex;
        flex: 1 1 50%;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: auto;
        min-width: 0;
        height: 46px;
        padding: 12px 16px;
        border: 1px solid rgba(19, 32, 51, 0.1);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.9);
        color: #243449;
        font-family: inherit;
        font-size: 13px;
        font-weight: 800;
        cursor: pointer;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 22px -18px rgba(10, 62, 112, 0.55);
        transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
      }

      .collection-back:hover {
        border-color: rgba(25, 104, 171, 0.26);
        color: var(--nova-blue);
        transform: translateY(-1px);
      }

      .collection-back svg {
        flex: 0 0 auto;
        width: 20px;
        height: 20px;
      }

      .collection-back span {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }

      .collection-page-link {
        display: inline-flex;
        flex: 1 1 50%;
        min-width: 0;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        border-radius: 16px;
        background: var(--blue-grad);
        padding: 12px 16px;
        color: #fff;
        font-size: 13px;
        font-weight: 800;
        box-shadow: 0 16px 30px -20px rgba(10, 62, 112, 0.75);
      }

      .collection-page-link[hidden] {
        display: none;
      }

      .collection-page-link:hover {
        filter: brightness(1.05);
      }

      @media (max-width: 560px) {
        .collection-head {
          padding: 14px 14px 10px;
        }

        .collection-body {
          padding: 14px;
        }

        .collection-grid {
          grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
        }

        .collection-foot {
          padding: 10px 14px 14px;
        }
      }
