/**
 * GT Gutschein – Frontend Styles
 * Brand: Petrol #006B62 | BG #FAF9F6 | Text #292929
 */

/* Gutschein fields container */
.gt-gutschein-fields {
    margin: 24px 0;
    padding: 24px;
    background: #FAF9F6;
    border: 1px solid #e5e2dd;
    border-radius: 12px;
}

.gt-gutschein-fields__title {
    font-size: 15px;
    font-weight: 600;
    color: #006B62;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e2dd;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Individual field */
.gt-gutschein-field {
    margin-bottom: 16px;
}

.gt-gutschein-field:last-child {
    margin-bottom: 0;
}

.gt-gutschein-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #292929;
    margin-bottom: 6px;
}

.gt-gutschein-field label .optional {
    font-weight: 400;
    color: #999;
    font-size: 12px;
}

.gt-gutschein-field input[type="text"],
.gt-gutschein-field input[type="email"],
.gt-gutschein-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1cfc9;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #292929;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.gt-gutschein-field input:focus,
.gt-gutschein-field textarea:focus {
    outline: none;
    border-color: #006B62;
    box-shadow: 0 0 0 3px rgba(0, 107, 98, 0.1);
}

.gt-gutschein-field textarea {
    resize: vertical;
    min-height: 80px;
}

.gt-gutschein-hint {
    font-size: 12px;
    color: #888;
    margin: 4px 0 0;
    line-height: 1.4;
}

/* Custom amount field */
.gt-gutschein-custom-amount {
    margin: 20px 0;
    padding: 20px 24px;
    background: #006B62;
    border-radius: 12px;
    color: #fff;
}

.gt-gutschein-custom-amount label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
}

.gt-gutschein-amount-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gt-gutschein-amount-wrapper input[type="number"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #292929;
    background: #fff;
    max-width: 200px;
}

.gt-gutschein-amount-wrapper input[type="number"]:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.gt-gutschein-currency {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.gt-gutschein-custom-amount .gt-gutschein-hint {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

/* Character counter */
.gt-char-count {
    font-variant-numeric: tabular-nums;
}

/* Cart display */
.woocommerce-cart .product-name dl.variation dt {
    font-weight: 500;
    color: #006B62;
}

/* Responsive */
@media (max-width: 600px) {
    .gt-gutschein-fields {
        padding: 16px;
        margin: 16px 0;
    }

    .gt-gutschein-amount-wrapper input[type="number"] {
        font-size: 18px;
        max-width: 150px;
    }
}
