/* =====================================================
   Mek7 YMM Search – Frontend CSS v2
   Eng abgestimmt auf Astra Pro Theme
   Nutzt Astra CSS-Variablen konsequent
   ===================================================== */

:root {
    --ymm-primary:       var(--ast-global-color-0, #0170B9);
    --ymm-primary-dark:  var(--ast-global-color-1, #014f87);
    --ymm-text:          var(--ast-global-color-3, #4B4F58);
    --ymm-text-light:    #888;
    --ymm-bg:            var(--ast-global-color-5, #fff);
    --ymm-bg-subtle:     var(--ast-global-color-4, #F5F5F5);
    --ymm-border:        var(--ast-border-color, #E5E5E5);
    --ymm-radius-sm:     4px;
    --ymm-radius-pill:   30px;   /* Astra Buttons nutzen 30px */
    --ymm-shadow:        0 1px 4px rgba(0,0,0,.07);
    --ymm-shadow-hover:  0 4px 16px rgba(0,0,0,.12);
    --ymm-transition:    .18s ease;
}

/* ══════════════════════════════════════════════════
   SUCHFORMULAR
══════════════════════════════════════════════════ */
.ymm-search-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Volle Breite erzwingen – auch in Elementor/Page-Containern */
.ymm-search-wrap,
.ymm-search-wrap * {
    box-sizing: border-box;
}

.elementor-widget-ymm-search .ymm-search-wrap,
.wp-block-ymm-search .ymm-search-wrap {
    width: 100% !important;
    max-width: 100% !important;
}

.ymm-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.ymm-field {
    flex: 1 1 180px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.ymm-field label {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ymm-text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ymm-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ymm-primary);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    flex-shrink: 0;
    line-height: 1;
}

/* Inaktiver Schritt: Step-Nummer grau */
.ymm-field--make .ymm-select:disabled ~ *,
.ymm-field--model .ymm-select:disabled ~ * {
    opacity: .5;
}

.ymm-field--submit {
    flex: 0 0 auto;
}

.ymm-select {
    width: 100%;
    height: 44px;
    padding: 0 36px 0 14px;
    border: 1px solid var(--ymm-border);
    border-radius: var(--ymm-radius-sm);
    background-color: var(--ymm-bg);
    color: var(--ymm-text);
    font-size: .95rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    transition: border-color var(--ymm-transition), box-shadow var(--ymm-transition);
    outline: none;
}

.ymm-select:focus {
    border-color: var(--ymm-primary);
    box-shadow: 0 0 0 3px rgba(1,112,185,.13);
}

.ymm-select:disabled {
    opacity: .45;
    cursor: not-allowed;
    background-color: var(--ymm-bg-subtle);
}

.ymm-select.ymm-loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23ddd' stroke-width='2.5' fill='none'/%3E%3Cpath d='M12 3a9 9 0 0 1 9 9' stroke='%230170B9' stroke-width='2.5' fill='none' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='.65s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
}

.ymm-select.ymm-error {
    border-color: #d63638;
    animation: ymm-shake .3s ease;
}

@keyframes ymm-shake {
    0%,100% { transform: translateX(0); }
    30%      { transform: translateX(-5px); }
    70%      { transform: translateX(5px); }
}

/* ── Buttons (Astra-Stil: pill) ── */
.ymm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 44px;
    padding: 0 22px;
    border: none;
    border-radius: var(--ymm-radius-pill);
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--ymm-transition), transform var(--ymm-transition), box-shadow var(--ymm-transition);
    outline: none;
    line-height: 1;
}

.ymm-btn--search,
.ymm-btn--primary {
    background: var(--ymm-primary);
    color: #fff;
}

.ymm-btn--search:hover,
.ymm-btn--primary:hover {
    background: var(--ymm-primary-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1,112,185,.3);
}

.ymm-btn--secondary,
.ymm-btn--change {
    background: transparent;
    color: var(--ymm-primary);
    border: 1px solid var(--ymm-primary);
    height: 36px;
    padding: 0 16px;
    font-size: .84rem;
}

.ymm-btn--secondary:hover,
.ymm-btn--change:hover {
    background: var(--ymm-primary);
    color: #fff;
    text-decoration: none;
}

.ymm-btn--details {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--ymm-border);
    border-radius: var(--ymm-radius-pill);
    font-size: .82rem;
    color: var(--ymm-text);
    text-decoration: none;
    background: var(--ymm-bg);
    transition: border-color var(--ymm-transition), color var(--ymm-transition);
}

.ymm-btn--details:hover {
    border-color: var(--ymm-primary);
    color: var(--ymm-primary);
    text-decoration: none;
}

/* ══════════════════════════════════════════════════
   ERGEBNIS-HEADER (Fahrzeug-Info + Breadcrumb)
══════════════════════════════════════════════════ */
.ymm-results-wrap {
    width: 100%;
}

.ymm-vehicle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ymm-border);
}

