/* WGV Frontend & Modal Styles */
.wgv-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    backdrop-filter: blur(3px);
}

.wgv-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.wgv-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 22px;
    color: #1e1e1e;
}

.wgv-options {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.wgv-option-btn {
    flex: 1;
    padding: 15px 10px;
    border: 2px solid #e2e4e7;
    border-radius: 8px;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #555;
}

.wgv-option-btn:hover {
    background: #fff;
    border-color: #2271b1;
}

.wgv-option-btn.active {
    border-color: #2271b1;
    background: #f0f6fb;
    color: #2271b1;
    box-shadow: 0 4px 10px rgba(34, 113, 177, 0.1);
}

.wgv-gift-fields {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Template List Selector */
.wgv-template-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.wgv-template-item {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    background: #fff;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.wgv-template-item:hover {
    border-color: #2271b1;
    background: #f0f6fb;
}

.wgv-template-item.active {
    border-color: #2271b1;
    background: #2271b1;
    color: #fff;
    font-weight: 600;
}

.wgv-form-row {
    margin-bottom: 15px;
}

.wgv-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.wgv-form-row input,
.wgv-form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.wgv-modal-actions {
    text-align: center;
    margin-top: 30px;
}

.wgv-modal-actions button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}

.wgv-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #bbb;
    line-height: 1;
}

.wgv-close:hover {
    color: #333;
}