/* Lilo Gift Cards - Frontend Styles */

.lilo-gc-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.lilo-gc-header {
    text-align: center;
    margin-bottom: 40px;
}

.lilo-gc-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.lilo-gc-header p {
    font-size: 16px;
    color: #666;
}

.lilo-gc-section {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lilo-gc-section h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 10px;
}

/* Designs */
.lilo-gc-designs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.lilo-gc-design-option {
    cursor: pointer;
    display: block;
}

.lilo-gc-design-option input[type="radio"] {
    display: none;
}

.lilo-gc-design-image {
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.lilo-gc-design-option input[type="radio"]:checked + .lilo-gc-design-image {
    border-color: #4a90e2;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.lilo-gc-design-image img {
    width: 100%;
    height: auto;
    display: block;
}

.lilo-gc-design-name {
    display: block;
    text-align: center;
    padding: 10px;
    background: #f9f9f9;
    font-weight: 600;
    color: #333;
}

.lilo-gc-design-option input[type="radio"]:checked + .lilo-gc-design-image .lilo-gc-design-name {
    background: #4a90e2;
    color: #fff;
}

/* Amounts */
.lilo-gc-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.lilo-gc-amount-option {
    cursor: pointer;
    display: block;
}

.lilo-gc-amount-option input[type="radio"] {
    display: none;
}

.lilo-gc-amount-value {
    display: block;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    transition: all 0.3s ease;
    background: #fff;
}

.lilo-gc-amount-option:hover .lilo-gc-amount-value {
    border-color: #4a90e2;
    background: #f0f7ff;
}

.lilo-gc-amount-option input[type="radio"]:checked + .lilo-gc-amount-value {
    border-color: #4a90e2;
    background: #4a90e2;
    color: #fff;
}

/* Recipient Info */
.lilo-gc-recipient-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.lilo-gc-field {
    display: flex;
    flex-direction: column;
}

.lilo-gc-field.full-width {
    grid-column: 1 / -1;
}

.lilo-gc-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.lilo-gc-field input,
.lilo-gc-field textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.lilo-gc-field input:focus,
.lilo-gc-field textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Buttons */
.lilo-gc-button-primary {
    width: 100%;
    padding: 16px 32px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lilo-gc-button-primary:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.lilo-gc-button-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.lilo-gc-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
}

.lilo-gc-message.success,
.lilo-gc-message .success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lilo-gc-message.error,
.lilo-gc-message .error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Checkout Page */
.lilo-gc-checkout-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.lilo-gc-checkout-header {
    text-align: center;
    margin-bottom: 40px;
}

.lilo-gc-checkout-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.lilo-gc-checkout-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.lilo-gc-checkout-summary,
.lilo-gc-checkout-payment {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lilo-gc-checkout-summary h3,
.lilo-gc-checkout-payment h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 10px;
}

.lilo-gc-summary-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.lilo-gc-summary-item:last-child {
    border-bottom: none;
}

.lilo-gc-summary-item strong {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.lilo-gc-amount-display {
    font-size: 28px;
    font-weight: 700;
    color: #4a90e2;
}

/* Stancer Form */
#stancer-form {
    margin-bottom: 20px;
    min-height: 100px;
}

/* Notices */
.lilo-gc-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.lilo-gc-notice.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.lilo-gc-notice.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
    .lilo-gc-designs {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .lilo-gc-recipient-info {
        grid-template-columns: 1fr;
    }
    
    .lilo-gc-checkout-content {
        grid-template-columns: 1fr;
    }
    
    .lilo-gc-amounts {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .lilo-gc-designs {
        grid-template-columns: 1fr;
    }
    
    .lilo-gc-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
}
