.pedaldb-lookup {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 70vw;
    max-width: 1700px;
    box-sizing: border-box;
    font-family: inherit;
}

@media (max-width: 1100px) {
    .pedaldb-lookup {
        width: 92vw;
    }
}

.pedaldb-search-row {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 860px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.pedaldb-search-label {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    flex-shrink: 0;
}

.pedaldb-search-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.pedaldb-search-input {
    width: 100%;
    padding: 16px 44px 16px 20px;
    font-size: 18px;
    line-height: 1.4;
    border: 1px solid #e2e2e2;
    border-radius: 999px;
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pedaldb-search-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 6px 20px rgba(34, 113, 177, 0.18), 0 0 0 3px rgba(34, 113, 177, 0.15);
}

@media (max-width: 600px) {
    .pedaldb-search-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .pedaldb-search-label {
        text-align: center;
    }
}

.pedaldb-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: #888;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.pedaldb-search-clear:hover {
    background: #f0f0f0;
    color: #333;
}

.pedaldb-results-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    max-height: 360px;
    overflow-y: auto;
    z-index: 100;
}

.pedaldb-results-dropdown li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.1s;
}

.pedaldb-results-dropdown li:hover,
.pedaldb-results-dropdown li.is-active {
    background: #f5f7fa;
}

.pedaldb-results-dropdown li.is-empty {
    cursor: default;
    color: #888;
    font-style: italic;
}

.pedaldb-results-dropdown li.is-empty:hover {
    background: transparent;
}

.pedaldb-request-cta {
    border-top: 1px solid #eee;
    margin-top: 4px;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    color: #2271b1;
    font-weight: 500;
}

.pedaldb-request-cta-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2271b1;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.pedaldb-request-cta-text {
    flex: 1;
}

.pedaldb-request-status {
    padding: 14px 16px !important;
    color: #444;
    cursor: default !important;
    font-style: italic;
    text-align: center;
}

.pedaldb-request-status.is-success {
    color: #2a7a3a;
    font-weight: 500;
    font-style: normal;
}

.pedaldb-request-status.is-error {
    color: #b32d2e;
    font-weight: 500;
    font-style: normal;
}

.pedaldb-result-photo,
.pedaldb-result-photo-placeholder {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    background: #f0f0f0;
    flex-shrink: 0;
}

.pedaldb-result-text {
    line-height: 1.3;
}

.pedaldb-result-brand {
    font-size: 13px;
    color: #666;
}

.pedaldb-result-title {
    font-weight: 600;
    color: #222;
}

.pedaldb-result-alt {
    font-size: 12px;
    font-style: italic;
    color: #888;
    margin-top: 1px;
}

/* Detail panel */
.pedaldb-detail {
    margin-top: 28px;
}

.pedaldb-detail-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.pedaldb-detail-header-text {
    flex: 1;
    min-width: 0;
}

.pedaldb-header-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    width: 200px;
    border-left: 1px solid #eee;
    padding-left: 16px;
}

.pedaldb-header-actions .pedaldb-action-btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.2;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
}

.pedaldb-detail-header img {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    background: #f0f0f0;
    flex-shrink: 0;
}

.pedaldb-detail-header-text h3 {
    margin: 0 0 4px;
    font-size: 22px;
}

.pedaldb-detail-meta {
    color: #666;
    font-size: 14px;
}

/* Cards grid */
.pedaldb-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.pedaldb-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.pedaldb-card h4 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2271b1;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #2271b1;
}

.pedaldb-card-notes,
.pedaldb-card-revisions {
    margin-bottom: 16px;
}

.pedaldb-card-revisions .pedaldb-revisions-list {
    display: flex;
    flex-direction: column;
}

.pedaldb-revision-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pedaldb-revision-item:first-child {
    padding-top: 0;
}

.pedaldb-revision-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pedaldb-revision-version {
    display: inline-block;
    font-weight: 700;
    color: #fff;
    background: #2271b1;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.pedaldb-revision-notes {
    color: #333;
    line-height: 1.5;
}

