/* Marine24 Parts Search – front-end styles */
.m24ps-wrapper {
    max-width: 820px;
    margin: 0 auto 2.5rem;
    font-family: inherit;
    color: #1a1a1a;
    line-height: 1.5;
}

.m24ps-title {
    font-size: 1.75rem;
    margin: 0 0 0.75rem;
    color: #0a3d62;
}

.m24ps-intro p {
    margin: 0 0 1.5rem;
    color: #444;
}

.m24ps-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
    align-items: center;
}

.m24ps-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 0.4rem 0.9rem;
    background: #fff;
    border: 1.5px solid #0a3d62;
    border-radius: 4px;
    color: #0a3d62;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
    user-select: none;
}

@media (max-width: 480px) {
    .m24ps-brand {
        min-width: 72px;
        padding: 0.35rem 0.7rem;
        font-size: 0.78rem;
    }
}

.m24ps-search-box {
    background: #f5f8fb;
    border: 1px solid #d0dce8;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.m24ps-input-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.m24ps-input-group input[type="text"] {
    flex: 1 1 220px;
    min-width: 180px;
    padding: 0.7rem 1rem;
    font-size: 1.05rem;
    border: 1px solid #b0c4d8;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

.m24ps-input-group input[type="text"]:focus {
    border-color: #0a3d62;
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.15);
}

.m24ps-btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.m24ps-btn-primary {
    background: #0a3d62;
    color: #fff;
}

.m24ps-btn-primary:hover {
    background: #08304d;
}

.m24ps-btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.m24ps-hint {
    margin: 0.6rem 0 0;
    font-size: 0.875rem;
    color: #666;
}

/* Loading */
.m24ps-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: #eef5fb;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    color: #0a3d62;
}

.m24ps-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #c5d8ea;
    border-top-color: #0a3d62;
    border-radius: 50%;
    animation: m24ps-spin 0.7s linear infinite;
}

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

/* Results card */
.m24ps-result-card {
    background: #fff;
    border: 1px solid #d0dce8;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.m24ps-result-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #eef2f6;
}

.m24ps-result-row:last-of-type {
    border-bottom: none;
}

.m24ps-label {
    flex: 0 0 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #667788;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.m24ps-value {
    flex: 1 1 180px;
    font-size: 1.05rem;
    color: #1a1a1a;
}

.m24ps-partcode {
    font-weight: 700;
    font-size: 1.2rem;
    color: #0a3d62;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.m24ps-price-row {
    margin-top: 0.35rem;
    padding-top: 0.65rem;
}

.m24ps-price {
    font-size: 1.55rem;
    font-weight: 700;
    color: #0a7a3e;
}

.m24ps-price small {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.m24ps-note {
    margin: 0.85rem 0 0;
    font-size: 0.875rem;
    color: #666;
}

.m24ps-no-result {
    padding: 1.25rem;
    background: #fff8e6;
    border: 1px solid #f0d78c;
    border-radius: 8px;
    color: #6b5300;
}

/* Inquiry form */
.m24ps-inquiry {
    background: #f8fafc;
    border: 1px solid #d0dce8;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.m24ps-inquiry h3 {
    margin: 0 0 0.5rem;
    color: #0a3d62;
}

.m24ps-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.m24ps-field {
    flex: 1 1 200px;
    margin-bottom: 0.85rem;
}

.m24ps-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #333;
}

.m24ps-field input,
.m24ps-field textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #b0c4d8;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.m24ps-field input:focus,
.m24ps-field textarea:focus {
    border-color: #0a3d62;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.12);
}

.m24ps-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
}

.m24ps-status.success {
    background: #e6f7ed;
    color: #0a5c2e;
    border: 1px solid #a3d9b5;
}

.m24ps-status.error {
    background: #fdecea;
    color: #8b1a1a;
    border: 1px solid #f5c2c0;
}

/* Catalogues */
.m24ps-catalogs {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e0e6ed;
}

.m24ps-catalogs h3 {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
    color: #0a3d62;
}

.m24ps-catalogs ul {
    margin: 0;
    padding-left: 1.25rem;
}

.m24ps-catalogs a {
    color: #0a3d62;
    text-decoration: underline;
}

.m24ps-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #777;
}

/* Responsive */
@media (max-width: 540px) {
    .m24ps-input-group {
        flex-direction: column;
    }
    .m24ps-btn {
        width: 100%;
    }
}
