/* Google Review QR Generator – frontend styles */

.grq-wrapper {
    max-width: 520px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #111;
}
div#grq_1 {
    margin: 0 auto;
}
/* ── Input Row ── */
.grq-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    padding: 0 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.grq-input-wrap:focus-within {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}

.grq-icon {
    width: 18px;
    height: 18px;
    color: #6b7280;
    flex-shrink: 0;
    margin-right: 10px;
}

.grq-input {
    flex: 1;
    height: 48px;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: #111;
    min-width: 0;
}

.grq-input::placeholder {
    color: #9ca3af;
}

.grq-clear {
    cursor: pointer;
    color: #9ca3af;
    font-size: 16px;
    padding: 4px;
    border-radius: 50%;
    line-height: 1;
    flex-shrink: 0;
    transition: color .15s;
}

.grq-clear:hover {
    color: #374151;
}

/* ── Google autocomplete dropdown styling ── */
.pac-container {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    margin-top: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pac-item {
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    border-top: 1px solid #f3f4f6;
}

.pac-item:hover, .pac-item:focus {
    background: #f0f7ff;
}

.pac-item:first-child {
    border-top: none;
}

.pac-icon {
    display: none;
}

.pac-item-query {
    font-size: 14px;
    font-weight: 500;
    color: #111;
}

.pac-matched {
    color: #1a73e8;
}

/* ── Result Block ── */
.grq-result {
    margin-top: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    animation: grqFadeUp 0.25s ease;
}

@keyframes grqFadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.grq-biz-info {
    padding: 16px 18px 12px;
    border-bottom: 1px solid #f3f4f6;
}

.grq-biz-name {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin-bottom: 3px;
}

.grq-biz-addr {
    font-size: 13px;
    color: #6b7280;
}

/* ── Link Row ── */
.grq-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid #f3f4f6;
}

.grq-link-input {
    flex: 1;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    color: #374151;
    background: #f9fafb;
    font-family: monospace;
    min-width: 0;
    outline: none;
}

.grq-copy-btn {
    flex-shrink: 0;
    height: 36px;
    padding: 0 16px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, transform .1s;
    white-space: nowrap;
}

.grq-copy-btn:hover {
    background: #1557b0;
}

.grq-copy-btn:active {
    transform: scale(0.97);
}

.grq-copy-btn.copied {
    background: #34a853;
}

/* ── QR Block ── */
.grq-qr-block {
    padding: 18px;
    text-align: center;
    background: #fafafa;
}

.grq-qr-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grq-qr-img {
    display: block;
    margin: 0 auto 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.grq-qr-download {
    font-size: 13px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.grq-qr-download:hover {
    text-decoration: underline;
}

/* ── Decorative stars ── */
.grq-stars {
    display: flex;
    gap: 3px;
    margin-top: 10px;
    padding-left: 2px;
}

.grq-stars span {
    font-size: 14px;
    color: #d1d5db;
    transition: color .2s;
}

.grq-stars.active span {
    color: #fbbc04;
}
