/**
 * PawKitty Reviews — Review Page Styles
 *
 * Styles for the [pk_review_page] shortcode.
 * Modal styles come from pk-reviews.css.
 */

:root {
    --pkrp-trust-green: #3A6F5B;
    --pkrp-muted: #9a9490;
    --pkrp-max-width: 600px;
}

/* ── Container ── */

.pkrp-wrap {
    max-width: var(--pkrp-max-width);
    margin: 0 auto;
    padding: 40px 16px 60px;
    font-family: 'Inter', 'Inter Fallback', 'Inter Fallback Android', Helvetica, Arial, sans-serif;
    color: var(--pkr-charcoal, #1F1F1F);
    -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */

.pkrp-title {
    font-family: 'Fraunces', 'Fraunces Fallback', 'Fraunces Fallback Android', Helvetica, Arial, sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--pkr-charcoal, #1F1F1F);
    margin: 0 0 8px;
    text-align: center;
    line-height: 1.2;
}

.pkrp-subtitle {
    font-size: 15px;
    color: var(--pkrp-muted);
    text-align: center;
    margin: 0 0 32px;
    line-height: 1.5;
}

/* ── Product Cards ── */

.pkrp-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pkrp-product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--pkr-border, #EDE9E4);
    border-radius: 8px;
    padding: 16px;
    transition: box-shadow 0.15s ease;
}

.pkrp-product-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Image */
.pkrp-product-card__image {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.pkrp-product-card__image img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.pkrp-product-card__placeholder {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Info */
.pkrp-product-card__info {
    flex: 1;
    min-width: 0;
}

.pkrp-product-card__name {
    font-family: 'Inter', 'Inter Fallback', 'Inter Fallback Android', Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--pkr-charcoal, #1F1F1F);
    line-height: 1.3;
}

.pkrp-product-card__name a {
    color: inherit;
    text-decoration: none;
}

.pkrp-product-card__name a:hover {
    color: var(--pkr-sapphire, #2A5298);
}

.pkrp-product-card__variation {
    font-size: 13px;
    color: var(--pkrp-muted);
    margin: 0;
    line-height: 1.4;
}

/* Action */
.pkrp-product-card__action {
    flex-shrink: 0;
}

.pkrp-product-card__unavailable {
    font-size: 13px;
    color: var(--pkrp-muted);
    font-style: italic;
}

/* ── Submitted Badge ── */

.pkrp-product-card__submitted-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pkrp-trust-green);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.pkrp-product-card__submitted-badge svg {
    flex-shrink: 0;
}

/* ── Buttons ── */

.pkrp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Inter', 'Inter Fallback', 'Inter Fallback Android', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.pkrp-btn--primary {
    background: var(--pkr-sapphire, #2A5298);
    color: #fff;
}

.pkrp-btn--primary:hover {
    background: #1F3A6E;
}

.pkrp-btn--outline {
    background: transparent;
    color: var(--pkr-sapphire, #2A5298);
    border: 1.5px solid rgba(42, 82, 152, 0.4);
}

.pkrp-btn--outline:hover {
    border-color: var(--pkr-sapphire, #2A5298);
    background: rgba(42, 82, 152, 0.04);
}

.pkrp-btn--muted {
    background: transparent;
    color: var(--pkrp-muted);
    border: 1.5px solid var(--pkr-border, #EDE9E4);
    font-weight: 500;
}

.pkrp-btn--muted:hover {
    border-color: var(--pkrp-muted);
    color: var(--pkr-charcoal, #1F1F1F);
}

.pkrp-btn--full {
    width: 100%;
}

/* ── Lookup Form ── */

.pkrp-lookup {
    text-align: center;
    padding: 20px 0;
}

.pkrp-lookup-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.pkrp-field {
    margin-bottom: 18px;
}

.pkrp-field__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--pkr-charcoal, #1F1F1F);
}

.pkrp-field__input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #DDD;
    border-radius: 7px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--pkr-charcoal, #1F1F1F);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.pkrp-field__input:focus {
    border-color: rgba(42, 82, 152, 0.5);
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.08);
}

.pkrp-field__input::placeholder {
    color: #BBB;
}

/* ── Error State ── */

.pkrp-error {
    text-align: center;
    padding: 40px 0;
}

.pkrp-error__icon {
    margin-bottom: 16px;
}

/* ── Thank You State ── */

.pkrp-thankyou {
    text-align: center;
    padding: 40px 0;
}

.pkrp-thankyou__icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
}

/* ── Review Header ── */

.pkrp-review-header {
    margin-bottom: 8px;
}

/* ── Mobile Responsive ── */

@media (max-width: 480px) {
    .pkrp-wrap {
        padding: 24px 16px 40px;
    }

    .pkrp-title {
        font-size: 24px;
    }

    .pkrp-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .pkrp-product-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px 16px;
    }

    .pkrp-product-card__image {
        width: 80px;
        height: 80px;
    }

    .pkrp-product-card__image img {
        width: 80px;
        height: 80px;
    }

    .pkrp-product-card__placeholder {
        width: 80px;
        height: 80px;
    }

    .pkrp-product-card__info {
        min-width: unset;
    }

    .pkrp-product-card__action {
        width: 100%;
    }

    .pkrp-product-card__action .pkrp-btn {
        width: 100%;
    }
}
