/**
 * Unerco Core - Public Frontend Stylesheet
 * 3D Product Customizer, Wishlist & Floating Toasts
 */

/* ==========================================================================
   1. 3D Product Customizer Box (Single Product)
   ========================================================================== */
.unerco-customizer-box {
    background: #faf8f3;
    border: 1px solid var(--line, #ded8cd);
    border-radius: 18px;
    padding: 24px;
    margin: 22px 0 26px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    font-family: inherit;
    color: var(--ink, #111111);
}

.customizer-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line, #ded8cd);
    padding-bottom: 14px;
}

.customizer-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #111111;
    color: #ffffff;
    padding: 3px 9px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.customizer-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px 0;
    letter-spacing: -0.4px;
}

.customizer-subtitle {
    font-size: 12.5px;
    color: var(--muted, #6e6a63);
    margin: 0;
    line-height: 1.5;
}

.customizer-field-group {
    margin-bottom: 18px;
}

.field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}

.field-label-row label,
.customizer-field-group > label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink, #111111);
}

.extra-fee-badge {
    font-size: 11px;
    font-weight: 700;
    color: #111111;
    background: #eee8dc;
    padding: 2px 8px;
    border-radius: 12px;
}

.free-fee-badge {
    font-size: 10.5px;
    font-weight: 700;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 2px 7px;
    border-radius: 12px;
    text-transform: uppercase;
}

.selected-meta-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted, #6e6a63);
}

/* Form Inputs */
.unerco-input-text,
.unerco-textarea {
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid var(--line, #ded8cd) !important;
    border-radius: 12px !important;
    padding: 11px 14px !important;
    font-size: 13px !important;
    font-family: inherit !important;
    color: var(--ink, #111) !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.unerco-input-text:focus,
.unerco-textarea:focus {
    border-color: #111111 !important;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08) !important;
}

/* Color Swatches */
.unerco-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.color-swatch-item {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid var(--line, #ded8cd);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.color-swatch-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.swatch-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.color-swatch-item:hover {
    border-color: #111111;
    transform: translateY(-1px);
}

.color-swatch-item.active,
.color-swatch-item:has(input:checked) {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.color-swatch-item:has(input:checked) .swatch-circle {
    border-color: #ffffff;
}

/* File Upload Zone */
.file-upload-zone {
    position: relative;
    border: 1.5px dashed var(--line, #ded8cd);
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.file-upload-zone:hover {
    border-color: #111111;
    background: #faf9f6;
}

.unerco-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.upload-ui-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.upload-icon {
    font-size: 20px;
    font-weight: bold;
    color: #111;
}

.upload-prompt {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink, #111);
}

.upload-limits {
    font-size: 11px;
    color: var(--muted, #6e6a63);
}

.file-info-preview {
    margin-top: 10px;
    padding: 8px 12px;
    background: #eef8f1;
    border: 1px solid #c2e7cc;
    border-radius: 8px;
    font-size: 12px;
    color: #1d6f3c;
    font-weight: 600;
}

/* Giftwrap Row */
.giftwrap-row {
    background: #ffffff;
    border: 1px solid var(--line, #ded8cd);
    border-radius: 12px;
    padding: 12px 16px;
}

.unerco-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.unerco-checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: #111111;
}

.checkbox-text {
    flex-grow: 1;
}

.checkbox-text b {
    display: block;
    font-size: 13px;
}

.checkbox-text small {
    display: block;
    font-size: 11px;
    color: var(--muted, #6e6a63);
}

/* Live Pricing Summary */
.customizer-price-summary {
    background: #ffffff;
    border: 1px solid var(--line, #ded8cd);
    border-radius: 12px;
    padding: 14px 18px;
    margin-top: 14px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    margin-bottom: 6px;
    color: var(--muted, #6e6a63);
}

.price-row.extra-row {
    color: #111111;
    font-weight: 600;
}

.price-row.total-row {
    border-top: 1px solid var(--line, #ded8cd);
    margin-top: 8px;
    padding-top: 8px;
    font-size: 14.5px;
    color: var(--ink, #111111);
}

/* ==========================================================================
   2. Wishlist Heart Buttons & Toast
   ========================================================================== */
.unerco-wishlist-btn {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}

.unerco-wishlist-btn:hover {
    transform: scale(1.12);
}

.unerco-wishlist-btn:active {
    transform: scale(0.92);
}

.unerco-wishlist-btn .heart-icon {
    font-style: normal;
    font-size: 16px;
    line-height: 1;
    color: #444;
    transition: color 0.2s;
}

.unerco-wishlist-btn.active .heart-icon {
    color: #e53935;
}

/* Floating Toast Notification */
.unerco-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #111111;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.unerco-toast.visible {
    transform: translateY(0);
    opacity: 1;
}

.unerco-toast a {
    color: #fff;
    text-decoration: underline;
    margin-left: 6px;
    font-size: 12px;
}
