/**
 * Presentation Adapter Stylesheet for Stoke Tyre Centre
 * Provides clean, branded styles for the tyre search card and tyre specification badges
 * in ready-made themes (Blocksy, Astra).
 */

/* Container */
.ndt-tyre-search-container {
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 20px auto;
    font-family: inherit;
    box-sizing: border-box;
}

/* Tabs */
.ndt-search-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #1e293b;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.ndt-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ndt-tab-btn:hover {
    color: #ffffff;
    border-color: #64748b;
    background: rgba(255, 255, 255, 0.05);
}

.ndt-tab-btn.active {
    color: #ffffff;
    background: #0b3b82;
    border-color: #1d4ed8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* UK VRM Plate Box */
.ndt-vrm-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 480px) {
    .ndt-vrm-form {
        flex-direction: row;
    }
}

.ndt-vrm-box {
    display: flex;
    align-items: center;
    background: #facc15;
    border: 3px solid #000000;
    border-radius: 8px;
    padding: 4px;
    flex: 1;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.ndt-vrm-badge {
    background: #003399;
    color: #ffffff;
    padding: 8px 10px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-right: 8px;
}

.ndt-vrm-flag {
    font-size: 14px;
}

.ndt-vrm-gb {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.ndt-vrm-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    font-family: monospace, monospace !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #000000 !important;
    padding: 6px !important;
    width: 100%;
}

.ndt-vrm-input::placeholder {
    color: #4b5563;
    opacity: 0.7;
}

/* Submit Buttons */
.ndt-search-submit-btn {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    white-space: nowrap !important;
}

.ndt-search-submit-btn:hover {
    background: #b91c1c !important;
}

/* Disconnected VRM Feedback */
.ndt-vrm-feedback {
    margin-top: 16px;
    padding: 14px 16px;
    background: #1e293b;
    border-left: 4px solid #facc15;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #e2e8f0;
}

.ndt-vrm-feedback strong {
    color: #facc15;
}

/* Size Search Form */
.ndt-size-fields-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

@media (min-width: 480px) {
    .ndt-size-fields-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ndt-select-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ndt-select-group label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ndt-select {
    width: 100%;
    padding: 10px 12px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.ndt-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.ndt-size-helper-text {
    margin-top: 12px;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
}

/* Loop Specifications Pills */
.ndt-loop-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.ndt-spec-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.ndt-spec-size {
    background: #0b3b82;
    color: #ffffff;
}

.ndt-spec-season {
    background: #e2e8f0;
    color: #1e293b;
}

.ndt-spec-condition-new {
    background: #dcfce7;
    color: #166534;
}

.ndt-spec-condition-used {
    background: #fef3c7;
    color: #92400e;
}

/* Single Product Callouts */
.ndt-used-tyre-callout {
    background: #fffbeb;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 18px;
    margin: 20px 0;
    color: #78350f;
}

.ndt-used-callout-header {
    font-size: 16px;
    margin-bottom: 8px;
}

.ndt-used-tyre-callout p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.ndt-call-btn {
    display: inline-block !important;
    background: #dc2626 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
}

.ndt-call-btn:hover {
    background: #b91c1c !important;
}

.ndt-single-specs-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.ndt-single-specs-summary h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
    color: #0f172a;
}

.ndt-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ndt-specs-list li {
    font-size: 14px;
    color: #334155;
}