.ymm-vehicle-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.ymm-vehicle-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ymm-text);
    line-height: 1.2;
}

.ymm-vehicle-count {
    font-size: .8rem;
    color: var(--ymm-text-light);
    background: var(--ymm-bg-subtle);
    padding: 3px 10px;
    border-radius: var(--ymm-radius-pill);
    border: 1px solid var(--ymm-border);
    white-space: nowrap;
}

.ymm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .88rem;
    color: var(--ymm-text-light);
    flex-wrap: wrap;
}

.ymm-breadcrumb a {
    color: var(--ymm-primary);
    text-decoration: none;
    font-weight: 500;
}

.ymm-breadcrumb a:hover {
    text-decoration: underline;
}

.ymm-breadcrumb__sep {
    opacity: .4;
    font-size: .8rem;
}

.ymm-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ══════════════════════════════════════════════════
   VIEW TOGGLE (Grid / List)
══════════════════════════════════════════════════ */
.ymm-view-toggle {
    display: flex;
    border: 1px solid var(--ymm-border);
    border-radius: var(--ymm-radius-sm);
    overflow: hidden;
    background: var(--ymm-bg);
}

.ymm-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    color: var(--ymm-text-light);
    cursor: pointer;
    transition: background var(--ymm-transition), color var(--ymm-transition);
    padding: 0;
}

.ymm-view-btn + .ymm-view-btn {
    border-left: 1px solid var(--ymm-border);
}

.ymm-view-btn:hover {
    background: var(--ymm-bg-subtle);
    color: var(--ymm-text);
}

.ymm-view-btn--active,
.ymm-view-btn[aria-pressed="true"] {
    background: var(--ymm-primary);
    color: #fff;
}

/* ══════════════════════════════════════════════════
   KATEGORIEN-GRID
══════════════════════════════════════════════════ */
.ymm-cat-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
    /* Spalten kommen aus dynamischem CSS */
}

/* Kategoriekacheln – exakt wie WooCommerce .product-category */
.ymm-cat-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ymm-text);
    margin: 0 0 0;
    position: relative;
    transition: opacity var(--ymm-transition);
}

.ymm-cat-card:hover {
    text-decoration: none;
    color: var(--ymm-text);
    opacity: .85;
}

.ymm-cat-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--ymm-bg-subtle);
    margin-bottom: 0;
}

.ymm-cat-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ymm-cat-card__body {
    padding: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ymm-cat-card__name {
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.3;
    color: var(--ymm-text);
    text-transform: uppercase;
    letter-spacing: .02em;
}

.ymm-cat-card__count {
    font-size: .82rem;
    color: var(--ymm-text-light);
    font-weight: 400;
}

/* ══════════════════════════════════════════════════
   PRODUKTGITTER (WooCommerce Loop Override)
══════════════════════════════════════════════════ */
.ymm-product-grid .products {
    display: grid !important;
    float: none !important;
    gap: 20px;
    /* Spalten aus dynamischem CSS */
}

.ymm-product-grid .products li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* ══════════════════════════════════════════════════
   LISTENANSICHT
══════════════════════════════════════════════════ */
.ymm-list-table {
    width: 100%;
    border-collapse: collapse;
}

.ymm-list-table thead th {
    padding: 9px 14px;
    text-align: left;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ymm-text-light);
    background: var(--ymm-bg-subtle);
    border-bottom: 1px solid var(--ymm-border);
    white-space: nowrap;
}

