
/* ===================================================== */
/* SOURCE: intent-discovery.css */
/* ===================================================== */


/* ===================================================== */
/* SOURCE: intent-discovery.row.css */
/* ===================================================== */

intentdiscovery-widget  .event-row {
    display: flex;
    flex-direction: column;
    gap: 12px;

    padding: 16px;
    margin-bottom: 16px;

    background: #faf8f3;
    border: 1px solid #e6e6e6;

    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    border-radius: 8px;

    box-sizing: border-box;
}

/* Subtle elevation without shadow dependency */
intentdiscovery-widget  .event-row:hover {
    border-color: #d0d0d0;
}

/* Mobile first */
@media (max-width: 480px) {
    intentdiscovery-widget  .event-row {
        padding: 12px;
        margin-bottom: 12px;
    }
}


/* ===================================================== */
/* SOURCE: intent-discovery.choice.css */
/* ===================================================== */

intentdiscovery-widget  .step-finder {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Desktop */
@media (min-width: 600px) {
    intentdiscovery-widget  .step-finder {
        grid-template-columns: repeat(3, 1fr);
    }
}

intentdiscovery-widget  .choice-tile {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 4px 10px 10px;

    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #ffffff;

    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
    position: relative;
}

intentdiscovery-widget  .choice-tile[data-intent-active='true'] {
    border-color: #c7d2fe;
    background: #f5f7ff;
    color: #1d4ed8;
    font-weight: 500;
}

intentdiscovery-widget  .choice-tile[data-intent-activated='true'] {
    border-color: #cfcfcf;
    background: #fafafa;
    color: #1f2937;              /* neutral but clear */
}

intentdiscovery-widget  .choice-tile .intent-icon {
    top: unset;
}

intentdiscovery-widget  .intent-icon {
    stroke-width:1.8;
    fill:none;
    margin-right: 6px;
    margin-left:10px;
    opacity: 0.75;
    position: absolute;
    right: 10px;
    z-index: 10;
}

intentdiscovery-widget  .choice-tile__label {
    margin-right: 10px;
}

intentdiscovery-widget  .choice-tile__label--active {
    font-weight: 600;
}

intentdiscovery-widget  .choice-tile:hover {
    border-color: #cfcfcf;
    background: #fafafa;
}

intentdiscovery-widget  .choice-tile .badge {
    padding: 4px 10px;
    border-radius: 12px;
    background: #eef2ff;
    font-size: 12px;
}

/* Hide radio visually but keep accessibility */
intentdiscovery-widget  .choice-tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Selected state */
intentdiscovery-widget  .choice-tile input:checked+.choice-tile__label {
    font-weight: 600;
}

intentdiscovery-widget  .choice-tile input:checked {
    /* parent highlight */
}

intentdiscovery-widget  .swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #ccc;
    box-sizing: border-box;
    flex-shrink: 0;
}

intentdiscovery-widget  .swatch--color {
    /* backgroundColor injected inline */
}

intentdiscovery-widget  .choice-tile:has(input:checked) {
    border-color: #2a7fff;
    background: #f5f9ff;
}

intentdiscovery-widget  .choice-tile__label {
    font-size: 0.95rem;
    line-height: 1.4;
}


/* ===================================================== */
/* SOURCE: intent-discovery.layer.css */
/* ===================================================== */

intentdiscovery-widget  .choice-tile__label--selected {
    font-weight: bold;
}

intentdiscovery-widget  .selected-preferences {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f5f5f5;
}

intentdiscovery-widget  .selected-preferences__title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

intentdiscovery-widget  .selected-preferences__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

intentdiscovery-widget  .selected-preferences__entry {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 8px;
}

intentdiscovery-widget  .selected-preferences__item {
    padding: 6px 12px;
    background-color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: default;
}

intentdiscovery-widget  .selected-preferences__value {
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}



/* ===================================================== */
/* SOURCE: intent-discovery.message.css */
/* ===================================================== */

