"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.n = (module)=>{
        var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
        __webpack_require__.d(getter, {
            a: getter
        });
        return getter;
    };
})();
(()=>{
    __webpack_require__.d = (exports1, definition)=>{
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
})();
(()=>{
    __webpack_require__.r = (exports1)=>{
        if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
    default: ()=>generated_answer_tw_css
});
const external_lit_namespaceObject = require("lit");
const generated_markdown_content_tw_css_cjs_namespaceObject = require("../generated-content/generated-markdown-content.tw.css.cjs");
var generated_markdown_content_tw_css_cjs_default = /*#__PURE__*/ __webpack_require__.n(generated_markdown_content_tw_css_cjs_namespaceObject);
const external_copy_button_tw_css_cjs_namespaceObject = require("./copy-button.tw.css.cjs");
var external_copy_button_tw_css_cjs_default = /*#__PURE__*/ __webpack_require__.n(external_copy_button_tw_css_cjs_namespaceObject);
const external_feedback_buttons_tw_css_cjs_namespaceObject = require("./feedback-buttons.tw.css.cjs");
var external_feedback_buttons_tw_css_cjs_default = /*#__PURE__*/ __webpack_require__.n(external_feedback_buttons_tw_css_cjs_namespaceObject);
const external_generated_text_tw_css_cjs_namespaceObject = require("./generated-text.tw.css.cjs");
var external_generated_text_tw_css_cjs_default = /*#__PURE__*/ __webpack_require__.n(external_generated_text_tw_css_cjs_namespaceObject);
const baseStyle = (0, external_lit_namespaceObject.css)`
  @reference '../../../../utils/tailwind.global.tw.css';

  /* Cursor blink animation */
  @keyframes cursor-blink {
    0% {
      opacity: 0;
    }
  }

  /* Container part styles */
  [part='container'] {
    container-type: inline-size;
    contain: layout;
  }

  /* Footer styles - responsive layout via container queries and media queries */
  .footer {
    @apply flex;
  }

  .footer .source-citations {
    @apply mr-2;
  }

  @container (max-width: 37.5rem) {
    .footer {
      @apply flex-col gap-4;
    }
    .footer .source-citations {
      @apply mr-0;
    }
    [part='generated-answer-footer'] {
      @apply flex-col gap-1;
    }
  }

  @media not all and (width >= 768px) {
    .footer {
      @apply flex-col gap-4;
    }
    .footer .source-citations {
      @apply mr-0;
    }
    [part='generated-answer-footer'] {
      @apply flex-col gap-1;
    }
  }

  @container (max-width: 25rem) {
    .footer {
      @apply mt-4;
    }
    .footer .feedback-buttons {
      @apply relative top-0 right-0;
    }
  }

  /* Collapsible footer styles */
  .is-collapsible {
    @apply justify-between;
  }

  .is-collapsible [part='answer-show-button'] {
    @apply flex;
  }

  /* Ensure header icon inherits and applies the primary text color */
  [part='header-icon'] {
    color: var(--atomic-primary);
  }

  /* Reserve space so the query text doesn't reflow when action buttons appear */
  [part='feedback-and-copy-buttons'] {
    min-width: var(--atomic-generated-answer-actions-reserved-width, 8rem);
  }

  [part='header-icon'] svg,
  [part='header-icon'] svg * {
    fill: currentColor;
    stroke: currentColor;
  }

  /* Generating label visibility */
  .generating-label-visible [part='is-generating'] {
    @apply flex;
  }

  /* Collapsed answer container styles */
  [part='generated-container'].answer-collapsed {
    @apply relative overflow-hidden;
    max-height: var(--atomic-crga-collapsed-height, 16rem);
  }

  [part='generated-container'].answer-collapsed::before {
    content: '';
    @apply absolute top-0 left-0 h-full w-full;
    background: linear-gradient(
      transparent calc(var(--atomic-crga-collapsed-height, 16rem) * 0.7),
      var(--atomic-background)
    );
  }

  [part='generated-container'].answer-collapsed .feedback-buttons {
    @apply hidden;
  }

  .generated-answer-content-background {
    background-color: var(--atomic-neutral-lighter, var(--atomic-background));
  }

  /**
   * @prop --atomic-generated-answer-content-fixed-height: The fixed height of the generated answer content when agent-id is set.
   */
  [part='generated-content-container'] .agent-scrollable {
    @apply overflow-y-auto;
    height: var(--atomic-generated-answer-content-fixed-height, 50vh);
  }

  /* Allow query label up to 3 lines before truncating */
  .query-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
`;
const generated_answer_tw_css = [
    baseStyle,
    external_generated_text_tw_css_cjs_default(),
    generated_markdown_content_tw_css_cjs_default(),
    external_feedback_buttons_tw_css_cjs_default(),
    external_copy_button_tw_css_cjs_default()
];
exports["default"] = __webpack_exports__["default"];
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "default"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