.pedaldb-revision-notes p {
    margin: 0 0 6px;
}

.pedaldb-revision-notes p:last-child {
    margin-bottom: 0;
}

.pedaldb-spec-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    font-size: 14px;
}

.pedaldb-spec-list li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pedaldb-spec-list li:last-child {
    border-bottom: 0;
}

.pedaldb-spec-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.pedaldb-spec-value {
    color: #222;
    font-weight: 500;
    word-break: break-word;
}

.pedaldb-public-notes {
    line-height: 1.55;
    color: #333;
}

.pedaldb-public-notes p {
    margin: 0 0 10px;
}

.pedaldb-public-notes p:last-child {
    margin-bottom: 0;
}

.pedaldb-public-notes ul,
.pedaldb-public-notes ol {
    margin: 0 0 10px 20px;
    padding: 0;
}

.pedaldb-public-notes li {
    margin-bottom: 4px;
}

.pedaldb-public-notes a {
    color: #2271b1;
    text-decoration: underline;
}

.pedaldb-public-notes blockquote {
    margin: 8px 0 10px;
    padding: 6px 12px;
    border-left: 3px solid #d0d0d0;
    color: #555;
    font-style: italic;
}

.pedaldb-public-notes h1,
.pedaldb-public-notes h2,
.pedaldb-public-notes h3,
.pedaldb-public-notes h4 {
    margin: 10px 0 6px;
    line-height: 1.3;
}

/* Products list inside cards */
.pedaldb-products-heading {
    margin: 12px 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.pedaldb-products-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pedaldb-product-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fafafa;
}

.pedaldb-product-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: #222;
    transition: background 0.1s;
}

.pedaldb-product-link:hover {
    background: #f0f3f7;
}

.pedaldb-product-link img,
.pedaldb-product-photo-placeholder {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
    background: #e8e8e8;
    flex-shrink: 0;
}

.pedaldb-product-name-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pedaldb-product-name {
    font-weight: 600;
    font-size: 14px;
    word-break: break-word;
}

.pedaldb-product-description {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    line-height: 1.35;
    word-break: break-word;
}

.pedaldb-product-arrow {
    color: #888;
    font-size: 16px;
    flex-shrink: 0;
}

.pedaldb-accessories-label {
    margin: 4px 12px 4px 56px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
}

.pedaldb-accessories {
    list-style: none;
    margin: 0;
    padding: 0 12px 10px 56px;
    font-size: 13px;
}

.pedaldb-accessory-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px;
    margin-bottom: 3px;
    text-decoration: none;
    color: #444;
    border-radius: 4px;
    transition: background 0.1s;
}

.pedaldb-accessory-link:hover {
    background: #eef2f7;
}

.pedaldb-accessory-link img,
.pedaldb-accessory-photo-placeholder {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    background: #e8e8e8;
    flex-shrink: 0;
}

.pedaldb-accessory-name {
    word-break: break-word;
    font-weight: 500;
}

.pedaldb-accessory-link .pedaldb-product-description {
    font-size: 11px;
    color: #777;
}

/* Correction container (sits below the action bar) */
.pedaldb-correction-container {
    max-width: 700px;
    margin: 14px auto 0;
}

.pedaldb-correction-form {
    padding: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: left;
}

.pedaldb-correction-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}

.pedaldb-correction-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
}

.pedaldb-correction-textarea:focus,
.pedaldb-correction-email:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

.pedaldb-correction-email-label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
}