.ymm-list-table thead th:last-child { text-align: right; }
.ymm-list-table thead th.ymm-list-col--stock { text-align: center; }
.ymm-list-table thead th.ymm-list-col--price { text-align: right; }

.ymm-list-row {
    border-bottom: 1px solid var(--ymm-border);
    transition: background var(--ymm-transition);
}

.ymm-list-row:last-child { border-bottom: none; }

.ymm-list-row:hover {
    background: var(--ymm-bg-subtle);
}

.ymm-list-row td {
    padding: 10px 14px;
    vertical-align: middle;
}

.ymm-list-col--img {
    width: 64px;
    padding-right: 0;
}

.ymm-list-img {
    width: 56px !important;
    height: 56px !important;
    object-fit: contain !important;
    display: block !important;
    border: 1px solid var(--ymm-border);
    border-radius: var(--ymm-radius-sm);
    background: var(--ymm-bg);
}

.ymm-list-col--name {
    min-width: 200px;
}

.ymm-list-title {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    color: var(--ymm-text);
    text-decoration: none;
    line-height: 1.35;
    margin-bottom: 2px;
}

.ymm-list-title:hover {
    color: var(--ymm-primary);
}

.ymm-list-artnr {
    font-size: .77rem;
    color: var(--ymm-text-light);
    font-family: ui-monospace, monospace;
}

.ymm-list-col--sku {
    width: 110px;
}

.ymm-list-sku-badge {
    font-family: ui-monospace, monospace;
    font-size: .78rem;
    background: var(--ymm-bg-subtle);
    border: 1px solid var(--ymm-border);
    padding: 2px 7px;
    border-radius: 3px;
    color: var(--ymm-text-light);
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ymm-list-col--stock {
    width: 70px;
    text-align: center;
}

.ymm-stock {
    display: inline-block;
    min-width: 30px;
    padding: 2px 8px;
    border-radius: var(--ymm-radius-pill);
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
}

.ymm-stock--in  { background: #e7f5eb; color: #1e6e31; }
.ymm-stock--out { background: #fce8e8; color: #b32424; }

.ymm-list-col--price {
    width: 120px;
    text-align: right;
    white-space: nowrap;
}

.ymm-list-col--price .price {
    font-weight: 700;
    font-size: .92rem;
    color: var(--ymm-text);
}

.ymm-list-col--price ins {
    text-decoration: none;
    color: var(--ymm-primary);
}

.ymm-list-col--price del {
    font-size: .78rem;
    opacity: .55;
}

.ymm-list-col--action {
    width: 120px;
    text-align: right;
}

/* WC Add-to-Cart Button in Listensicht an Astra anpassen */
.ymm-list-col--action .button,
.ymm-list-col--action .add_to_cart_button {
    height: 34px !important;
    padding: 0 14px !important;
    font-size: .82rem !important;
    border-radius: var(--ymm-radius-pill) !important;
    white-space: nowrap;
    line-height: 34px !important;
    display: inline-block !important;
}

/* ══════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════ */
.ymm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--ymm-border);
}

.ymm-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 38px;
    padding: 0 18px;
    border: 1px solid var(--ymm-border);
    border-radius: var(--ymm-radius-pill);
    background: var(--ymm-bg);
    color: var(--ymm-text);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--ymm-transition), border-color var(--ymm-transition), color var(--ymm-transition);
}

.ymm-page-btn:hover {
    background: var(--ymm-primary);
    border-color: var(--ymm-primary);
    color: #fff;
    text-decoration: none;
}

.ymm-page-info {
    font-size: .84rem;
    color: var(--ymm-text-light);
    padding: 0 4px;
}

