/* ============================================================
   CROMMELINS — Download Operating Manual Page
   ============================================================ */

.crom-om-wrapper {
    padding: 0 0 60px;
}

/* ── Hero ── */
.crom-om-hero {
    background: linear-gradient(135deg, #3c3c3b 0%, #212121 100%);
    padding: 50px 0 40px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.crom-om-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f7a400' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.crom-om-hero-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.crom-om-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
    font-family: montserratregular, open-sans, sans-serif;
}

.crom-om-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.crom-om-breadcrumb a:hover { color: #f7a400; }

.crom-om-breadcrumb span { color: rgba(255,255,255,0.4); }

.crom-om-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.15;
    font-family: montserratbold, open-sans, sans-serif;
}

.crom-om-hero-title em {
    font-style: normal;
    color: #f7a400;
}

.crom-om-hero-desc {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    font-family: montserratregular, open-sans, sans-serif;
}

/* ── Card ── */
.crom-om-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.10);
    max-width: 680px;
    margin: 0 auto;
    padding: 44px 48px;
    border: 1px solid #f0f0f0;
}

@media (max-width: 767px) {
    .crom-om-card { padding: 28px 20px; }
    .crom-om-hero-title { font-size: 26px; }
}

.crom-om-card-header {
    text-align: center;
    margin-bottom: 34px;
}

.crom-om-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f7a400, #e09200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 16px rgba(247,164,0,0.3);
}

.crom-om-card-icon svg { fill: #fff; }

.crom-om-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #212121;
    margin: 0 0 8px;
    font-family: montserratbold, open-sans, sans-serif;
}

.crom-om-card-subtitle {
    font-size: 14px;
    color: #777;
    margin: 0;
    font-family: montserratregular, open-sans, sans-serif;
    line-height: 1.6;
}

/* ── Form ── */
.crom-om-field { margin-bottom: 24px; }

.crom-om-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    margin-bottom: 8px;
    font-family: montserratbold, open-sans, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.crom-om-input-wrap { position: relative; }

.crom-om-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    fill: #aaa;
    pointer-events: none;
    transition: fill 0.2s;
}

.crom-om-input-wrap:focus-within .crom-om-input-icon { fill: #f7a400; }

#crom-om-search {
    width: 100%;
    height: 52px;
    padding: 0 44px 0 44px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    font-family: montserratregular, open-sans, sans-serif;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    box-sizing: border-box;
}

#crom-om-search:focus {
    border-color: #f7a400;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(247,164,0,0.12);
}

#crom-om-search::placeholder { color: #bbb; }

/* spinner right side */
.crom-om-spinner-wrap {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.crom-om-spinner-wrap.is-loading { display: block; }

.crom-om-ring {
    width: 20px; height: 20px;
    border: 2px solid #eee;
    border-top-color: #f7a400;
    border-radius: 50%;
    animation: crom-om-spin 0.7s linear infinite;
    display: block;
}

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

/* ── Autocomplete dropdown ── */
.ui-autocomplete {
    list-style: none !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    z-index: 99999 !important;
    font-family: montserratregular, open-sans, sans-serif !important;
}

.ui-autocomplete .ui-menu-item { padding: 0 !important; border: none !important; }

.ui-autocomplete .ui-menu-item-wrapper {
    display: block;
    padding: 10px 16px !important;
    font-size: 14px !important;
    color: #333 !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.ui-autocomplete .ui-menu-item-wrapper:hover,
.ui-autocomplete .ui-state-focus,
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
    background: #fff8ec !important;
    color: #212121 !important;
    outline: none !important;
}

/* Custom rich autocomplete item */
.crom-om-suggest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.crom-om-suggest-text {
    flex: 1;
    min-width: 0;
}

.crom-om-suggest-title {
    font-weight: 600;
    color: #222;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crom-om-suggest-sku {
    font-size: 12px;
    color: #777;
    font-weight: 500;
    margin-left: 6px;
    display: inline-block;
    background: #f0f0f0;
    padding: 1px 7px;
    border-radius: 4px;
}

.crom-om-suggest-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crom-om-badge-has-pdf {
    background: #e6f9ed;
    color: #1e7e34;
    border: 1px solid #c3e6cb;
}

.crom-om-badge-no-pdf {
    background: #fdf2f2;
    color: #b02a37;
    border: 1px solid #f8d7da;
}

/* ── Result panel ── */
.crom-om-results-container {
    display: none;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}

.crom-om-results-container.is-visible {
    display: flex;
}

.crom-om-result {
    display: none;
    background: linear-gradient(135deg, #fff8ec, #fffef8);
    border: 2px solid #f7a400;
    border-radius: 10px;
    padding: 18px 22px;
    animation: crom-om-fadein 0.3s ease;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.crom-om-result.is-visible { display: flex; }

@keyframes crom-om-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.crom-om-result-info { flex: 1; min-width: 0; }

.crom-om-result-label {
    font-size: 11px;
    font-weight: 700;
    color: #f7a400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 4px;
    display: block;
    font-family: montserratbold, open-sans, sans-serif;
}

.crom-om-result-name {
    font-size: 15px;
    color: #212121;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    display: block;
    font-family: montserratbold, open-sans, sans-serif;
}

.crom-om-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    background: #f7a400;
    color: #fff !important;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    font-family: montserratbold, open-sans, sans-serif;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(247,164,0,0.35);
}

.crom-om-dl-btn:hover {
    background: #e09200;
    transform: translateY(-1px);
    color: #fff !important;
}

.crom-om-dl-btn svg { fill: #fff; }

/* ── No manual notice ── */
.crom-om-no-manual {
    display: none;
    margin-top: 22px;
    background: #fff5f5;
    border: 2px solid #ffcccc;
    border-radius: 10px;
    padding: 16px 20px;
    color: #c0392b;
    font-size: 14px;
    font-family: montserratregular, open-sans, sans-serif;
    animation: crom-om-fadein 0.3s ease;
    align-items: center;
    gap: 12px;
}

.crom-om-no-manual.is-visible { display: flex; }
.crom-om-no-manual svg { fill: #c0392b; flex-shrink: 0; }

/* ── No products found notice ── */
.crom-om-not-found {
    display: none;
    margin-top: 22px;
    background: #fbfbfb;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 16px 20px;
    color: #666;
    font-size: 14px;
    font-family: montserratregular, open-sans, sans-serif;
    animation: crom-om-fadein 0.3s ease;
    align-items: center;
    gap: 12px;
}

.crom-om-not-found.is-visible { display: flex; }
.crom-om-not-found svg { fill: #999; flex-shrink: 0; }

/* ── Tip ── */
.crom-om-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 30px;
    padding: 14px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 13px;
    color: #888;
    font-family: montserratregular, open-sans, sans-serif;
    line-height: 1.6;
}

.crom-om-tip svg { fill: #aaa; flex-shrink: 0; margin-top: 1px; }

.crom-om-divider { border: none; border-top: 1px solid #efefef; margin: 28px 0; }