intentdiscovery-widget  .intent-input-wrapper {
    width: 100%;
    margin: 16px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

intentdiscovery-widget  .intent-quick-apply {
    padding: 0 10px;
    height: 100%;
    border: none;
    background: #eef2ff;
    color: #2c4a9a;
    font-size: 12px;
    cursor: pointer;
}

intentdiscovery-widget  .intent-input {
    flex: 1;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;

    border: 1px solid #d1d5db;
    border-radius: 10px;

    background: #fafafa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);

    transition: all 0.15s ease;
    box-sizing: border-box;
}

intentdiscovery-widget  .intent-input:focus {
    outline: none;
    border-color: #2f6fed;
    box-shadow: 0 0 0 2px rgba(47,111,237,0.15);
}

intentdiscovery-widget  .intent-input-wrapper {
    width: 100%;
    margin: 16px 0 20px;
}

intentdiscovery-widget  .intent-input::placeholder {
    color: #9ca3af;
}

intentdiscovery-widget  .intent-subtitle {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-top: 0.2rem;
    margin-bottom: 0.6rem;
    color:#666;
}

intentdiscovery-widget  .intent-explanations {
    position: relative;
    display: flex;
    align-items: center; /* anchors baseline at bottom */
    justify-content: space-between;
    gap: 12px;
}

intentdiscovery-widget  .intent-input-button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    background: #4a78ff;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

intentdiscovery-widget  .intent-input-button:hover {
    background: #3b63d6;
}

intentdiscovery-widget  .intent-input-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

intentdiscovery-widget  .intent-feedback {
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 12px;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

intentdiscovery-widget  .filter-apply-button {
    position: absolute;
    right: 6px;
    top: -12px;
    transform: translateY(-50%);
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    background: #4a78ff;
    color: white;
    font-size: 14px;
    cursor: pointer;
    z-index:1;
}

intentdiscovery-widget  .filter-apply-button:hover {
    background: #3b63d6;
}

intentdiscovery-widget  .filter-apply-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    intentdiscovery-widget  .intent-explanations {
        flex-direction: column;
        gap:0;
    }

    intentdiscovery-widget  .intent-ai-threshold {
        order: 1;
    }

    intentdiscovery-widget  .intent-subtitle {
        order: 2;
    }

    intentdiscovery-widget  .filter-apply-button {
        position: relative;
        width: 100%;
        right: 0;
        top: 0;
        z-index: unset;
    }
}


/* ===================================================== */
/* SOURCE: intent-discovery.suggestions.css */
/* ===================================================== */

intentdiscovery-widget  .re-intent-body {
    color: #374151;
    font-size: 14px;
}

intentdiscovery-widget  .re-intent-layout {
    display: block; /* default single column */
}

intentdiscovery-widget  .re-intent-layout--two {
    display: grid;
    grid-template-columns: 1fr 360px; /* left grows, right fixed-ish */
    gap: 16px;
    align-items: start;
}

/* make right column sticky if you want it to stay visible */
intentdiscovery-widget  .re-intent-col--right {
    position: relative;
}

/* responsive: collapse back to 1 column on smaller screens */
@media (max-width: 980px) {
    intentdiscovery-widget  .re-intent-layout--two {
        grid-template-columns: 1fr;
    }
}

intentdiscovery-widget  .re-intent-card[aria-busy="true"] .re-intent-body {
    opacity: 0.85;
}

intentdiscovery-widget  .re-intent-card-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
}

intentdiscovery-widget  .re-intent-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    margin-top: 16px;
}

intentdiscovery-widget  .re-intent-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

intentdiscovery-widget  .re-intent-header-left {
    min-width: 0;
}

intentdiscovery-widget  .re-intent-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

intentdiscovery-widget  .re-intent-subtitle {
    margin-top: 6px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.35;
}

intentdiscovery-widget  .re-intent-close-btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    line-height: 28px;
}

intentdiscovery-widget  .re-intent-body {
    color: #374151;
    font-size: 14px;
}

