/* TS Gift Card — Product Page Styles */

.ts-gc-wrap {
    margin: 24px 0;
}

.ts-gc-field {
    margin-bottom: 22px;
}

.ts-gc-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2E2820;
    margin-bottom: 9px;
    letter-spacing: 0.2px;
}

.ts-gc-required {
    color: #c0392b;
    margin-left: 2px;
}

.ts-gc-optional {
    font-weight: 400;
    font-size: 12px;
    color: #8A7A6A;
    margin-left: 4px;
}

/* ---- Amount buttons ---- */
.ts-gc-amounts-field {}

.ts-gc-amount-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ts-gc-amount-btn {
    padding: 11px 22px;
    background: #FFFFFF;
    border: 2px solid #D5CCBF;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    color: #2E2820;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    font-family: inherit;
    line-height: 1;
}

.ts-gc-amount-btn:hover {
    border-color: #2E2820;
    background: #F5F2ED;
}

.ts-gc-amount-btn.ts-gc-selected {
    border-color: #2E2820;
    background: #2E2820;
    color: #F0E8D8;
}

/* ---- Text inputs ---- */
.ts-gc-field input[type="text"] {
    width: 100%;
    max-width: 440px;
    padding: 11px 14px;
    border: 1.5px solid #D5CCBF;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    color: #2E2820;
    background: #FFFFFF;
    transition: border-color 0.18s;
    box-sizing: border-box;
}

.ts-gc-field input[type="text"]:focus {
    border-color: #2E2820;
    outline: none;
    box-shadow: 0 0 0 2px rgba(46, 40, 32, 0.08);
}

.ts-gc-field input[type="text"]::placeholder {
    color: #B0A494;
}

/* ---- Hint text ---- */
.ts-gc-hint {
    font-size: 12px;
    color: #9A8A7A;
    margin: 6px 0 0;
}

/* ---- Info box ---- */
.ts-gc-info-box {
    background: #FAF7F2;
    border: 1px solid #E0D5C5;
    border-radius: 4px;
    padding: 13px 16px;
    font-size: 13px;
    color: #6A5E52;
    line-height: 1.6;
    margin-top: 6px;
}

/* ---- Validation errors ---- */
.ts-gc-errors {
    background: #fdf0ef;
    border-left: 4px solid #c0392b;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.ts-gc-errors ul {
    margin: 0;
    padding: 0 0 0 18px;
}

.ts-gc-errors li {
    color: #8b0000;
    font-size: 14px;
    line-height: 1.7;
}

/* Mobile */
@media (max-width: 480px) {
    .ts-gc-amount-grid {
        gap: 8px;
    }
    .ts-gc-amount-btn {
        padding: 10px 16px;
        font-size: 15px;
    }
    .ts-gc-field input[type="text"] {
        max-width: 100%;
    }
}

/* ──────────────────────────────────────────────
   Custom "v2" product page (Tavo Šampūnas) scoped
   ────────────────────────────────────────────── */
.ts-pdp2 .ts-gc-v2 {
    margin: 22px 0 0;
    text-align: left;
}
.ts-pdp2 .ts-gc-wrap {
    margin: 0;
    text-align: left;
}
.ts-pdp2 .ts-gc-field {
    margin-bottom: 20px;
}
.ts-pdp2 .ts-gc-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: .01em;
}
.ts-pdp2 .ts-gc-optional,
.ts-pdp2 .ts-gc-hint {
    color: var(--ink-soft);
}
.ts-pdp2 .ts-gc-amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.ts-pdp2 .ts-gc-amount-btn {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
    font-family: 'Hanken Grotesk', sans-serif;
    line-height: 1;
    padding: 14px 6px;
}
.ts-pdp2 .ts-gc-amount-btn:hover {
    border-color: var(--green);
    background: var(--card);
    color: var(--ink);
}
.ts-pdp2 .ts-gc-amount-btn.ts-gc-selected {
    border-color: var(--green);
    background: var(--green);
    color: var(--paper);
    box-shadow: inset 0 0 0 1px var(--green);
}
.ts-pdp2 .ts-gc-field input[type="text"] {
    width: 100%;
    max-width: none;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 15px;
    font-family: 'Hanken Grotesk', sans-serif;
    color: var(--ink);
    background: var(--card);
    transition: border-color .15s;
    box-sizing: border-box;
}
.ts-pdp2 .ts-gc-field input[type="text"]:focus {
    border-color: var(--green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 56, 38, .08);
}
.ts-pdp2 .ts-gc-field input[type="text"]::placeholder {
    color: var(--ink-soft);
    opacity: .65;
}
.ts-pdp2 .ts-gc-info-box {
    background: var(--paper-2);
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    padding: 13px 15px;
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-top: 4px;
    text-align: left;
}
.ts-pdp2 .ts-gc-errors {
    background: #fdf0ef;
    border-left: 4px solid #c0392b;
    padding: 12px 16px;
    margin-bottom: 18px;
    border-radius: 0 4px 4px 0;
    text-align: left;
}
.ts-pdp2 .ts-gc-errors li {
    font-size: 14px;
}
.ts-pdp2 .ts-gc-submit {
    margin-top: 22px;
}
@media (max-width: 480px) {
    .ts-pdp2 .ts-gc-amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