.pedaldb-correction-email {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.pedaldb-correction-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.pedaldb-correction-submit {
    background: #2271b1;
    color: #fff;
    border: 0;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.pedaldb-correction-submit:hover {
    background: #135e96;
}

.pedaldb-correction-submit:disabled {
    opacity: 0.6;
    cursor: default;
}

.pedaldb-correction-cancel {
    background: transparent;
    color: #555;
    border: 1px solid #d0d0d0;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.pedaldb-correction-cancel:hover {
    background: #f0f0f0;
}

.pedaldb-correction-status {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 14px;
    background: #f6f7f7;
    color: #444;
}

.pedaldb-correction-status.is-success {
    background: #edf7ed;
    color: #2a7a3a;
    font-weight: 500;
}

.pedaldb-correction-status.is-error {
    background: #fbeaea;
    color: #b32d2e;
    font-weight: 500;
}

/* Actions */
.pedaldb-actions {
    margin-top: 18px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pedaldb-extra-actions {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pedaldb-action-btn {
    padding: 10px 22px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    border: 1px solid transparent;
    font-family: inherit;
    line-height: 1.2;
}

.pedaldb-start-over {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.pedaldb-start-over:hover {
    background: #135e96;
    border-color: #135e96;
}

.pedaldb-action-correction,
.pedaldb-action-share {
    background: #fff;
    color: #2271b1;
    border-color: #2271b1;
}

.pedaldb-action-correction:hover,
.pedaldb-action-share:hover {
    background: #eef4fa;
}

.pedaldb-action-correction.is-active {
    background: #2271b1;
    color: #fff;
}

.pedaldb-action-share.is-copied {
    background: #2a7a3a;
    border-color: #2a7a3a;
    color: #fff;
}

.pedaldb-action-share.is-error {
    background: #fbeaea;
    border-color: #b32d2e;
    color: #b32d2e;
}

.pedaldb-action-edit {
    background: #fff;
    color: #6b3fa0;
    border-color: #6b3fa0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pedaldb-action-edit:hover {
    background: #6b3fa0;
    color: #fff;
}

.pedaldb-action-edit:focus {
    outline: 2px solid #6b3fa0;
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .pedaldb-cards-grid {
        grid-template-columns: 1fr;
    }
    .pedaldb-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .pedaldb-header-actions {
        width: 100%;
        border-left: 0;
        border-top: 1px solid #eee;
        padding-left: 0;
        padding-top: 12px;
    }
    .pedaldb-accessories,
    .pedaldb-accessories-label {
        padding-left: 12px;
        margin-left: 0;
    }
}

.pedaldb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 24, 32, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
    animation: pedaldb-fade-in 120ms ease-out;
}

@keyframes pedaldb-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pedaldb-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 440px;
    width: 100%;
    padding: 28px 28px 24px;
    position: relative;
    animation: pedaldb-pop-in 160ms ease-out;
}

@keyframes pedaldb-pop-in {
    from { transform: translateY(8px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.pedaldb-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: 0;
    font-size: 26px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
}

.pedaldb-modal-close:hover {
    color: #222;
}

.pedaldb-modal-title {
    margin: 0 0 8px;
    font-size: 18px;
    color: #222;
}

.pedaldb-modal-sub {
    margin: 0 0 16px;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.pedaldb-modal-email {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.pedaldb-modal-email:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.pedaldb-modal-status {
    min-height: 18px;
    font-size: 13px;
    margin-bottom: 12px;
    color: #555;
}

.pedaldb-modal-status.is-error {
    color: #b32d2e;
}

.pedaldb-modal-status.is-success {
    color: #2e7d32;
}

.pedaldb-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pedaldb-modal-submit {
    width: 100%;
    background: #2271b1;
    border: 1px solid #2271b1;
    color: #fff;
    font-weight: 600;
    padding: 12px 16px;
}

.pedaldb-modal-submit:hover:not(:disabled) {
    background: #135e96;
    border-color: #135e96;
}

.pedaldb-modal-skip {
    align-self: center;
    background: transparent;
    border: 0;
    color: #8a8a8a;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 8px;
}

.pedaldb-modal-skip:hover:not(:disabled) {
    color: #444;
}

.pedaldb-modal-submit:disabled,
.pedaldb-modal-skip:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