intentdiscovery-widget  .re-intent-message {
    font-weight: 600;
    margin-bottom: 6px;
}

intentdiscovery-widget  .re-intent-subtle {
    color: #6b7280;
    font-size: 13px;
}

intentdiscovery-widget  .re-intent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

intentdiscovery-widget  .re-intent-card-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
}

intentdiscovery-widget  .re-intent-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #f3f4f6;
}

intentdiscovery-widget  .re-intent-card-body {
    padding: 12px;
}

intentdiscovery-widget  .re-intent-product-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

intentdiscovery-widget  .re-intent-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

intentdiscovery-widget  .re-intent-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

intentdiscovery-widget  .re-intent-price {
    font-size: 13px;
    font-weight: 700;
}

intentdiscovery-widget  .re-intent-reason {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.35;
}

intentdiscovery-widget  .intent-evaluation-container {
    position: relative;
}

intentdiscovery-widget  .step-finder--disabled {
    opacity: 0.5;
    pointer-events: none;
}

intentdiscovery-widget  .rec-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 10px;
}

intentdiscovery-widget  .rec-attributes span {
    font-size: 12px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 12px;

    background: #f3f4f6;      /* soft grey */
    color: #374151;           /* readable but not dominant */

    border: 1px solid #e5e7eb;
}


/* ===================================================== */
/* SOURCE: intent-discovery.overlay.css */
/* ===================================================== */

intentdiscovery-widget  .intent-search-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    min-height: 180px;
    color: #1f2937;
    margin-bottom: 1rem;
}

intentdiscovery-widget  .standard-widget-loader-wrapper {
    display: flex;
    min-height: 180px;
    position: absolute;
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
    align-items: center;
    justify-content: center;
    /* inherit background instead of forcing white/transparent */
    background: inherit;
    z-index: 10; /* ensure it's above content */
}

intentdiscovery-widget  .widget-loader-wrapper {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

intentdiscovery-widget  .search-overlay-text {
    opacity: 0.9;
    color: #888888;
}

intentdiscovery-widget  .sparkles {
    position: absolute;
    pointer-events: none;
}

intentdiscovery-widget  .sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg,#6366f1,#ec4899);
    border-radius: 50%;
    animation: sparkle 2s infinite ease-in-out;
}

@keyframes sparkle {
    0% { transform: scale(0) translateY(0); opacity:0 }
    50% { transform: scale(1) translateY(-20px); opacity:1 }
    100% { transform: scale(0) translateY(-40px); opacity:0 }
}


/* ===================================================== */
/* SOURCE: intent-discovery.readiness.css */
/* ===================================================== */

intentdiscovery-widget  .intent-ai-threshold {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 14px;
    margin-bottom: 10px;

    border-radius: 8px;
    border: 1px solid #e5e7eb;

    background: #f9fafb;
    color: #6b7280;

    font-size: 13px;
    line-height: 1.4;

    transition: all 0.2s ease;
}

intentdiscovery-widget .intent-ai-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

intentdiscovery-widget  .intent-ai-threshold.ready {
    background: #fef3c7; /* soft amber */
    border-color: #fcd34d;
    color: #92400e;
}


