.hmc-form-container {
    width: 100% !important;
    margin: 0 auto;
    padding: 0 !important;
    border: none !important;
    overflow: visible;
    max-width: 100%;
    background-color: var(--hmc-container-bg, transparent);
}

/* Swipe layout: themed surfaces via CSS variables from applyCustomStyles() */
.hmc-form-container:not([data-chooser-type="chat"]) .hmc-swiper-shell,
.hmc-form-container:not([data-chooser-type="chat"]) .hmc-swiper {
    background-color: var(--hmc-container-bg, transparent);
}

.hmc-form-container:not([data-chooser-type="chat"]) .hmc-step {
    background-color: transparent;
    border-radius: var(--hmc-step-border-radius, 12px);
}

.hmc-form-container:not([data-chooser-type="chat"]) .hmc-step-options {
    padding: 12px 16px;
    overflow: visible;
}

.hmc-form-container:not([data-chooser-type="chat"]) .hmc-option {
    background-color: var(--hmc-option-bg, #ffffff) !important;
    color: var(--hmc-option-label-color, #000024);
    border: var(--hmc-option-border-width, 0) solid var(--hmc-option-border-color, transparent) !important;
    border-radius: var(--hmc-option-border-radius, 12px) !important;
    box-shadow: var(--hmc-option-box-shadow, none) !important;
}

.hmc-form-container:not([data-chooser-type="chat"]) .hmc-option:hover {
    background-color: var(--hmc-option-hover-bg, #f5f5f5) !important;
    filter: none;
}

.hmc-form-container:not([data-chooser-type="chat"]) .hmc-option:hover .hmc-option-label,
.hmc-form-container:not([data-chooser-type="chat"]) .hmc-option:hover .hmc-option-description {
    color: var(--hmc-option-label-color, #000024);
}

/* Adjust styles: one radius for cards, images, icons, pagination, and chat UI */
.hmc-form-container:not([data-chooser-type="chat"]) :is(
    .hmc-step,
    .hmc-step-card,
    .hmc-option,
    .hmc-option-image,
    .hmc-option-image img,
    .hmc-pagination-bullet,
    .hmc-product-card,
    .hmc-content-card,
    .hmc-product-image-wrapper img,
    .hmc-card-thumbnail-wrapper,
    .hmc-card-thumbnail-wrapper img,
    .hmc-card-thumbnail
) {
    border-radius: var(--hmc-border-radius, var(--hmc-option-border-radius, 12px)) !important;
}

.hmc-form-container[data-chooser-type="chat"] :is(
    .hmc-chat-shell,
    .hmc-chat-option,
    .hmc-chat-option-thumb,
    .hmc-chat-option-thumb img
) {
    border-radius: var(--hmc-border-radius, var(--hmc-chat-option-border-radius, 12px)) !important;
}

/* Bubbles use per-side radius vars; speech-bubble tails need one square corner (see below). */
.hmc-form-container[data-chooser-type="chat"]:not(.hmc-chat-bubble-style--speech-bubble) .hmc-chat-bubble-bot,
.hmc-form-container[data-chooser-type="chat"]:not(.hmc-chat-user-style--speech-bubble) .hmc-chat-bubble-user {
    border-radius: var(--hmc-border-radius, var(--hmc-chat-bot-border-radius, 12px)) !important;
}

.hmc-form-container.hmc-typography--custom:not([data-chooser-type="chat"]) .hmc-step-title {
    font-size: var(--hmc-step-title-size, inherit);
    color: var(--hmc-step-title-color, inherit);
}

.hmc-form-container.hmc-typography--custom:not([data-chooser-type="chat"]) .hmc-step-description {
    font-size: var(--hmc-step-description-size, inherit);
    color: var(--hmc-step-description-color, inherit);
}

.hmc-form-container.hmc-typography--custom:not([data-chooser-type="chat"]) .hmc-option-label {
    font-size: var(--hmc-option-label-size, inherit);
    color: var(--hmc-option-label-color, inherit);
}

/* Plugin preset typography and colors for swipe (mirrors custom var wiring) */
.hmc-form-container.hmc-typography--plugin:not([data-chooser-type="chat"]) {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.hmc-form-container.hmc-typography--plugin:not([data-chooser-type="chat"]) .hmc-step-title {
    font-size: var(--hmc-step-title-size, 1.75rem) !important;
    line-height: 1.15;
    color: var(--hmc-step-title-color, #102449);
    letter-spacing: -0.02em;
}

.hmc-form-container.hmc-typography--plugin:not([data-chooser-type="chat"]) .hmc-step-description {
    font-size: var(--hmc-step-description-size, 1.125rem) !important;
    line-height: 1.55;
    color: var(--hmc-step-description-color, #475569);
}

.hmc-form-container.hmc-typography--plugin:not([data-chooser-type="chat"]) .hmc-option-label {
    font-size: var(--hmc-option-label-size, 1.125rem) !important;
    line-height: 1.35;
    color: var(--hmc-option-label-color, #000024);
    font-weight: 600;
}

.hmc-form-container.hmc-typography--plugin:not([data-chooser-type="chat"]) .hmc-step-number {
    color: var(--hmc-step-title-color, #102449);
}

.hmc-form-container.hmc-typography--plugin:not([data-chooser-type="chat"]) .hmc-recommendations-header {
    font-size: var(--hmc-recommendation-title-size, 2.625rem) !important;
    line-height: 1.1;
    color: var(--hmc-recommendation-title-color, #102449);
    letter-spacing: -0.02em;
    font-weight: 800;
}

.hmc-form-container.hmc-typography--plugin:not([data-chooser-type="chat"]) .hmc-rec-description {
    color: var(--hmc-recommendation-description-color, #334155);
    font-size: var(--hmc-recommendation-description-size, 1.125rem) !important;
    line-height: 1.65;
}

.hmc-form-container.hmc-typography--plugin .hmc-rec-content-items .hmc-card-title,
.hmc-form-container.hmc-typography--plugin .hmc-rec-content-items .hmc-card-title a,
.hmc-form-container.hmc-typography--plugin .hmc-rec-content-items .hmc-product-title,
.hmc-form-container.hmc-typography--plugin .hmc-rec-content-items .hmc-product-title a {
    font-size: var(--hmc-option-label-size, inherit) !important;
    line-height: 1.35;
    color: var(--hmc-option-label-color, inherit);
    font-weight: 700;
}

.hmc-form-container.hmc-typography--plugin .hmc-rec-content-items .hmc-card-excerpt,
.hmc-form-container.hmc-typography--plugin .hmc-rec-content-items .hmc-product-excerpt {
    font-size: var(--hmc-recommendation-description-size, inherit) !important;
    line-height: 1.55;
    color: var(--hmc-recommendation-description-color, inherit);
}

.hmc-form-container.hmc-typography--plugin .hmc-rec-content-items .hmc-card-read-more {
    font-size: var(--hmc-option-label-size, inherit) !important;
    color: var(--hmc-primary-color, var(--hmc-option-label-color, inherit));
}

.hmc-step-number {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    line-height: 1;
    flex-shrink: 0;
}

/* Swiper shell: slides + footer in document flow (no overlap) */
.hmc-swiper-shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Swiper container */
.hmc-swiper {
    width: 100%;
    height: auto;
    min-height: 50vh;
    position: relative;
}

/* Inactive slides are hidden via opacity; allow option box-shadows to paint outside the track. */
.hmc-form-container:not([data-chooser-type="chat"]) .hmc-swiper.swiper,
.hmc-form-container:not([data-chooser-type="chat"]) .hmc-swiper .swiper-wrapper,
.hmc-form-container:not([data-chooser-type="chat"]) .hmc-swiper .swiper-slide,
.hmc-form-container:not([data-chooser-type="chat"]) .hmc-step-content,
.hmc-form-container:not([data-chooser-type="chat"]) .hmc-step-card {
    overflow: visible;
}

.hmc-swiper .swiper-wrapper {
    align-items: stretch;
}

.hmc-swiper .swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
    opacity: 0 !important;
    transition: opacity 0.4s ease;
}

.hmc-swiper .swiper-slide-active,
.hmc-swiper .swiper-slide.hmc-recommendation-slide.swiper-slide-active {
    opacity: 1 !important;
}

/* Ensure recommendation slide is visible when active */
.hmc-swiper .hmc-recommendation-slide.swiper-slide-active {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Swiper footer: step numbers + reset (below slides, stacked) */
.hmc-swiper-footer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 12px 4px;
    box-sizing: border-box;
}

/* Pagination step numbers */
.hmc-swiper-pagination {
    position: static;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0;
}

/* Override Swiper's default pagination styles (pagination lives in footer below swiper) */
.hmc-swiper-shell .swiper-pagination-horizontal,
.hmc-swiper-shell .swiper-pagination-bullets,
.hmc-swiper-shell .swiper-pagination-custom,
.hmc-swiper-shell .swiper-pagination-fraction,
.hmc-swiper .swiper-pagination-horizontal,
.hmc-swiper .swiper-pagination-bullets,
.hmc-swiper .swiper-pagination-custom,
.hmc-swiper .swiper-pagination-fraction {
    position: static !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
}

.hmc-swiper-reset:empty {
    display: none;
}

.hmc-swiper-footer .hmc-reset-wrapper {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    text-align: center;
}

.hmc-pagination-bullet {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: var(--hmc-option-border-radius, 6px);
    background-color: #e2e8f0;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    box-sizing: border-box;
}

.hmc-pagination-bullet:hover {
    opacity: 1;
    background-color: #cbd5e1;
}

.hmc-form-container.hmc-style-preset--nordic:not([data-chooser-type="chat"]) .hmc-pagination-bullet-active {
    background-color: #000024;
    color: #ffffff;
    opacity: 1;
}

.hmc-pagination-bullet-active {
    background-color: #0073aa;
    color: #ffffff;
    opacity: 1;
}

.hmc-pagination-bullet.hmc-bullet-enabled {
    cursor: pointer;
    opacity: 0.85;
}

.hmc-pagination-bullet.hmc-bullet-enabled:hover {
    opacity: 1;
    background-color: #cbd5e1;
    color: #0f172a;
}

.hmc-pagination-bullet.hmc-bullet-disabled {
    cursor: not-allowed;
    opacity: 0.35;
    background-color: #e2e8f0;
    color: #94a3b8;
}

.hmc-pagination-bullet.hmc-bullet-disabled:hover {
    opacity: 0.35;
    background-color: #e2e8f0;
}

.hmc-step {
    padding: 20 !important;
    border: none !important;
    border-radius: var(--hmc-step-border-radius, 12px) !important;
    margin-bottom: 30px !important;
    transition: all 0.3s ease;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.hmc-step-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hmc-step-title {
    margin-top: 0;
    margin-bottom: 15px !important;
    font-weight: 700;
}

.hmc-step-description {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 400;
}
.hmc-step-options {
    display: grid;
    gap: 20px;
    max-width: 100%;
}

/* Desktop: adapts to number of items, max 5 columns */
@media (min-width: 768px) {
    .hmc-step-options[data-options-count="1"] {
        grid-template-columns: repeat(1, 1fr);
    }
    .hmc-step-options[data-options-count="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
    .hmc-step-options[data-options-count="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
    .hmc-step-options[data-options-count="4"] {
        grid-template-columns: repeat(4, 1fr);
    }
    .hmc-step-options[data-options-count="5"],
    .hmc-step-options[data-options-count="6"],
    .hmc-step-options[data-options-count="7"],
    .hmc-step-options[data-options-count="8"],
    .hmc-step-options[data-options-count="9"],
    .hmc-step-options[data-options-count="10"] {
        grid-template-columns: repeat(5, 1fr);
    }
    
    /* Fallback for when data attribute is not set */
    .hmc-step-options:not([data-options-count]) {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        max-width: calc(5 * (100% / 5));
    }
}

/* Mobile: always 2 columns (50% each) */
@media (max-width: 767px) {
    .hmc-step-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hmc-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px !important;
    border-radius: var(--hmc-option-border-radius, 12px) !important;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    position: relative;
    min-height: 150px;
}

.hmc-form-container:not([data-chooser-type="chat"]) .hmc-option {
    border: var(--hmc-option-border-width, 0) solid var(--hmc-option-border-color, transparent) !important;
    box-shadow: var(--hmc-option-box-shadow, none) !important;
}

.hmc-option:hover {
    transform: none !important;
    filter: none;
}

.hmc-radio-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    cursor: pointer;
}

/* Selected state - using :has() for modern browsers */
@supports selector(:has(*)) {
    .hmc-option:has(.hmc-radio-input:checked) {
        border: none !important;
        filter: brightness(0.94);
    }
}

/* Fallback for browsers without :has() support */
.hmc-option.hmc-option-selected {
    border: none !important;
    filter: brightness(0.94);
}

.hmc-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 10px;
}
.hmc-option-label {
    cursor: pointer;
    margin-top: 12px;
    margin-bottom: 4px;
}
.hmc-option-description {
    cursor: pointer;
    text-align: center;
    margin-bottom: 12px;
}

.hmc-option-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    flex-shrink: 0;
    height: var(--hmc-option-image-height, 100px);
    min-height: var(--hmc-option-image-height, 100px);
}

.hmc-form-container:not([data-chooser-type="chat"]) .hmc-option-image img,
.hmc-form-container:not([data-chooser-type="chat"]) .hmc-option-image .hmc-attachment-image--svg {
    width: auto;
    max-width: 100% !important;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: var(--hmc-border-radius, var(--hmc-option-border-radius, 12px)) !important;
}

/* -------------------------------------------------------------------------
   Product finder layout (reference: numbered header, 2×2 horizontal tiles)
   ------------------------------------------------------------------------- */
.hmc-layout-preset--product_finder {
    padding: 24px 16px !important;
}

.hmc-layout-preset--product_finder .hmc-swiper {
    min-height: auto;
}

.hmc-layout-preset--product_finder .hmc-step {
    min-height: auto;
    padding: 0 !important;
    margin-bottom: 0 !important;
    justify-content: flex-start;
    box-shadow: none !important;
}

.hmc-layout-preset--product_finder .hmc-step-content {
    align-items: stretch;
    gap: 0;
}

.hmc-layout-preset--product_finder .hmc-step-card {
    background: var(--hmc-step-bg, #ffffff);
    border-radius: var(--hmc-step-border-radius, 16px);
    padding: var(--hmc-step-padding, 32px);
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: none;
}

.hmc-layout-preset--product_finder .hmc-step-intro {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
}

.hmc-layout-preset--product_finder .hmc-step-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hmc-step-title-color, #000000);
    margin-top: 0.15em;
}

.hmc-layout-preset--product_finder .hmc-step-intro-text {
    flex: 1;
    min-width: 0;
}

.hmc-layout-preset--product_finder .hmc-step-title {
    margin-bottom: 8px !important;
    font-weight: 700;
    line-height: 1.25;
}

.hmc-layout-preset--product_finder .hmc-step-description {
    margin: 0;
    font-weight: 400;
    line-height: 1.45;
}

.hmc-layout-preset--product_finder .hmc-step-options {
    gap: 12px;
}

@media (min-width: 768px) {
    .hmc-layout-preset--product_finder .hmc-step-options[data-options-count="3"],
    .hmc-layout-preset--product_finder .hmc-step-options[data-options-count="4"],
    .hmc-layout-preset--product_finder .hmc-step-options[data-options-count="5"],
    .hmc-layout-preset--product_finder .hmc-step-options[data-options-count="6"],
    .hmc-layout-preset--product_finder .hmc-step-options[data-options-count="7"],
    .hmc-layout-preset--product_finder .hmc-step-options[data-options-count="8"],
    .hmc-layout-preset--product_finder .hmc-step-options[data-options-count="9"],
    .hmc-layout-preset--product_finder .hmc-step-options[data-options-count="10"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hmc-layout-preset--product_finder .hmc-option {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    min-height: 0;
    padding: 14px 16px !important;
    box-shadow: none !important;
    gap: 14px;
}

.hmc-layout-preset--product_finder .hmc-option:hover {
    background-color: var(--hmc-option-hover-bg, #f5f5f5) !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none;
}

.hmc-layout-preset--product_finder .hmc-option-image {
    width: 52px;
    height: 52px;
    min-height: 52px;
    margin: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hmc-option-icon-bg, #ffffff);
    border-radius: var(--hmc-option-border-radius, 10px);
    padding: 8px;
    box-sizing: border-box;
}

.hmc-layout-preset--product_finder .hmc-option-image img,
.hmc-layout-preset--product_finder .hmc-option-image .hmc-attachment-image--svg {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: 100% !important;
    border-radius: var(--hmc-border-radius, var(--hmc-option-border-radius, 12px)) !important;
    object-fit: contain;
}

.hmc-layout-preset--product_finder .hmc-option-content {
    flex-direction: row;
    align-items: center;
    padding: 0;
    width: auto;
    flex: 1;
}

.hmc-layout-preset--product_finder .hmc-option-label {
    margin: 0;
    text-align: left;
    font-weight: 500;
}

.hmc-layout-preset--product_finder .hmc-option-description {
    display: none;
}

@supports selector(:has(*)) {
    .hmc-layout-preset--product_finder .hmc-option:has(.hmc-radio-input:checked) {
        outline: none;
        border: none !important;
        filter: brightness(0.94);
    }
}

.hmc-layout-preset--product_finder .hmc-option.hmc-option-selected {
    outline: none;
    border: none !important;
    filter: brightness(0.94);
}

/* Soft grid: 2-column card layout with subtle borders */
.hmc-layout-preset--soft_cards {
    padding: 20px 16px !important;
}

.hmc-layout-preset--soft_cards .hmc-step-card {
    background: var(--hmc-step-bg, #ffffff);
    border-radius: var(--hmc-step-border-radius, 14px);
    padding: var(--hmc-step-padding, 24px);
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hmc-layout-preset--soft_cards .hmc-step-intro {
    margin-bottom: 24px;
}

.hmc-layout-preset--soft_cards .hmc-step-options {
    gap: 14px;
}

@media (min-width: 768px) {
    .hmc-layout-preset--soft_cards .hmc-step-options[data-options-count="3"],
    .hmc-layout-preset--soft_cards .hmc-step-options[data-options-count="4"],
    .hmc-layout-preset--soft_cards .hmc-step-options[data-options-count="5"],
    .hmc-layout-preset--soft_cards .hmc-step-options[data-options-count="6"],
    .hmc-layout-preset--soft_cards .hmc-step-options[data-options-count="7"],
    .hmc-layout-preset--soft_cards .hmc-step-options[data-options-count="8"],
    .hmc-layout-preset--soft_cards .hmc-step-options[data-options-count="9"],
    .hmc-layout-preset--soft_cards .hmc-step-options[data-options-count="10"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hmc-layout-preset--soft_cards .hmc-option {
    box-shadow: none !important;
    min-height: 120px;
}

.hmc-layout-preset--soft_cards .hmc-option:hover {
    background-color: var(--hmc-option-hover-bg, #f5f5f5) !important;
    transform: none !important;
    filter: none;
}

/* Mobile: Force images to fit within container */
@media (max-width: 767px) {
    .hmc-form-container {
        padding: 0 !important;
    }

    .hmc-layout-preset--product_finder,
    .hmc-layout-preset--soft_cards {
        padding: 16px 12px !important;
    }

    .hmc-layout-preset--product_finder .hmc-step-card,
    .hmc-layout-preset--soft_cards .hmc-step-card {
        padding: 20px 16px;
    }

    .hmc-layout-preset--product_finder .hmc-option {
        padding: 14px 16px !important;
    }

    .hmc-layout-preset--product_finder .hmc-option-image {
        width: 44px;
        height: 44px;
        min-height: 44px;
    }
    
    .hmc-step {
        padding: 16px 12px !important;
        border-radius: var(--hmc-step-border-radius, 10px) !important;
    }
    
    .hmc-step-content {
        padding: 0 !important;
    }
    
    .hmc-form-container:not([data-chooser-type="chat"]) .hmc-option-image {
        max-width: 100%;
        overflow: hidden;
        height: var(--hmc-option-image-height, 80px);
        min-height: var(--hmc-option-image-height, 80px);
    }
    
    .hmc-form-container:not([data-chooser-type="chat"]) .hmc-option-image img,
    .hmc-form-container:not([data-chooser-type="chat"]) .hmc-option-image .hmc-attachment-image--svg {
        max-width: 100% !important;
        width: auto !important;
        height: 100% !important;
        max-height: 100% !important;
        object-fit: contain;
    }
    
    .hmc-option {
        padding: 20px 14px !important;
        border-radius: var(--hmc-option-border-radius, 10px) !important;
        max-width: 100%;
        overflow: visible;
        min-height: 120px;
    }
    
    .hmc-option-content {
        padding: 0 10px !important;
    }
    
    .hmc-step-options {
        max-width: 100%;
        overflow: visible;
        gap: 12px;
        padding: 8px 12px;
    }
    
    /* Remove font sizes - use theme defaults */
    .hmc-step-title {
        line-height: inherit;
    }
    
    .hmc-step-description {
        line-height: inherit;
    }
    
    .hmc-rec-content-items .hmc-card-content,
    .hmc-rec-content-items .hmc-product-content {
        padding: 14px 16px 16px !important;
    }
    
    .hmc-recommendation-result {
        padding: 0 !important;
    }
    
    .hmc-rec-content-loading {
        padding: 0 !important;
    }
    
    .hmc-debug-info {
        padding: 0 !important;
    }
    
    .hmc-debug-row {
        padding: 0 !important;
    }
    
    .hmc-debug-row code {
        padding: 0 !important;
    }
    
    .hmc-debug-row pre {
        padding: 0 !important;
    }
    
    .hmc-reset-wrapper {
        padding-top: 0 !important;
    }
    
    .hmc-reset-button {
        padding: 0 !important;
    }
}

/* If no image, adjust label spacing */
.hmc-option:not(:has(.hmc-option-image img)) .hmc-option-label {
    margin-top: 0;
}

/* Fallback for browsers without :has() */
.hmc-option:not(.hmc-has-image) .hmc-option-label {
    margin-top: 0;
}
.hmc-recommendation-slide {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

/* Keep recommendation slide in Swiper layout before it is shown (no display:none). */
.hmc-swiper .hmc-recommendation-slide:not(.swiper-slide-active) {
    pointer-events: none;
}

.hmc-swiper .hmc-recommendation-slide.swiper-slide-active .hmc-recommendation-result {
    width: 100%;
    max-width: 100%;
    padding: 20px 15px 12px;
    box-sizing: border-box;
}

.hmc-recommendation-result {
    margin-top: 40px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hmc-recommendation-result .hmc-recommendation-item {
    width: 100%;
    max-width: 100%;
}

.hmc-recommendations-header {
    margin-top: 0;
    margin-bottom: 30px;
    text-align: left;
}

.hmc-recommendation-result .hmc-rec-title {
    margin-bottom: 20px;
    display: none; /* Hide individual recommendation titles, use header instead */
}

.hmc-recommendation-item {
    margin-bottom: 30px;
}
.hmc-recommendation-item:last-child {
    margin-bottom: 0;
}
.hmc-rec-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

.hmc-rec-title h4,
.hmc-recommendation-item h4 {
    font-weight: bold;
}
.hmc-rec-description {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 0;
}
.hmc-rec-content-items {
    margin-top: 20px;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hmc-rec-content-items > .hmc-content-card,
.hmc-rec-content-items > .hmc-product-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    height: auto !important;
    box-sizing: border-box;
}

@media (max-width: 639px) {
    .hmc-rec-content-items {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .hmc-rec-content-items--grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 640px) and (max-width: 899px) {
    .hmc-rec-content-items--grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
.hmc-rec-content-loading {
    text-align: center;
    padding: 20px;
    grid-column: 1 / -1;
    font-style: italic;
}
.hmc-rec-content.hmc-loading {
    font-style: italic;
}
/* Product Card Styles */
.hmc-product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    background: #fff;
    border-radius: var(--hmc-border-radius, var(--hmc-option-border-radius, 12px));
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hmc-product-card:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

.hmc-product-image-wrapper {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

.hmc-product-image-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.hmc-product-thumbnail {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hmc-product-thumbnail img,
.hmc-product-thumbnail .hmc-card-thumbnail {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.hmc-product-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 18px;
}

.hmc-product-title {
    margin: 0 0 12px 0;
    font-weight: bold;
}

.hmc-product-title a {
    text-decoration: none;
}


.hmc-product-excerpt {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
    max-width: 100%;
}

.hmc-product-rating {
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

.hmc-star {
    line-height: 1;
}

.hmc-star-filled {
    color: #000;
}

.hmc-star-empty {
    color: #ccc;
}

.hmc-product-price {
    margin: 0 0 15px 0;
    line-height: 1.35;
}
.hmc-product-price .screen-reader-text {
    display: none !important;
}
.hmc-product-price del,
.hmc-product-price .hmc-price-regular {
    display: block;
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
    text-decoration: line-through;
    margin-bottom: 2px;
}
.hmc-product-price ins,
.hmc-product-price .hmc-price-current {
    display: block;
    color: #0f172a;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}
.hmc-product-price--on-sale .hmc-price-current {
    color: #0f172a;
}


.hmc-product-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    align-self: flex-start;
    padding: 12px 32px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    background-color: #002b56;
    color: white;
}

.hmc-product-buy-btn:hover {
    background-color: #003d7a;
    text-decoration: none;
}

.hmc-product-read-more-btn {
    /* Same style as buy button */
}

.hmc-buy-text {
    color: white;
}

/* Regular Page/Post Card Styles */
.hmc-content-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: var(--hmc-border-radius, var(--hmc-option-border-radius, 12px));
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hmc-card-thumbnail-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.hmc-card-title a {
    text-decoration: none;
    color: inherit;
}
.hmc-card-title a:hover {
    text-decoration: underline;
}

.hmc-content-card:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
    filter: none;
}

.hmc-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
}

.hmc-card-link:hover {
    text-decoration: none !important;
}

.hmc-content-card:hover .hmc-card-link,
.hmc-product-card:hover .hmc-card-link {
    text-decoration: none !important;
}

.hmc-card-thumbnail-wrapper {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    background: #f1f5f9;
    overflow: hidden;
}

.hmc-card-thumbnail,
.hmc-card-thumbnail-link img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
}

.hmc-card-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: block;
    background: #e2e8f0;
    position: relative;
}

.hmc-card-thumbnail-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 48px;
    height: 48px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10.5' r='1.5'/%3E%3Cpath d='M21 16l-5.5-5.5a2 2 0 0 0-2.8 0L7 17'/%3E%3C/svg%3E");
    opacity: 0.85;
}

.hmc-card-content {
    flex: 1 1 auto;
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hmc-card-title {
    margin: 0;
    line-height: 1.35;
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hmc-card-read-more {
    display: inline-block;
    margin-top: auto;
    padding-top: 4px;
    font-weight: 600;
    text-decoration: none;
}
.hmc-card-read-more:hover {
    text-decoration: underline;
}

.hmc-card-excerpt {
    margin: 0;
    flex: 1 1 auto;
    line-height: 1.55;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 639px) {
    .hmc-rec-content-items .hmc-content-card,
    .hmc-rec-content-items .hmc-product-card {
        max-width: 100%;
    }

    .hmc-card-content,
    .hmc-product-content {
        padding: 14px 16px 16px;
    }
}

/* Reset Button Styles */
.hmc-reset-wrapper {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.hmc-reset-button {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    padding: 10px 20px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hmc-reset-button:hover {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    text-decoration: underline !important;
}

.hmc-reset-button:active {
    transform: translateY(0);
}

/* Debug Info Styles (Admin Only) */
.hmc-debug-info {
    margin-top: 20px;
    padding: 20px;
    background-color: #f5f5f5 !important;
    border: 2px solid #d0d0d0 !important;
    border-radius: 8px;
    font-family: monospace;
    color: #1d2327 !important;
}

.hmc-debug-info h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1d2327 !important;
}

.hmc-debug-row {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.hmc-debug-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hmc-debug-row strong {
    display: block;
    margin-bottom: 5px;
    color: #1d2327 !important;
}

.hmc-debug-row code {
    display: block;
    padding: 8px;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    word-break: break-all;
    color: #1d2327 !important;
}

.hmc-debug-row pre {
    display: block;
    padding: 10px;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    overflow-x: auto;
    max-height: 200px;
    overflow-y: auto;
    margin: 5px 0 0 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #1d2327 !important;
}

/* Typography and recommendation page theming */
.hmc-form-container.hmc-typography--custom {
    --hmc-step-title-size: 36px;
    --hmc-step-title-color: #000024;
    --hmc-step-description-size: 18px;
    --hmc-step-description-color: #000024;
    --hmc-option-label-size: 18px;
    --hmc-option-label-color: #000024;
    --hmc-recommendation-title-size: 42px;
    --hmc-recommendation-title-color: #000024;
    --hmc-recommendation-description-size: 18px;
    --hmc-recommendation-description-color: #000024;
    --hmc-primary-button-bg: #1d4ed8;
    --hmc-primary-button-text: #ffffff;
}

.hmc-form-container.hmc-typography--custom .hmc-step-title {
    font-size: var(--hmc-step-title-size);
    line-height: 1.15;
    color: var(--hmc-step-title-color);
    letter-spacing: -0.02em;
}

.hmc-form-container.hmc-typography--custom .hmc-step-description {
    font-size: var(--hmc-step-description-size);
    line-height: 1.55;
    color: var(--hmc-step-description-color);
}

.hmc-form-container.hmc-typography--custom .hmc-option-label {
    font-size: var(--hmc-option-label-size);
    line-height: 1.35;
    color: var(--hmc-option-label-color);
    font-weight: 700;
}

/* Recommendation page refresh */
.hmc-form-container:not([data-chooser-type="chat"]) .hmc-recommendation-result {
    margin-top: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
}

.hmc-form-container .hmc-recommendation-result {
    margin-top: 20px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.hmc-form-container.hmc-typography--custom .hmc-recommendations-header {
    margin-bottom: 12px;
    font-size: var(--hmc-recommendation-title-size);
    line-height: 1.1;
    color: var(--hmc-recommendation-title-color);
    letter-spacing: -0.02em;
    font-weight: 800;
}

.hmc-form-container.hmc-typography--custom .hmc-rec-description {
    margin: 0 0 26px;
    padding: 0;
    background: transparent;
    color: var(--hmc-recommendation-description-color);
    font-size: var(--hmc-recommendation-description-size);
    line-height: 1.65;
}

.hmc-form-container.hmc-typography--custom .hmc-rec-content-items .hmc-card-title,
.hmc-form-container.hmc-typography--custom .hmc-rec-content-items .hmc-card-title a,
.hmc-form-container.hmc-typography--custom .hmc-rec-content-items .hmc-product-title,
.hmc-form-container.hmc-typography--custom .hmc-rec-content-items .hmc-product-title a {
    font-size: var(--hmc-option-label-size, inherit);
    line-height: 1.35;
    color: var(--hmc-option-label-color, inherit);
    font-weight: 700;
}

.hmc-form-container.hmc-typography--custom .hmc-rec-content-items .hmc-card-excerpt,
.hmc-form-container.hmc-typography--custom .hmc-rec-content-items .hmc-product-excerpt {
    font-size: var(--hmc-recommendation-description-size, inherit);
    line-height: 1.55;
    color: var(--hmc-recommendation-description-color, inherit);
}

.hmc-form-container.hmc-typography--custom .hmc-rec-content-items .hmc-card-read-more {
    font-size: var(--hmc-option-label-size, inherit);
    color: var(--hmc-primary-color, var(--hmc-option-label-color, inherit));
}

.hmc-form-container .hmc-recommendation-item {
    margin-bottom: 20px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
}

.hmc-form-container.hmc-typography--custom .hmc-rec-title {
    margin-bottom: 14px;
    color: var(--hmc-recommendation-title-color);
}

/* Contact form visual upgrade (CF7 + Gravity Forms) */
.hmc-form-container .hmc-rec-cf7-form,
.hmc-form-container .hmc-rec-gravity-form,
.hmc-form-container .hmc-rec-native-form {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
}

.hmc-form-container .hmc-rec-cf7-form input[type="text"],
.hmc-form-container .hmc-rec-cf7-form input[type="email"],
.hmc-form-container .hmc-rec-cf7-form input[type="tel"],
.hmc-form-container .hmc-rec-cf7-form textarea,
.hmc-form-container .hmc-rec-gravity-form input[type="text"],
.hmc-form-container .hmc-rec-gravity-form input[type="email"],
.hmc-form-container .hmc-rec-gravity-form input[type="tel"],
.hmc-form-container .hmc-rec-gravity-form textarea,
.hmc-form-container .hmc-rec-gravity-form select,
.hmc-form-container .hmc-rec-native-form input[type="text"],
.hmc-form-container .hmc-rec-native-form input[type="email"],
.hmc-form-container .hmc-rec-native-form input[type="tel"],
.hmc-form-container .hmc-rec-native-form textarea {
    width: 100%;
    border-radius: 0;
    border: 1px solid #cdd9ea;
    background: transparent;
    padding: 12px 14px;
    color: #0f172a;
    box-sizing: border-box;
}

.hmc-form-container .hmc-rec-cf7-form input:focus,
.hmc-form-container .hmc-rec-cf7-form textarea:focus,
.hmc-form-container .hmc-rec-gravity-form input:focus,
.hmc-form-container .hmc-rec-gravity-form textarea:focus,
.hmc-form-container .hmc-rec-gravity-form select:focus,
.hmc-form-container .hmc-rec-native-form input:focus,
.hmc-form-container .hmc-rec-native-form textarea:focus {
    border-color: #4f8cff;
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.14);
    outline: none;
}

.hmc-form-container.hmc-typography--custom .hmc-rec-cf7-form input[type="submit"],
.hmc-form-container.hmc-typography--custom .hmc-rec-cf7-form button,
.hmc-form-container.hmc-typography--custom .hmc-rec-gravity-form button,
.hmc-form-container.hmc-typography--custom .hmc-rec-gravity-form input[type="submit"],
.hmc-form-container.hmc-typography--custom .hmc-rec-native-form button,
.hmc-form-container.hmc-typography--custom .hmc-rec-native-form input[type="submit"],
.hmc-form-container.hmc-typography--custom .hmc-product-buy-btn {
    background: var(--hmc-primary-button-bg) !important;
    color: var(--hmc-primary-button-text) !important;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    padding: 11px 22px !important;
    font-weight: 700 !important;
    transition: transform 0.2s ease, filter 0.2s ease !important;
}

.hmc-form-container .hmc-rec-cf7-form input[type="submit"]:hover,
.hmc-form-container .hmc-rec-cf7-form button:hover,
.hmc-form-container .hmc-rec-gravity-form button:hover,
.hmc-form-container .hmc-rec-gravity-form input[type="submit"]:hover,
.hmc-form-container .hmc-rec-native-form button:hover,
.hmc-form-container .hmc-rec-native-form input[type="submit"]:hover,
.hmc-form-container .hmc-product-buy-btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.95);
}

/* Native contact form layout */
.hmc-form-container {
    --hmc-native-label-color: #000000;
    --hmc-native-label-font-size: 14px;
    --hmc-native-input-bg: #ffffff;
    --hmc-native-input-text: #000000;
    --hmc-native-input-border-width: 1px;
    --hmc-native-input-border-color: #c5d0d8;
    --hmc-native-input-border-radius: 10px;
    --hmc-native-placeholder-opacity: 55;
    --hmc-native-button-bg: var(--hmc-primary-button-bg, #000024);
    --hmc-native-button-text: var(--hmc-primary-button-text, #ffffff);
    --hmc-native-button-hover-bg: transparent;
    --hmc-native-button-border-width: 0px;
    --hmc-native-button-border-color: transparent;
    --hmc-native-button-radius: 999px;
    --hmc-native-button-font-size: 15px;
}

.hmc-form-container .hmc-rec-native-form {
    max-width: 520px;
}

.hmc-form-container .hmc-native-contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hmc-form-container .hmc-native-form-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hmc-form-container .hmc-native-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hmc-form-container .hmc-native-field-label {
    display: block;
    font-weight: 600;
    font-size: var(--hmc-native-label-font-size, 14px);
    line-height: 1.35;
    color: var(--hmc-native-label-color, #0f172a);
    margin: 0;
}

.hmc-form-container .hmc-native-required {
    color: #b91c1c;
    font-weight: 700;
}

.hmc-form-container .hmc-native-field-input {
    width: 100%;
    border-radius: var(--hmc-native-input-border-radius, var(--hmc-border-radius, 0));
    border: var(--hmc-native-input-border-width, 1px) solid var(--hmc-native-input-border-color, #cdd9ea);
    background: var(--hmc-native-input-bg, #fff);
    padding: 12px 14px;
    color: var(--hmc-native-input-text, #0f172a);
    font-size: 15px;
    line-height: 1.4;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hmc-form-container .hmc-native-field-input::placeholder {
    color: var(--hmc-native-input-text, #0f172a);
    opacity: calc(var(--hmc-native-placeholder-opacity, 55) / 100);
}

.hmc-form-container .hmc-native-field-input:focus {
    border-color: #4f8cff;
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.14);
    outline: none;
}

.hmc-form-container .hmc-native-field--invalid .hmc-native-field-input {
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.hmc-form-container .hmc-native-field-error {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    color: #b91c1c;
}

.hmc-form-container .hmc-native-field-error[hidden] {
    display: none;
}

.hmc-form-container .hmc-native-form-alert {
    padding: 10px 12px;
    border-radius: var(--hmc-border-radius, 0);
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.4;
}

.hmc-form-container .hmc-native-form-alert[hidden] {
    display: none;
}

.hmc-form-container .hmc-native-form-actions {
    margin-top: 4px;
}

.hmc-form-container .hmc-native-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 24px;
    border: var(--hmc-native-button-border-width, 0) solid var(--hmc-native-button-border-color, transparent);
    border-radius: var(--hmc-native-button-radius, var(--hmc-border-radius, 0));
    background: var(--hmc-native-button-bg, var(--hmc-primary-button-bg, #1d4ed8));
    color: var(--hmc-native-button-text, var(--hmc-primary-button-text, #fff));
    font-weight: 700;
    font-size: var(--hmc-native-button-font-size, 15px);
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hmc-form-container:not([data-hmc-native-button-hover-custom]) .hmc-native-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(0.95);
}

.hmc-form-container[data-hmc-native-button-hover-custom] .hmc-native-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    background: var(--hmc-native-button-hover-bg, var(--hmc-native-button-bg));
    filter: none;
}

.hmc-form-container .hmc-native-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.hmc-form-container .hmc-native-form-thankyou {
    padding: 20px 18px;
    border-radius: var(--hmc-border-radius, 0);
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    text-align: center;
}

.hmc-form-container .hmc-native-form-thankyou[hidden] {
    display: none;
}

.hmc-form-container .hmc-native-form-thankyou-message {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    color: #065f46;
}

.hmc-form-container .hmc-rec-native-form--submitted .hmc-native-form-panel {
    display: none !important;
}

.hmc-form-container .hmc-rec-native-form .hmc-native-debug-preview {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: monospace;
    font-size: 12px;
    color: #0f172a;
}

/* Default style adjustments */
h3.hmc-step-description {
    padding-bottom: 50px;
}

label.hmc-option {
    background: white;
}

span.hmc-option-description {
    font-weight: 400;
}

.hmc-form-container .hmc-rec-cf7-form label,
.hmc-form-container .hmc-rec-gravity-form label {
    display: block;
    width: 100%;
}

.hmc-form-container .hmc-rec-cf7-form input:not([type="submit"]),
.hmc-form-container .hmc-rec-cf7-form textarea,
.hmc-form-container .hmc-rec-cf7-form select,
.hmc-form-container .hmc-rec-gravity-form input:not([type="submit"]),
.hmc-form-container .hmc-rec-gravity-form textarea,
.hmc-form-container .hmc-rec-gravity-form select,
.hmc-form-container .hmc-rec-native-form input:not([type="submit"]),
.hmc-form-container .hmc-rec-native-form textarea,
.hmc-form-container .hmc-rec-native-form select {
    background-color: #fff !important;
}

div.hmc-reset-wrapper {
    color: red;
    border: none;
}

button.hmc-reset-button {
    color: red;
}

form p label {
    font-weight: 400;
}

.hmc-contact-form-two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 200px;
    align-items: start;
}

.hmc-contact-form-two-col-layout .hmc-contact-form-two-col-left,
.hmc-contact-form-two-col-layout .hmc-contact-form-two-col-right {
    width: 100%;
}

.hmc-contact-form-two-col-layout .hmc-recommendation-item {
    margin-bottom: 0;
}

.hmc-contact-form-two-col-layout .hmc-recommendations-header {
    margin-top: 0;
}

@media (max-width: 900px) {
    .hmc-contact-form-two-col-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .hmc-form-container .hmc-step-title {
        font-size: calc(var(--hmc-step-title-size) * 0.78);
    }

    .hmc-form-container .hmc-recommendations-header {
        font-size: calc(var(--hmc-recommendation-title-size) * 0.72);
    }

    .hmc-form-container .hmc-recommendation-result {
        padding: 0;
        border-radius: 0;
    }

    /* Mobile contact-form best practices: avoid horizontal overflow and zoom. */
    .hmc-contact-form-two-col-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hmc-form-container .hmc-contact-form-two-col-left,
    .hmc-form-container .hmc-contact-form-two-col-right,
    .hmc-form-container .hmc-rec-native-form,
    .hmc-form-container .hmc-rec-cf7-form,
    .hmc-form-container .hmc-rec-gravity-form {
        width: 100%;
        max-width: 100%;
    }

    .hmc-form-container .hmc-rec-cf7-form input:not([type="submit"]),
    .hmc-form-container .hmc-rec-cf7-form textarea,
    .hmc-form-container .hmc-rec-cf7-form select,
    .hmc-form-container .hmc-rec-gravity-form input:not([type="submit"]),
    .hmc-form-container .hmc-rec-gravity-form textarea,
    .hmc-form-container .hmc-rec-gravity-form select,
    .hmc-form-container .hmc-rec-native-form input:not([type="submit"]),
    .hmc-form-container .hmc-rec-native-form textarea,
    .hmc-form-container .hmc-rec-native-form select,
    .hmc-form-container .hmc-native-field-input {
        width: 100% !important;
        box-sizing: border-box;
        font-size: 16px; /* Prevent iOS zoom on focus */
    }

    .hmc-form-container .hmc-rec-cf7-form input[type="submit"],
    .hmc-form-container .hmc-rec-cf7-form button,
    .hmc-form-container .hmc-rec-gravity-form input[type="submit"],
    .hmc-form-container .hmc-rec-gravity-form button,
    .hmc-form-container .hmc-rec-native-form input[type="submit"],
    .hmc-form-container .hmc-rec-native-form button,
    .hmc-form-container .hmc-native-submit {
        width: 100%;
        min-height: 44px;
    }
}

/* ==========================================================================
   Chat presentation — scoped to [data-chooser-type="chat"]
   ========================================================================== */
.hmc-form-container[data-chooser-type="chat"] {
    --hmc-chat-bot-bg: #4cc8bf;
    --hmc-chat-bot-text: #000000;
    --hmc-chat-bot-border-width: 0;
    --hmc-chat-bot-border-color: #000024;
    --hmc-chat-bot-border-radius: 16px;
    --hmc-chat-bot-box-shadow: none;
    --hmc-chat-user-bg: #000024;
    --hmc-chat-user-text: #ffffff;
    --hmc-chat-user-border-width: 0;
    --hmc-chat-user-border-color: #000024;
    --hmc-chat-user-border-radius: 999px;
    --hmc-chat-user-box-shadow: none;
    --hmc-chat-option-bg: #000024;
    --hmc-chat-option-text: #ffffff;
    --hmc-chat-option-border-width: 0;
    --hmc-chat-option-border-color: #000024;
    --hmc-chat-option-border-radius: 999px;
    --hmc-chat-option-box-shadow: none;
    --hmc-chat-avatar-bg: #000024;
    --hmc-chat-scroll-padding: 24px 20px;
    --hmc-chat-scroll-gap: 16px;
    --hmc-chat-bubble-padding: 14px 18px;
    --hmc-chat-user-bubble-padding: 10px 18px;
    --hmc-chat-turn-gap: 10px;
    --hmc-chat-row-gap: 10px;
    --hmc-chat-options-gap: 8px;
    --hmc-chat-option-row-gap: 10px;
    --hmc-chat-option-padding: 6px 12px;
    --hmc-chat-options-indent: 46px;
    --hmc-chat-max-width: 820px;
    max-width: var(--hmc-chat-max-width, 820px);
    margin: 0 auto;
}

.hmc-form-container[data-chooser-type="chat"].hmc-typography--theme {
    font-family: inherit;
}
.hmc-form-container.hmc-reset-control--hidden .hmc-reset-wrapper,
.hmc-form-container.hmc-reset-control--hidden .hmc-chat-footer {
    display: none !important;
}

.hmc-form-container[data-chooser-type="chat"] .hmc-chat-shell {
    display: flex;
    flex-direction: column;
    background: var(--hmc-chat-scroll-bg, #fff);
    border: none;
    border-radius: var(--hmc-border-radius, var(--hmc-chat-option-border-radius, 12px));
    overflow: visible;
    min-height: 0;
    height: auto;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-scroll {
    flex: 0 0 auto;
    overflow: visible;
    max-height: none;
    height: auto;
    padding: var(--hmc-chat-scroll-padding, 24px 20px);
    background: var(--hmc-chat-scroll-bg, #fff);
    display: flex;
    flex-direction: column;
    gap: var(--hmc-chat-scroll-gap, 16px);
}
.hmc-form-container[data-chooser-type="chat"].hmc-style-source--theme .hmc-chat-bubble-bot,
.hmc-form-container[data-chooser-type="chat"].hmc-style-source--theme .hmc-chat-bubble-user,
.hmc-form-container[data-chooser-type="chat"].hmc-style-source--theme .hmc-chat-option {
    color: inherit;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-turn {
    display: flex;
    flex-direction: column;
    gap: var(--hmc-chat-turn-gap, 10px);
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-bot-block {
    display: inline-flex;
    flex-flow: row nowrap;
    flex-shrink: 0;
    align-items: flex-start;
    align-self: flex-start;
    gap: var(--hmc-chat-row-gap, 10px);
    width: max-content;
    max-width: 88%;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-bot-bubbles {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--hmc-chat-message-gap, 6px);
    min-width: 0;
    flex: 1 1 auto;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-bot-message[hidden] {
    display: none !important;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-bot-message.is-revealed {
    animation: hmc-chat-message-reveal 180ms ease-out;
}
@keyframes hmc-chat-message-reveal {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-message-text {
    font-size: var(--hmc-step-description-size, 14px);
    line-height: 1.5;
    color: var(--hmc-step-description-color, inherit);
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-message-text.hmc-chat-step-title {
    font-size: var(--hmc-step-title-size, 16px);
    font-weight: 600;
    line-height: 1.35;
    color: var(--hmc-step-title-color, var(--hmc-chat-bot-text, inherit));
    margin: 0;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-options-row[hidden] {
    display: none !important;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-option-row--revealed {
    animation: hmc-chat-option-reveal 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: transform, opacity;
}
@keyframes hmc-chat-option-reveal {
    from {
        opacity: 0;
        transform: translate3d(24px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .hmc-form-container[data-chooser-type="chat"] .hmc-chat-option-row--revealed {
        animation: none;
        will-change: auto;
    }
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-row-bot {
    display: inline-flex;
    flex-flow: row nowrap;
    flex-shrink: 0;
    align-items: flex-start;
    align-self: flex-start;
    gap: var(--hmc-chat-row-gap, 10px);
    width: max-content;
    max-width: 88%;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-avatar {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: var(--hmc-chat-avatar-border-radius, 50%);
    border: var(--hmc-chat-avatar-border-width, 0) solid var(--hmc-chat-avatar-border-color, transparent);
    box-shadow: var(--hmc-chat-avatar-box-shadow, none);
    background: var(--hmc-chat-avatar-bg);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
    box-sizing: border-box;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-avatar--image {
    padding: 0;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-avatar--image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: var(--hmc-chat-avatar-border-radius, 50%);
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-bot-block > .hmc-chat-avatar {
    flex-shrink: 0;
    align-self: flex-start;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-bot-bubbles .hmc-chat-bot-message:not(.hmc-chat-bot-message--first):not(.hmc-chat-typing-inline) {
    border-radius: var(--hmc-border-radius, var(--hmc-chat-bot-border-radius, 16px));
}
.hmc-form-container[data-chooser-type="chat"].hmc-chat-bubble-style--speech-bubble .hmc-chat-bot-bubbles .hmc-chat-bot-message:not(.hmc-chat-bot-message--first):not(.hmc-chat-typing-inline) {
    border-top-left-radius: var(--hmc-border-radius, var(--hmc-chat-bot-border-radius, 16px)) !important;
    border-bottom-left-radius: min(6px, var(--hmc-border-radius, var(--hmc-chat-bot-border-radius, 16px)));
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-row-user {
    display: inline-flex;
    flex-flow: row nowrap;
    flex-shrink: 0;
    align-items: flex-end;
    justify-content: flex-end;
    gap: var(--hmc-chat-row-gap, 10px);
    align-self: flex-end;
    width: max-content;
    max-width: 92%;
    margin-left: auto;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-row-user .hmc-chat-bubble-user {
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: max-content;
    width: auto;
    max-width: 24rem;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-shell--no-bot-avatar .hmc-chat-options-row {
    padding-left: 0;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-bubble-user {
    align-self: flex-end;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-bubble {
    padding: var(--hmc-chat-bubble-padding, 14px 18px);
    line-height: 1.5;
    box-shadow: none;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-bubble-bot {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
    background: var(--hmc-chat-bot-bg);
    color: var(--hmc-chat-bot-text);
    border: var(--hmc-chat-bot-border-width, 0) solid var(--hmc-chat-bot-border-color, transparent);
    border-radius: var(--hmc-chat-bot-border-radius);
    box-shadow: var(--hmc-chat-bot-box-shadow, none);
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-row-user .hmc-chat-bubble-user,
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-scroll > .hmc-chat-bubble-user {
    background: var(--hmc-chat-user-bg);
    color: var(--hmc-chat-user-text);
    border: var(--hmc-chat-user-border-width, 0) solid var(--hmc-chat-user-border-color, transparent);
    border-radius: var(--hmc-chat-user-border-radius);
    padding: var(--hmc-chat-user-bubble-padding, var(--hmc-chat-bubble-padding, 10px 18px));
    font-size: var(--hmc-chat-user-text-size, 14px);
    box-shadow: var(--hmc-chat-user-box-shadow, none);
    font-weight: 400;
    line-height: 1.35;
    animation: hmc-chat-fade-in 110ms ease-out;
    overflow-wrap: normal;
    word-wrap: normal;
    word-break: normal;
    hyphens: manual;
}
.hmc-form-container[data-chooser-type="chat"].hmc-typography--theme .hmc-chat-step-title,
.hmc-form-container[data-chooser-type="chat"].hmc-typography--theme .hmc-chat-step-description {
    font-size: inherit;
    color: inherit;
    font-weight: inherit;
}

/* Plugin presets: consistent chat typography (not theme heading sizes) */
.hmc-form-container.hmc-typography--plugin {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.hmc-form-container[data-chooser-type="chat"].hmc-typography--plugin {
    font-size: var(--hmc-chat-bot-text-size, 14px);
    line-height: 1.35;
}
.hmc-form-container[data-chooser-type="chat"].hmc-typography--plugin .hmc-chat-step-title {
    font-size: var(--hmc-step-title-size, 16px);
    font-weight: 600;
    line-height: 1.35;
    color: var(--hmc-step-title-color, var(--hmc-chat-bot-text));
    margin: 0 0 2px;
}
.hmc-form-container[data-chooser-type="chat"].hmc-typography--plugin .hmc-chat-step-description {
    font-size: var(--hmc-step-description-size, 14px);
    font-weight: 400;
    line-height: 1.4;
    color: var(--hmc-step-description-color, var(--hmc-chat-bot-text));
    margin: 0;
}
.hmc-form-container[data-chooser-type="chat"].hmc-typography--plugin .hmc-chat-step-description :is(p, li, span, strong, b) {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}
.hmc-form-container[data-chooser-type="chat"].hmc-typography--plugin .hmc-chat-bubble-user {
    font-size: var(--hmc-chat-user-text-size, 14px);
    font-weight: 400;
}
.hmc-form-container[data-chooser-type="chat"].hmc-typography--plugin .hmc-chat-option {
    font-size: var(--hmc-option-label-size, 14px);
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
}
.hmc-form-container[data-chooser-type="chat"].hmc-typography--plugin .hmc-chat-option-label {
    font-size: inherit;
    font-weight: 500;
    line-height: inherit;
}
.hmc-form-container[data-chooser-type="chat"].hmc-typography--plugin .hmc-chat-option-description {
    font-size: 0.9em;
    font-weight: 400;
}

.hmc-form-container[data-chooser-type="chat"].hmc-typography--custom {
    font-size: var(--hmc-chat-bot-text-size, 14px);
}
.hmc-form-container[data-chooser-type="chat"].hmc-typography--custom .hmc-chat-bubble-user {
    font-size: var(--hmc-chat-user-text-size, 14px);
}
.hmc-form-container[data-chooser-type="chat"].hmc-typography--custom .hmc-chat-step-title {
    font-size: var(--hmc-step-title-size, 16px);
    font-weight: 700;
    color: var(--hmc-step-title-color, var(--hmc-chat-bot-text));
    margin-bottom: 0;
}
.hmc-form-container[data-chooser-type="chat"].hmc-typography--custom .hmc-chat-step-description {
    font-size: var(--hmc-step-description-size, 14px);
    font-weight: 400;
    color: var(--hmc-step-description-color, var(--hmc-chat-bot-text));
    margin-top: 4px;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-step-description p,
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-step-description strong,
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-step-description b {
    font-weight: 400;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-options-row {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--hmc-chat-options-gap, 8px);
    width: 100%;
    max-width: 100%;
    padding-left: var(--hmc-chat-options-indent, 46px);
    box-sizing: border-box;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-turn.is-answered .hmc-chat-options-row {
    display: none;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-option-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--hmc-chat-option-row-gap, 10px);
    width: 100%;
    max-width: 380px;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-option-row.hmc-chat-option-row--pending {
    display: none !important;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-option-row:not(.hmc-chat-option-row--has-thumb) {
    max-width: 280px;
}
/* Image + label: one composite option control (thumb inside the button). */
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-option-row--has-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: max-content;
    max-width: min(380px, 100%);
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-option-row--has-thumb .hmc-chat-option {
    display: inline-flex;
    align-items: center;
    gap: var(--hmc-chat-option-inner-gap, 12px);
    width: max-content;
    max-width: 100%;
    text-align: left;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-option-row--has-thumb .hmc-chat-option-thumb {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-option-row--has-thumb .hmc-chat-option-thumb img,
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-option-row--has-thumb .hmc-chat-option-thumb .hmc-attachment-image {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
    display: block;
    border-radius: 0 !important;
    pointer-events: none;
}
/* Chat padding presets (medium / large / mega override CSS variables). */
.hmc-form-container[data-chooser-type="chat"].hmc-chat-padding--medium .hmc-chat-option-row:not(.hmc-chat-option-row--has-thumb) .hmc-chat-option,
.hmc-form-container[data-chooser-type="chat"].hmc-chat-padding--medium .hmc-chat-bubble-bot,
.hmc-form-container[data-chooser-type="chat"].hmc-chat-padding--medium .hmc-chat-bubble-user {
    padding: 15px 20px !important;
}
.hmc-form-container[data-chooser-type="chat"].hmc-chat-padding--medium .hmc-chat-option-row--has-thumb .hmc-chat-option {
    padding: 15px 20px !important;
    gap: 20px;
}

.hmc-form-container[data-chooser-type="chat"].hmc-chat-padding--large .hmc-chat-option-row:not(.hmc-chat-option-row--has-thumb) .hmc-chat-option,
.hmc-form-container[data-chooser-type="chat"].hmc-chat-padding--large .hmc-chat-bubble-bot,
.hmc-form-container[data-chooser-type="chat"].hmc-chat-padding--large .hmc-chat-bubble-user {
    padding: 25px 30px !important;
}
.hmc-form-container[data-chooser-type="chat"].hmc-chat-padding--large .hmc-chat-option-row--has-thumb .hmc-chat-option {
    padding: 25px 30px !important;
    gap: 30px;
}

.hmc-form-container[data-chooser-type="chat"].hmc-chat-padding--mega .hmc-chat-option-row:not(.hmc-chat-option-row--has-thumb) .hmc-chat-option,
.hmc-form-container[data-chooser-type="chat"].hmc-chat-padding--mega .hmc-chat-bubble-bot,
.hmc-form-container[data-chooser-type="chat"].hmc-chat-padding--mega .hmc-chat-bubble-user {
    padding: 35px 40px !important;
}
.hmc-form-container[data-chooser-type="chat"].hmc-chat-padding--mega .hmc-chat-option-row--has-thumb .hmc-chat-option {
    padding: 35px 40px !important;
    gap: 40px;
}

.hmc-form-container[data-chooser-type="chat"] .hmc-chat-option {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    padding: var(--hmc-chat-option-padding, 6px 12px);
    background: var(--hmc-chat-option-bg);
    color: var(--hmc-chat-option-text);
    border: var(--hmc-chat-option-border-width, 0) solid var(--hmc-chat-option-border-color, transparent);
    border-radius: var(--hmc-chat-option-border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease, opacity 0.15s ease, filter 0.15s ease;
    text-align: left;
    box-shadow: var(--hmc-chat-option-box-shadow, none);
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-option-row:not(.hmc-chat-option-row--has-thumb) .hmc-chat-option {
    text-align: left;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-option:hover:not(:disabled) {
    background-color: var(--hmc-option-hover-bg, var(--hmc-chat-option-bg)) !important;
    filter: none;
    transform: translateY(-1px);
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-option:focus-visible {
    outline: 2px solid var(--hmc-chat-option-border-color);
    outline-offset: 2px;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-option:disabled,
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-option.is-locked {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-option.is-selected {
    opacity: 1;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-option-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    text-align: left;
}
.hmc-form-container[data-chooser-type="chat"].hmc-typography--custom .hmc-chat-option-label {
    font-size: var(--hmc-option-label-size, 14px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--hmc-option-label-color, var(--hmc-chat-option-text));
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-option-description {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.3;
    color: var(--hmc-chat-option-text);
}

/* Chat bubble layout presets — bot */
.hmc-form-container[data-chooser-type="chat"].hmc-chat-bubble-style--bubble .hmc-chat-bot-message--first.hmc-chat-bubble-bot {
    border-bottom-left-radius: 6px;
}

.hmc-form-container[data-chooser-type="chat"].hmc-chat-bubble-style--speech-bubble .hmc-chat-bot-message--first.hmc-chat-bubble-bot {
    --hmc-chat-tail-size: clamp(8px, calc(var(--hmc-border-radius, var(--hmc-chat-bot-border-radius, 16px)) * 0.55), 14px);
    position: relative;
    overflow: visible;
    border-radius: var(--hmc-border-radius, var(--hmc-chat-bot-border-radius, 16px));
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: min(6px, var(--hmc-border-radius, var(--hmc-chat-bot-border-radius, 16px)));
    margin-bottom: 2px;
    box-shadow: none;
    filter: var(--hmc-chat-bot-filter, none);
}

/* Bot tail: top-left corner notch pointing toward avatar (WhatsApp-style) */
.hmc-form-container[data-chooser-type="chat"].hmc-chat-bubble-style--speech-bubble .hmc-chat-bot-message--first.hmc-chat-bubble-bot::before,
.hmc-form-container[data-chooser-type="chat"].hmc-chat-bubble-style--speech-bubble .hmc-chat-bot-message--first.hmc-chat-bubble-bot::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: auto;
    left: calc(-1 * var(--hmc-chat-tail-size, 6px));
    width: var(--hmc-chat-tail-size, 12px);
    height: var(--hmc-chat-tail-size, 12px);
    border: none;
    pointer-events: none;
}

.hmc-form-container[data-chooser-type="chat"].hmc-chat-bubble-style--speech-bubble .hmc-chat-bot-message--first.hmc-chat-bubble-bot::before {
    display: none;
    z-index: 0;
    background: var(--hmc-chat-bot-border-color);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.hmc-form-container[data-chooser-type="chat"].hmc-chat-has-bot-border.hmc-chat-bubble-style--speech-bubble .hmc-chat-bot-message--first.hmc-chat-bubble-bot::before {
    display: block;
    left: calc(-1 * var(--hmc-chat-tail-size, 12px) - var(--hmc-chat-bot-border-width, 1px));
    top: calc(-1 * var(--hmc-chat-bot-border-width, 1px));
    width: var(--hmc-chat-tail-size, 12px);
    height: calc(var(--hmc-chat-tail-size, 12px) + var(--hmc-chat-bot-border-width, 1px));
}

.hmc-form-container[data-chooser-type="chat"].hmc-chat-bubble-style--speech-bubble .hmc-chat-bot-message--first.hmc-chat-bubble-bot::after {
    z-index: 1;
    background: var(--hmc-chat-bot-bg);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    left: calc(-1 * var(--hmc-chat-tail-size, 12px) + 1px);
    width: calc(var(--hmc-chat-tail-size, 12px) + 1px);
}

.hmc-form-container[data-chooser-type="chat"].hmc-chat-has-bot-border.hmc-chat-bubble-style--speech-bubble .hmc-chat-bot-message--first.hmc-chat-bubble-bot::after {
    left: calc(-1 * var(--hmc-chat-tail-size, 12px) + var(--hmc-chat-bot-border-width, 1px) - 1px);
    top: 0;
    width: calc(var(--hmc-chat-tail-size, 12px) - var(--hmc-chat-bot-border-width, 1px) + 1px);
    height: var(--hmc-chat-tail-size, 12px);
}

.hmc-form-container[data-chooser-type="chat"].hmc-chat-bubble-style--text-left .hmc-chat-bot-block,
.hmc-form-container[data-chooser-type="chat"].hmc-chat-bubble-style--text-left .hmc-chat-row-bot {
    max-width: 100%;
}

.hmc-form-container[data-chooser-type="chat"].hmc-chat-bubble-style--text-left .hmc-chat-bubble-bot {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: var(--hmc-chat-bubble-padding, 14px 18px);
    text-align: left;
}

/* User reply layout presets */
.hmc-form-container[data-chooser-type="chat"].hmc-chat-user-style--pill .hmc-chat-bubble-user {
    border-radius: var(--hmc-chat-user-border-radius, 999px);
}

.hmc-form-container[data-chooser-type="chat"].hmc-chat-user-style--bubble .hmc-chat-bubble-user {
    border-radius: var(--hmc-chat-user-border-radius, 16px);
    border-bottom-right-radius: 6px;
}

.hmc-form-container[data-chooser-type="chat"].hmc-chat-user-style--speech-bubble .hmc-chat-bubble-user {
    --hmc-chat-tail-size: clamp(8px, calc(var(--hmc-border-radius, var(--hmc-chat-user-border-radius, 16px)) * 0.55), 14px);
    position: relative;
    overflow: visible;
    border-radius: var(--hmc-border-radius, var(--hmc-chat-user-border-radius, 16px));
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: min(6px, var(--hmc-border-radius, var(--hmc-chat-user-border-radius, 16px)));
    margin-bottom: 2px;
    box-shadow: none;
    filter: var(--hmc-chat-user-filter, none);
}

/* User tail: top-right corner notch pointing outward (WhatsApp-style) */
.hmc-form-container[data-chooser-type="chat"].hmc-chat-user-style--speech-bubble .hmc-chat-bubble-user::before,
.hmc-form-container[data-chooser-type="chat"].hmc-chat-user-style--speech-bubble .hmc-chat-bubble-user::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: auto;
    right: calc(-1 * var(--hmc-chat-tail-size, 6px));
    left: auto;
    width: var(--hmc-chat-tail-size, 12px);
    height: var(--hmc-chat-tail-size, 12px);
    border: none;
    pointer-events: none;
}

.hmc-form-container[data-chooser-type="chat"].hmc-chat-user-style--speech-bubble .hmc-chat-bubble-user::before {
    display: none;
    z-index: 0;
    background: var(--hmc-chat-user-border-color);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.hmc-form-container[data-chooser-type="chat"].hmc-chat-has-user-border.hmc-chat-user-style--speech-bubble .hmc-chat-bubble-user::before {
    display: block;
    right: calc(-1 * var(--hmc-chat-tail-size, 12px) - var(--hmc-chat-user-border-width, 1px));
    top: calc(-1 * var(--hmc-chat-user-border-width, 1px));
    width: var(--hmc-chat-tail-size, 12px);
    height: calc(var(--hmc-chat-tail-size, 12px) + var(--hmc-chat-user-border-width, 1px));
}

.hmc-form-container[data-chooser-type="chat"].hmc-chat-user-style--speech-bubble .hmc-chat-bubble-user::after {
    z-index: 1;
    background: var(--hmc-chat-user-bg);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    right: calc(-1 * var(--hmc-chat-tail-size, 12px) + 1px);
    width: calc(var(--hmc-chat-tail-size, 12px) + 1px);
}

.hmc-form-container[data-chooser-type="chat"].hmc-chat-has-user-border.hmc-chat-user-style--speech-bubble .hmc-chat-bubble-user::after {
    right: calc(-1 * var(--hmc-chat-tail-size, 12px) + var(--hmc-chat-user-border-width, 1px) - 1px);
    top: 0;
    width: calc(var(--hmc-chat-tail-size, 12px) - var(--hmc-chat-user-border-width, 1px) + 1px);
    height: var(--hmc-chat-tail-size, 12px);
}

.hmc-form-container[data-chooser-type="chat"].hmc-chat-user-style--text-left .hmc-chat-bubble-user {
    background: transparent;
    border: none;
    border-radius: 0;
    color: var(--hmc-chat-user-text, inherit);
    padding: var(--hmc-chat-bubble-padding, 14px 18px);
    text-align: left;
    max-width: 100%;
}

.hmc-form-container[data-chooser-type="chat"].hmc-chat-user-style--speech-bubble .hmc-chat-row-user {
    align-items: flex-start;
}
.hmc-form-container[data-chooser-type="chat"].hmc-chat-user-style--speech-bubble .hmc-chat-row-user .hmc-chat-bubble-user {
    align-self: flex-start;
}
.hmc-form-container[data-chooser-type="chat"].hmc-chat-user-style--speech-bubble .hmc-chat-row-user .hmc-chat-avatar {
    align-self: flex-start;
    margin-top: 0;
}
.hmc-form-container[data-chooser-type="chat"].hmc-chat-user-style--text-left .hmc-chat-row-user {
    max-width: 100%;
}

.hmc-form-container[data-chooser-type="chat"] .hmc-chat-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 14px 16px;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-typing-inline {
    border-radius: var(--hmc-border-radius, var(--hmc-chat-bot-border-radius, 16px));
    margin-bottom: 0;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-typing span {
    width: 7px;
    height: 7px;
    background: #94a3b8;
    border-radius: 50%;
    animation: hmc-chat-typing-bounce 0.75s infinite ease-in-out both;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-typing span:nth-child(2) {
    animation-delay: 0.1s;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-typing span:nth-child(3) {
    animation-delay: 0.2s;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation-row {
    max-width: 92%;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation {
    max-width: none;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-rec-item + .hmc-chat-rec-item {
    margin-top: 16px;
    padding-top: 16px;
    border-top: none;
}
.hmc-form-container[data-chooser-type="chat"].hmc-typography--custom .hmc-chat-recommendation .hmc-recommendations-header {
    font-size: var(--hmc-recommendation-title-size, 20px);
    margin: 0 0 10px;
    color: var(--hmc-recommendation-title-color, #102449);
}
.hmc-form-container[data-chooser-type="chat"].hmc-typography--custom .hmc-chat-recommendation .hmc-rec-description {
    margin-bottom: 14px;
    color: var(--hmc-recommendation-description-color, #334155);
    font-size: var(--hmc-recommendation-description-size, 15px);
    line-height: 1.5;
}
.hmc-form-container[data-chooser-type="chat"].hmc-typography--custom .hmc-chat-rec-title,
.hmc-form-container[data-chooser-type="chat"].hmc-typography--custom .hmc-chat-recommendation .hmc-rec-title {
    font-size: var(--hmc-recommendation-title-size, 18px);
    margin: 0 0 8px;
    color: var(--hmc-recommendation-title-color, #102449);
}
/* Compact native contact form inside chat recommendation bubbles. */
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-recommendations-header {
    margin: 0 0 10px;
    font-size: var(--hmc-step-title-size, 16px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--hmc-step-title-color, var(--hmc-chat-bot-text, #000));
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-description {
    margin-bottom: 10px;
    font-size: var(--hmc-step-description-size, 14px);
    line-height: 1.4;
    color: var(--hmc-step-description-color, var(--hmc-chat-bot-text, #000));
    opacity: 0.85;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-native-form,
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-native-form--compact {
    max-width: 100%;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-native-contact-form {
    gap: 10px;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-native-form-fields {
    gap: 10px;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-native-field {
    gap: 4px;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-native-field-label {
    font-size: var(--hmc-native-label-font-size, 13px);
    font-weight: 600;
    line-height: 1.3;
    color: var(--hmc-native-label-color, var(--hmc-chat-bot-text, #000));
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-native-required {
    color: #c62828;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-native-field-input,
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-native-form input[type="text"],
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-native-form input[type="email"],
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-native-form input[type="tel"],
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-native-form textarea {
    padding: 8px 11px;
    font-size: 14px;
    line-height: 1.35;
    border: var(--hmc-native-input-border-width, 1px) solid var(--hmc-native-input-border-color, rgba(0, 0, 36, 0.14));
    border-radius: var(--hmc-native-input-border-radius, 8px);
    background: var(--hmc-native-input-bg, rgba(255, 255, 255, 0.94));
    color: var(--hmc-native-input-text, var(--hmc-chat-bot-text, #000));
    box-shadow: 0 1px 2px rgba(0, 0, 36, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation textarea.hmc-native-field-input,
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-native-form textarea {
    min-height: 72px;
    max-height: 120px;
    resize: vertical;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-native-field-input:focus,
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-native-form input:focus,
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-native-form textarea:focus {
    border-color: var(--hmc-native-input-border-color, rgba(0, 0, 36, 0.35));
    background: var(--hmc-native-input-bg, #fff);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 0 4px rgba(0, 0, 36, 0.12);
    outline: none;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-native-field--invalid .hmc-native-field-input {
    border-color: #c62828;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.12);
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-native-form-actions {
    margin-top: 2px;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-native-submit {
    min-height: 38px;
    padding: 8px 18px;
    font-size: var(--hmc-native-button-font-size, 14px);
    font-weight: 600;
    width: 100%;
    border: var(--hmc-native-button-border-width, 0) solid var(--hmc-native-button-border-color, transparent);
    border-radius: var(--hmc-native-button-radius, var(--hmc-chat-option-border-radius, 999px));
    background: var(--hmc-native-button-bg, var(--hmc-primary-button-bg, #000024));
    color: var(--hmc-native-button-text, var(--hmc-primary-button-text, #fff));
    box-shadow: 0 2px 4px rgba(0, 0, 36, 0.14);
}
.hmc-form-container[data-chooser-type="chat"]:not([data-hmc-native-button-hover-custom]) .hmc-chat-recommendation .hmc-native-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.05);
}
.hmc-form-container[data-chooser-type="chat"][data-hmc-native-button-hover-custom] .hmc-chat-recommendation .hmc-native-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    background: var(--hmc-native-button-hover-bg, var(--hmc-native-button-bg));
    filter: none;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-native-field-error {
    font-size: 12px;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-native-form-alert {
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.35;
    border-radius: max(6px, calc(var(--hmc-chat-bot-border-radius, 16px) * 0.5));
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-native-form-thankyou {
    padding: 12px 14px;
    border-radius: max(6px, calc(var(--hmc-chat-bot-border-radius, 16px) * 0.5));
    background: rgba(255, 255, 255, 0.55);
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-native-form-thankyou-message {
    font-size: 14px;
    line-height: 1.45;
    color: var(--hmc-chat-bot-text, #000);
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-text-content,
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-html-content {
    margin-top: 8px;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items {
    margin-top: 10px;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items--grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items--grid-3 .hmc-rec-content-loading {
    grid-column: 1 / -1;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation-row:has(.hmc-rec-content-items--grid-3) {
    max-width: 100%;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation-row:has(.hmc-rec-content-items--grid-3) .hmc-chat-row-bot {
    max-width: 100%;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation-row:has(.hmc-rec-content-items--grid-3) .hmc-chat-bubble-bot {
    width: 100%;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items--grid-3 .hmc-product-card,
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items--grid-3 .hmc-content-card {
    margin: 0;
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items--grid-3 .hmc-product-image-wrapper,
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items--grid-3 .hmc-card-thumbnail-wrapper {
    aspect-ratio: 4 / 3;
    min-height: 0;
    padding: 0;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items--grid-3 .hmc-product-thumbnail img,
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items--grid-3 .hmc-card-thumbnail {
    max-height: none;
    height: 100%;
    object-fit: cover;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items--grid-3 .hmc-product-content,
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items--grid-3 .hmc-card-content {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 6px;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items--grid-3 .hmc-card-title {
    line-height: 1.3;
    margin: 0;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items--grid-3 .hmc-card-excerpt {
    line-height: 1.4;
    -webkit-line-clamp: 3;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items--grid-3 .hmc-card-read-more {
    margin-top: auto;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items--grid-3 .hmc-product-title {
    line-height: 1.3;
    margin-bottom: 6px;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items--grid-3 .hmc-product-title a {
    color: #7c3aed;
    font-weight: 700;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-product-price {
    margin: 0 0 8px;
    line-height: 1.3;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-product-price .screen-reader-text {
    display: none !important;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-product-price del,
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-product-price .hmc-price-regular {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
    text-decoration: line-through;
    margin-bottom: 2px;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-product-price ins,
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-product-price .hmc-price-current,
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-product-price .price .amount {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-product-price--on-sale .hmc-price-current {
    color: #0f172a;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-product-buy-btn {
    width: auto !important;
    max-width: 100%;
    align-self: flex-start;
    padding: 5px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    border-radius: 4px !important;
    border-width: 1px !important;
    min-height: 0;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items--grid-3 .hmc-product-buy-btn {
    margin-top: auto;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items:not(.hmc-rec-content-items--grid-3) .hmc-product-card {
    margin-top: 8px;
    max-width: 100%;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items:not(.hmc-rec-content-items--grid-3) .hmc-content-card {
    margin-top: 8px;
    max-width: 100%;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-rec-content-item img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-footer {
    border-top: 1px solid #e0e3eb;
    background: #fff;
    padding: 8px 14px;
    text-align: right;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-restart {
    background: transparent;
    border: 0;
    color: #1d4ed8;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 8px;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-restart:hover {
    text-decoration: underline;
}
.hmc-form-container[data-chooser-type="chat"] .hmc-chat-step-template {
    display: none;
}
@keyframes hmc-chat-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes hmc-chat-typing-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40%           { transform: scale(1);   opacity: 1; }
}
@media (max-width: 900px) {
    .hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items--grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .hmc-form-container[data-chooser-type="chat"] .hmc-chat-row-bot {
        max-width: 95%;
    }
    .hmc-form-container[data-chooser-type="chat"] .hmc-chat-options-row {
        padding-left: 0;
    }
    .hmc-form-container[data-chooser-type="chat"] .hmc-chat-option-row {
        max-width: 100%;
    }
    .hmc-form-container[data-chooser-type="chat"] .hmc-chat-option-row--has-thumb {
        max-width: 100%;
    }
    .hmc-form-container[data-chooser-type="chat"] .hmc-chat-option-row--has-thumb .hmc-chat-option-thumb {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
    }
    .hmc-form-container[data-chooser-type="chat"] .hmc-chat-scroll {
        padding: var(--hmc-chat-scroll-padding, 16px 14px);
    }
    .hmc-form-container[data-chooser-type="chat"] .hmc-chat-recommendation .hmc-rec-content-items--grid-3 {
        grid-template-columns: 1fr;
    }
}


