/* CodeWished Public Styles */

.cw-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 0 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Form Header */
.cw-form-header {
    text-align: center;
    margin-bottom: 32px;
}
.cw-form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}
.cw-form-header p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

/* Form */
.cw-form { display: flex; flex-direction: column; gap: 20px; }

.cw-row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 540px) { .cw-row--2 { grid-template-columns: 1fr; } }

.cw-field { display: flex; flex-direction: column; gap: 6px; }
.cw-field label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}
.cw-field .req { color: #ef4444; }
.cw-field small { font-size: 12px; color: #9ca3af; margin-top: 2px; }

.cw-form input[type="text"],
.cw-form input[type="email"],
.cw-form input[type="url"],
.cw-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #111827;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    font-family: inherit;
}
.cw-form input:focus,
.cw-form textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}

.cw-form textarea { resize: vertical; min-height: 140px; }

/* Button */
.cw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .15s;
}
.cw-btn--primary {
    background: #7c3aed;
    color: #fff;
    width: 100%;
}
.cw-btn--primary:hover { background: #6d28d9; }
.cw-btn--primary:disabled { opacity: .65; cursor: not-allowed; }

/* Notice */
.cw-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}
.cw-notice.error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.cw-notice.success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* Success box */
.cw-success-box {
    text-align: center;
    padding: 48px 32px;
    background: #faf5ff;
    border: 2px solid #e9d5ff;
    border-radius: 12px;
}
.cw-success-icon { font-size: 56px; margin-bottom: 16px; }
.cw-success-box h3 { font-size: 24px; color: #111827; margin: 0 0 8px; }
.cw-success-box p  { color: #6b7280; margin: 0; font-size: 16px; }

/* Badge */
.cw-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Wishlist */
.cw-wishlist h2 { font-size: 26px; font-weight: 700; color: #111827; margin-bottom: 6px; }
.cw-wishlist > p { color: #6b7280; margin-bottom: 24px; }

.cw-wish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.cw-wish-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
    transition: border-color .15s, box-shadow .15s;
}
.cw-wish-card:hover {
    border-color: #c4b5fd;
    box-shadow: 0 4px 12px rgba(124,58,237,.08);
}

.cw-wish-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.cw-wish-date { font-size: 12px; color: #9ca3af; }

.cw-wish-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.4;
}
.cw-wish-desc { font-size: 14px; color: #6b7280; margin: 0 0 8px; line-height: 1.5; }
.cw-wish-budget { font-size: 13px; color: #374151; margin: 0; }

.cw-empty { color: #9ca3af; font-style: italic; }