intentdiscovery-widget  .intent-ai-threshold .confidence {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

intentdiscovery-widget  .intent-ai-threshold .help {
    font-size: 12px;
    opacity: 0.8;
}

intentdiscovery-widget  .intent-ai-threshold:not(.ready) {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #6b7280;
}

intentdiscovery-widget  .intent-ai-threshold:not(.ready) .confidence::before {
    content: "\26A0 ";
    font-size: 14px;
}

intentdiscovery-widget  .intent-banner {
    margin-bottom: 1rem;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

intentdiscovery-widget  .intent-banner.success {
    background-color: #edf7ed;
    border: 1px solid #b7e1c1;
    color: #1e7d32;
}

intentdiscovery-widget  .intent-banner.success::before {
    ccontent: "\2714";
    font-size: 14px;
}

intentdiscovery-widget  .intent-banner.empty {
    background-color: #fff4e5;
    border: 1px solid #ffd59e;
    color: #8a5a00;
}

intentdiscovery-widget  .intent-banner.empty::before {
    content: "\26A0 ";
}

intentdiscovery-widget .intent-reset {
    margin-left: 12px;
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    opacity: 0.8;
    cursor: pointer;
    padding: 0;
}

intentdiscovery-widget .intent-reset:hover {
    opacity: 1;
    text-decoration: underline;
}


/* ===================================================== */
/* SOURCE: intent-discovery.style.css */
/* ===================================================== */

intentdiscovery-widget  .intent-widget-container {
    position: relative;
    min-height: 180px;
    background: white;
}

intentdiscovery-widget  .intent-widget {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    padding: 0 16px 16px;
    margin: 0 auto;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid transparent;
    background:
            linear-gradient(white, white) padding-box,
            linear-gradient(135deg, #f7e6a6, #caa64b, #f7e6a6) border-box;
}

intentdiscovery-widget  .finder {
    margin: 0 auto;
    position: relative;
}

intentdiscovery-widget  .finder .intent-icon {
    top: -15px;
}

intentdiscovery-widget  .finder__title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    padding-bottom: 10px;
    border-bottom: 1px solid #e6c86a;
}

intentdiscovery-widget  .finder__label {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #333;
}

/* Decision row */
intentdiscovery-widget  .event-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

intentdiscovery-widget  .widget-loader-wrapper {
    position: relative;
    min-height: 220px;
}

intentdiscovery-widget  .widget-loader-wrapper svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Mobile spacing */
@media (max-width: 480px) {
    intentdiscovery-widget  .finder {
        padding: 12px;
    }

    intentdiscovery-widget  .finder__title {
        font-size: 1.1rem;
    }

    intentdiscovery-widget  .event-row {
        padding: 12px;
    }
}


/* ===================================================== */
/* SOURCE: intent-discovery.previousintent.css */
/* ===================================================== */

intentdiscovery-widget  .intent-apply-left {
    height: 100%;
    border: none;
    cursor: pointer;
    padding: 11px 10px 11px;
    border-radius: 10px;
    background: #4a78ff;
    color: white;
    font-size: 10px;
}

intentdiscovery-widget  .intent-quick-apply {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
}

intentdiscovery-widget  .intent-quick-apply--visible {
    transform: translateX(0);
}

intentdiscovery-widget  .intent-drawer {
    position: relative;
    z-index: 10;
    max-height: 0;
    opacity: 0;
    border-radius: 6px;
    transform: translateX(-100%);
    transition:
            max-height 0.3s ease,
            opacity 0.2s ease,
            transform 0.2s ease;
}

intentdiscovery-widget  .intent-drawer.open {
    max-height: 120px; /* adjust based on content */
    opacity: 1;
    transform: translateX(0);
    margin-bottom: 8px;
}

intentdiscovery-widget  .intent-resume {
    position: absolute;
    margin-top: 43px;
    padding: 12px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    z-index: 10;
    border-radius: 8px;
}

intentdiscovery-widget  .intent-resume--visible {
    transform: translateX(0);
}

intentdiscovery-widget  .intent-resume__title {
    margin-bottom: 8px;
    font-size: 12px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

intentdiscovery-widget  .intent-resume__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

intentdiscovery-widget  .intent-resume__chip {
    background: #e6eefc;
    color: #2c4a9a;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

intentdiscovery-widget  .intent-resume__action {
    padding: 6px 12px;
    cursor: pointer;
}

intentdiscovery-widget  .intent-resume__button {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #2c4a9a;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

intentdiscovery-widget  .intent-resume__button:hover {
    background: #dbe4ff;
    border-color: #a5b4fc;
}

intentdiscovery-widget  .intent-resume__button:active {
    background: #c7d2fe;
}

intentdiscovery-widget  .intent-resume__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

