.wctr-gift-card-fields {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.wctr-gift-card-fields h3 {
    margin: 0 0 10px;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 18px;
    color: #333;
}

.wctr-field {
    margin-bottom: 12px;
}

.wctr-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

.wctr-field label .required {
    color: #e74c3c;
}

.wctr-field input[type="text"],
.wctr-field input[type="email"],
.wctr-field input[type="number"],
.wctr-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.wctr-field input:focus,
.wctr-field textarea:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Card preview */
.wctr-card-preview-wrap {
    margin-bottom: 10px;
    text-align: center;
}

.wctr-card-preview {
    max-width: 80%;
    height: auto;
    border-radius: 12px;
    box-shadow: none;
    transition: opacity 0.3s ease;
}

/* Card selector grid */
.wctr-amount-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.wctr-card-option {
    position: relative;
    border: 3px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    transition: all 0.25s ease;
    text-align: center;
}

.wctr-card-option img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 7px 7px 0 0;
}

.wctr-card-amount {
    display: block;
    padding: 8px 6px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    background: #fff;
}

.wctr-card-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.wctr-card-option.active {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3), 0 4px 12px rgba(102, 126, 234, 0.2);
}

.wctr-card-option.active::after {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Sin imagen */
.wctr-card-no-image {
    padding-top: 20px;
}

.wctr-card-placeholder {
    font-size: 40px;
    display: block;
    margin-bottom: 4px;
}

/* Legacy buttons (fallback) */
.wctr-amount-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.wctr-amount-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    color: #333;
}

.wctr-amount-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.wctr-amount-btn.active {
    border-color: #667eea;
    background: #667eea;
    color: #fff;
}

.wctr-char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Cart item data overflow fix */
.woocommerce-cart .cart_item dl.variation,
.woocommerce-cart .cart_item .wc-item-meta {
    word-break: break-all;
    overflow-wrap: break-word;
}

.woocommerce-cart .cart_item dl.variation dt,
.woocommerce-cart .cart_item dl.variation dd,
.woocommerce-cart .cart_item .wc-item-meta li {
    display: block;
    float: none;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.woocommerce-cart .cart_item dl.variation dd p,
.woocommerce-cart .cart_item .wc-item-meta li p {
    word-break: break-all;
    overflow-wrap: break-word;
    margin: 0;
}

@media (max-width: 480px) {
    .wctr-amount-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .wctr-card-amount {
        font-size: 13px;
        padding: 6px 4px;
    }
}
