/**
 * Statix Core — Centrale styles voor formulieren en meldingen
 * Button styles zijn verplaatst naar child theme style.css
 */

/* ================================
   1. FORMULIEREN
   ================================ */

.statix-form-row {
    margin-bottom: 18px;
}

.statix-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.statix-form-row input,
.statix-form-row select,
.statix-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
}

.statix-form-row input:focus,
.statix-form-row select:focus,
.statix-form-row textarea:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}

/* ================================
   5. MELDINGEN
   ================================ */

.statix-form-message {
    margin-top: 12px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.statix-form-message.success {
    display: block;
    background: #e6f7e6;
    color: #2a7a2a;
    border: 1px solid #b8e0b8;
}

.statix-form-message.error {
    display: block;
    background: #fce8e8;
    color: #a52a2a;
    border: 1px solid #f0b0b0;
}

/* ================================
   10. WINKELMAND MENU ICOON
   ================================ */

.statix-cart-menu-item {
    display: inline-flex;
    align-items: center;
    list-style: none;
}

.statix-cart-link {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    text-decoration: none;
}

.statix-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.statix-cart-icon svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.statix-cart-icon__count {
    position: absolute;
    top: -4px;
    right: -8px;
    background: #0207ec;
    color: #fff;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    box-sizing: border-box;
}

/* ================================
   11. WINKELMAND TOAST
   ================================ */

.statix-cart-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    display: none;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #1a1a2e;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 18px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    font-size: 14px;
    max-width: 380px;
    animation: statix-toast-in 0.3s ease;
}

.statix-cart-toast--visible {
    display: flex;
}

.statix-cart-toast__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #41c57c;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.statix-cart-toast__msg {
    flex: 1;
    line-height: 1.4;
}

.statix-cart-toast__link {
    color: #0207ec;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.statix-cart-toast__link:hover {
    text-decoration: underline;
}

.statix-cart-toast__close {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 8px;
    flex-shrink: 0;
}

.statix-cart-toast__close:hover {
    color: #333;
}

@keyframes statix-toast-in {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .statix-cart-toast {
        left: 10px;
        right: 10px;
        bottom: 10px;
        top: auto;
        max-width: none;
    }
}