/* ══════════════════════════════════════════════════
   NOTICES & KEINE ERGEBNISSE
══════════════════════════════════════════════════ */
.ymm-notice {
    padding: 12px 16px;
    background: var(--ymm-bg-subtle);
    border-left: 3px solid var(--ymm-primary);
    border-radius: 0 var(--ymm-radius-sm) var(--ymm-radius-sm) 0;
    color: var(--ymm-text);
    font-size: .9rem;
    margin: 16px 0;
}

.ymm-no-results {
    text-align: center;
    padding: 56px 24px;
    color: var(--ymm-text-light);
}

.ymm-no-results__icon {
    margin-bottom: 16px;
    opacity: .3;
}

.ymm-no-results h3 {
    margin: 0 0 8px;
    color: var(--ymm-text);
    font-size: 1.15rem;
}

.ymm-no-results p { margin: 0 0 20px; }

/* ══════════════════════════════════════════════════
   GLOBALE FAHRZEUG-BAR
══════════════════════════════════════════════════ */
.ymm-global-bar {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 18px;
    background: var(--ymm-primary);
    color: #fff;
    border-radius: var(--ymm-radius-sm);
    margin-bottom: 20px;
    font-size: .88rem;
}

.ymm-global-bar--active { display: flex; }

.ymm-global-bar__icon { font-size: 1rem; flex-shrink: 0; }

.ymm-global-bar__label {
    font-weight: 700;
    flex: 1 1 auto;
}

.ymm-global-bar__link {
    color: #fff;
    background: rgba(255,255,255,.18);
    border-radius: var(--ymm-radius-pill);
    padding: 4px 14px;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--ymm-transition);
}

.ymm-global-bar__link:hover {
    background: rgba(255,255,255,.32);
    color: #fff;
    text-decoration: none;
}

.ymm-global-bar__clear {
    background: none;
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    border-radius: var(--ymm-radius-pill);
    padding: 4px 12px;
    font-size: .78rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--ymm-transition);
}

.ymm-global-bar__clear:hover {
    background: rgba(255,255,255,.18);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* ── Suchformular Mobile – volle Breite ── */
    .ymm-search-wrap {
        padding: 0;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .ymm-search-form {
        flex-direction: column;
        gap: 10px;
    }

    .ymm-field {
        flex: 1 1 100%;
        gap: 4px;
    }

    /* Labels kompakter */
    .ymm-field label {
        font-size: .72rem;
        letter-spacing: .08em;
    }

    /* Dropdowns kompakter auf Mobile */
    .ymm-select {
        height: 48px;
        font-size: 1rem;
        padding: 0 40px 0 14px;
        border-radius: 10px;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Felder volle Breite */
    .ymm-field {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 100% !important;
    }

    /* Submit Button volle Breite, größer */
    .ymm-field--submit {
        margin-top: 4px;
    }

    .ymm-field--submit .ymm-btn {
        width: 100%;
        height: 52px;
        font-size: 1rem;
        border-radius: 26px;
        justify-content: center;
    }

    /* Step-Indicator: aktiver Schritt hervorheben */
    .ymm-select:not(:disabled) {
        border-color: var(--ymm-primary);
        border-width: 2px;
    }

    .ymm-select:disabled {
        opacity: .35;
        border-width: 1px;
    }

    /* Vehicle header + actions */
    .ymm-vehicle-header  { flex-direction: column; align-items: flex-start; }
    .ymm-header-actions  { width: 100%; justify-content: space-between; }

    .ymm-list-col--sku,
    .ymm-list-col--stock { display: none; }
}

@media (max-width: 480px) {
    .ymm-list-table thead { display: none; }

    .ymm-list-row {
        display: grid;
        grid-template-columns: 56px 1fr;
        grid-template-rows: auto auto;
        grid-template-areas: "img name" "img action";
        gap: 6px 10px;
        padding: 10px 0;
    }

    .ymm-list-row td { padding: 0; border: none; }
    .ymm-list-col--img    { grid-area: img; padding-left: 14px; }
    .ymm-list-col--name   { grid-area: name; padding-right: 14px; }
    .ymm-list-col--action { grid-area: action; padding: 0 14px 0 0; text-align: left; }
    .ymm-list-col--sku,
    .ymm-list-col--stock,
    .ymm-list-col--price  { display: none; }
}

/* ── Kategoriekarte mit Unterkategorien ── */
.ymm-cat-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.ymm-cat-card__subs-badge {
    font-size: .72rem;
    color: var(--ymm-primary);
    background: rgba(1,112,185,.08);
    padding: 2px 7px;
    border-radius: 10px;
    border: 1px solid rgba(1,112,185,.2);
    white-space: nowrap;
}

.ymm-cat-card--has-subs .ymm-cat-card__body {
    border-top-color: var(--ymm-primary);
}

.ymm-cat-card--has-subs::after {
    content: '›';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ymm-primary);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity var(--ymm-transition), right var(--ymm-transition);
}

.ymm-cat-card {
    position: relative; /* für ::after */
}

.ymm-cat-card--has-subs:hover::after {
    opacity: 1;
    right: 10px;
}

/* ── Kategorie mit Kindern: kleiner Pfeil ── */
.ymm-cat-card--has-children .ymm-cat-card__name::after {
    content: ' ›';
    color: var(--ymm-primary);
    font-weight: 400;
}

/* ══════════════════════════════════════════════════
   PRODUKT-BADGE (Einzelprodukt-Seite)
══════════════════════════════════════════════════ */
.ymm-product-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: var(--ymm-radius-pill);
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.2;
}

