/* ===================================================================
   Give Your Price – Frontend Styles (Clean & Simple)
   =================================================================== */

.gyp-wrapper {
    margin: 16px 0 20px;
    padding: 20px;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.5;
}

/* ── Main label ───────────────────────────────────────────────────── */
.gyp-label-main {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 14px;
}

/* ── Input wrap ───────────────────────────────────────────────────── */
.gyp-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 260px;
}

.gyp-currency {
    font-size: 16px;
    font-weight: 600;
    color: #444;
    flex-shrink: 0;
}

.gyp-input {
    flex: 1;
    padding: 10px 12px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border: 1.5px solid #ccc !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #222 !important;
    transition: border-color 0.2s !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
    min-width: 0;
}

.gyp-input:focus {
    border-color: #888 !important;
    outline: none !important;
    box-shadow: none !important;
}

.gyp-input::-webkit-inner-spin-button,
.gyp-input::-webkit-outer-spin-button {
    opacity: 1;
}

.gyp-input.gyp-input-error {
    border-color: #c00 !important;
}

/* ── Hints ────────────────────────────────────────────────────────── */
.gyp-hint {
    margin: 8px 0 0 !important;
    font-size: 12.5px !important;
    color: #666 !important;
    line-height: 1.4 !important;
}

.gyp-hint-suggested { color: #555 !important; }
.gyp-hint-minimum   { color: #555 !important; }

/* ── Predefined prices ─────────────────────────────────────────────── */
.gyp-predefined-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.gyp-predefined-option {
    cursor: pointer;
    margin: 0;
}

.gyp-predefined-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.gyp-predefined-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #fff;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    user-select: none;
}

.gyp-predefined-btn:hover {
    border-color: #888;
    color: #111;
}

.gyp-predefined-option input[type="radio"]:checked + .gyp-predefined-btn {
    border-color: #333;
    color: #111;
    background: #f5f5f5;
}

/* ── Error ─────────────────────────────────────────────────────────── */
.gyp-error {
    margin-top: 8px;
    font-size: 12.5px;
    color: #c00;
    line-height: 1.4;
}

/* ── Cart qty badge ────────────────────────────────────────────────── */
.gyp-cart-qty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background: #f9f9f9;
}

/* ── Shop/archive label ────────────────────────────────────────────── */
.gyp-price-label {
    font-style: italic;
    font-size: 0.9em;
    color: #888;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .gyp-wrapper { padding: 14px; }
    .gyp-input { font-size: 16px !important; }
}