.ymm-product-badge--fit {
    background: #e7f5eb;
    color: #1a6e2e;
    border: 1px solid #b8dfc0;
}

.ymm-product-badge--nofit {
    background: #fce8e8;
    color: #b32424;
    border: 1px solid #f0b8b8;
}

.ymm-product-badge--unknown {
    background: var(--ymm-bg-subtle);
    color: var(--ymm-text-light);
    border: 1px solid var(--ymm-border);
}

.ymm-product-badge__icon { font-size: 1rem; }

/* ══════════════════════════════════════════════════
   FIBOSEARCH TOGGLE
══════════════════════════════════════════════════ */
.ymm-fibo-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--ymm-bg-subtle);
    border: 1px solid var(--ymm-border);
    border-radius: var(--ymm-radius-pill);
    font-size: .85rem;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.ymm-fibo-toggle--on {
    background: #e7f5eb;
    border-color: #1a6e2e;
    color: #1a6e2e;
}

/* Toggle Slider */
.ymm-fibo-toggle__label {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
    flex-shrink: 0;
}
.ymm-fibo-toggle__label input { opacity: 0; width: 0; height: 0; }
.ymm-fibo-toggle__slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 18px;
    transition: .2s;
    cursor: pointer;
}
.ymm-fibo-toggle__slider:before {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    left: 3px; top: 3px;
    background: white;
    border-radius: 50%;
    transition: .2s;
}
input:checked + .ymm-fibo-toggle__slider { background: #1a6e2e; }
input:checked + .ymm-fibo-toggle__slider:before { transform: translateX(16px); }

.ymm-fibo-toggle__text { line-height: 1.3; }
.ymm-fibo-toggle__text strong { font-weight: 700; }

/* ── YMM Editor Link (Frontend) ── */
.ymm-editor-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f0f0;
    border: 1px solid #ccc;
    color: #555;
    text-decoration: none;
    font-size: .85rem;
    transition: background .15s, border-color .15s, transform .15s;
    flex-shrink: 0;
}

.ymm-editor-link:hover {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    transform: rotate(30deg);
    text-decoration: none;
}

/* ── HSN/TSN Widget ── */
.ymm-hsn-toggle-wrap a {
    opacity: .7;
    transition: opacity .2s;
}
.ymm-hsn-toggle-wrap a:hover { opacity: 1; }

.ymm-hsn-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ymm-hsn-result-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 14px;
    font-size: .88rem;
}

.ymm-hsn-result-item:hover { border-color: #2271b1; }

.ymm-hsn-result-item select {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: .85rem;
}

.ymm-hsn-result-item .button {
    padding: 4px 12px;
    font-size: .85rem;
    cursor: pointer;
}
