/* =========================================================
   VoerVinder - "Mijn dieren" My Account page styles
   Only loaded on the mijn-dieren account endpoint
   ========================================================= */

/* ---- Theme resets -------------------------------------------- */
.vv-account-animals ul,
.vv-account-animals ol,
.vv-account-animals li { list-style: none; margin: 0; padding: 0; }
.vv-account-animals h3  { line-height: 1.2; }
.vv-account-animals dl,
.vv-account-animals dt,
.vv-account-animals dd  { margin: 0; padding: 0; }
.vv-account-animals a   { text-decoration: none; }
.vv-account-animals img { max-width: 100%; height: auto; display: block; }

/* =========================================================
   Reminder banner
   ========================================================= */
.vv-reminder-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--vv-gold-light, #F9EFD7);
    border: 1px solid var(--color-alt-content-border);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #7d5a00;
}
.vv-reminder-banner__icon {
    font-size: 22px;
    flex-shrink: 0;
    padding-top: 2px;
}
.vv-reminder-banner__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.vv-reminder-banner__item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.vv-reminder-reorder-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--vv-gold, #CEAA5D);
    color: #1a1a1a;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
}
.vv-reminder-reorder-btn:hover {
    background: #b8963c;
    color: #1a1a1a;
}

/* ---- Empty state --------------------------------------------- */
.vv-account-empty {
    text-align: center;
    padding: 56px 24px;
    color: var(--vv-text-muted, #666);
}
.vv-account-empty-icon {
    font-size: 52px;
    color: var(--vv-gold, #CEAA5D);
    margin-bottom: 16px;
    display: block;
}
.vv-account-empty p {
    font-size: 16px;
    margin: 0 0 20px;
}

/* =========================================================
   Passport card grid
   ========================================================= */

.vv-passport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

/* ---- Card ---------------------------------------------------- */
.vv-passport-card {
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--vv-gold-light, #F9EFD7);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    background: #fff;
    transition: box-shadow .2s;
    min-height: 480px;
}
.vv-passport-card:hover {
    box-shadow: 0 4px 22px rgba(0, 0, 0, .11);
}

/* ---- Left strip ---------------------------------------------- */
.vv-passport-left {
    width: 72px;
    flex-shrink: 0;
    background: var(--vv-green, #003127);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 0 20px;
}
.vv-passport-paw {
    font-size: 24px;
    color: var(--vv-gold, #CEAA5D);
    margin-top: auto;
}
.vv-passport-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 2px solid var(--vv-gold, #CEAA5D);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}
/* ---- Tab navigation (inside left strip) -------------------- */
.vv-passport-tabs {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}
.vv-passport-tab {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 4px;
    color: rgba(255, 255, 255, .45);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    line-height: 1;
    transition: background .15s, color .15s;
}
.vv-passport-tab i {
    font-size: 14px;
}
.vv-passport-tab:hover {
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .8);
}
.vv-passport-tab--active {
    color: var(--vv-gold, #CEAA5D);
    background: rgba(255, 255, 255, .1);
    border-right: 3px solid var(--vv-gold, #CEAA5D);
}

/* ---- Panels ---------------------------------------------- */
.vv-passport-panel {
    display: none;
    flex-direction: column;
    gap: 14px;
}
.vv-passport-panel--active {
    display: flex;
}

/* ---- Answers list ----------------------------------------- */
.vv-answers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 2px;
}
.vv-answers-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 12px !important;
    background: var(--vv-cream, #FFF9EB);
    border-radius: 8px;
    border-left: 3px solid var(--vv-gold, #CEAA5D);
}
.vv-answers-question {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--vv-text-muted, #999);
}
.vv-answers-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--vv-green, #003127);
}
.vv-answers-empty {
    font-size: 13px;
    color: var(--vv-text-muted, #aaa);
    line-height: 1.5;
}
.vv-answers-redo {
    margin-top: 4px;
}

/* ---- Main content -------------------------------------------- */
.vv-passport-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    gap: 14px;
}

/* ---- Header: name + runout ----------------------------------- */
.vv-passport-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.vv-passport-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--vv-green, #003127);
    margin: 0;
    letter-spacing: -.01em;
}

/* ---- Fields grid --------------------------------------------- */
.vv-passport-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}
.vv-passport-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.vv-passport-field--full {
    grid-column: 1 / -1;
}

/* ---- Shared-bag toggle ------------------------------------- */
.vv-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
    color: var(--vv-text, #333);
    font-size: 13px;
}
.vv-toggle-wrap input[type='checkbox'] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.vv-toggle-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
    background: #d0d0d0;
    border-radius: 9px;
    flex-shrink: 0;
    transition: background .2s;
}
.vv-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.vv-toggle-wrap input:checked ~ .vv-toggle-switch {
    background: var(--vv-green, #003127);
}
.vv-toggle-wrap input:checked ~ .vv-toggle-switch::after {
    transform: translateX(16px);
}
.vv-toggle-wrap input:focus-visible ~ .vv-toggle-switch {
    outline: 2px solid var(--vv-gold, #C8A84B);
    outline-offset: 2px;
}
.vv-shared-with-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--vv-green, #003127);
    background: #e6f4ef;
    padding: 3px 8px;
    border-radius: 10px;
    margin-top: 2px;
}
/* Two dog icons sit side-by-side and overlap slightly in the badge */
.vv-runout-shared-icon {
    display: inline-flex;
    align-items: center;
    gap: -2px;
    margin-left: 3px;
    font-size: .85em;
    opacity: .85;
}
.vv-passport-field label,
.vv-pf-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--vv-text-muted, #888);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ---- Shared input style -------------------------------------- */
.vv-passport-birthday,
.vv-at-weight-input,
.vv-at-portie-input {
    padding: 6px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    background: var(--vv-cream, #FFF9EB);
    color: var(--vv-text, #333);
    transition: border-color .15s, box-shadow .15s;
    -moz-appearance: textfield;
    width: 100%;
    box-sizing: border-box;
}
.vv-passport-birthday:focus,
.vv-at-weight-input:focus,
.vv-at-portie-input:focus {
    border-color: var(--vv-gold, #CEAA5D);
    outline: none;
    box-shadow: 0 0 0 3px rgba(206, 170, 93, .18);
}
.vv-at-weight-input::-webkit-inner-spin-button,
.vv-at-portie-input::-webkit-inner-spin-button {
    opacity: .6;
}

/* Number inputs with unit wrapper */
.vv-at-weight-wrap,
.vv-at-portie-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}
.vv-at-weight-wrap .vv-at-weight-input,
.vv-at-portie-wrap .vv-at-portie-input {
    flex: 1;
    width: auto;
}
.vv-at-unit {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
}
.vv-at-portie-hint {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* ---- Huidig voer row ----------------------------------------- */
.vv-passport-product-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vv-at-product {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.vv-at-product-img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--vv-cream, #FFF9EB);
    border: 1px solid var(--vv-gold-light, #F9EFD7);
    display: block;
}
.vv-at-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.vv-at-product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--vv-green, #003127);
    line-height: 1.3;
}
.vv-at-product:hover .vv-at-product-name {
    text-decoration: underline;
}
.vv-at-none {
    font-size: 13px;
    color: var(--vv-text-muted, #aaa);
}

/* ---- Product picker (multi-ordered products) ----------------- */
.vv-product-picker-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.vv-passport-product-select {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid var(--vv-gold-light, #F9EFD7);
    border-radius: 6px;
    background: var(--vv-cream, #FFF9EB);
    font-size: 13px;
    font-weight: 600;
    color: var(--vv-green, #003127);
    cursor: pointer;
    appearance: auto; /* show native arrow */
    min-width: 0;
}
.vv-passport-product-select:focus {
    outline: none;
    border-color: var(--vv-gold, #C8A84B);
    box-shadow: 0 0 0 2px rgba(200,168,75,.2);
}
.vv-product-view-link {
    flex-shrink: 0;
    color: var(--vv-green, #003127);
    opacity: .55;
    font-size: 13px;
    text-decoration: none;
    padding: 4px;
    border-radius: 4px;
    transition: opacity .15s;
}
.vv-product-view-link:hover {
    opacity: 1;
    color: var(--vv-gold, #C8A84B);
}
.vv-at-product--selected {
    pointer-events: none; /* thumbnail only — link is via the external icon */
    text-decoration: none;
}
/* Saving spinner overlay on product select */
.vv-passport-product-select.vv-saving {
    opacity: .5;
    pointer-events: none;
}

/* ---- Notes --------------------------------------------------- */
.vv-passport-notes-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.vv-passport-notes-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    background: var(--vv-cream, #FFF9EB);
    color: var(--vv-text, #333);
    resize: vertical;
    min-height: 58px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.vv-passport-notes-input:focus {
    border-color: var(--vv-gold, #CEAA5D);
    outline: none;
    box-shadow: 0 0 0 3px rgba(206, 170, 93, .18);
}

/* ---- Divider ------------------------------------------------- */
.vv-passport-divider {
    height: 1px;
    background: var(--vv-gold-light, #F9EFD7);
    margin: 0 -20px;
}

/* ---- Actions ------------------------------------------------- */
.vv-passport-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.vv-at-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
    line-height: 1;
    flex-shrink: 0;
}
.vv-at-save-btn {
    background: var(--vv-green, #003127);
    color: #fff;
    border-color: var(--vv-green, #003127);
}
.vv-at-save-btn:hover {
    background: #004d3c;
    border-color: #004d3c;
    color: #fff;
}
.vv-at-save-btn--ok {
    background: #27ae60;
    border-color: #27ae60;
}
.vv-at-save-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.vv-at-btn--edit {
    background: var(--vv-cream, #FFF9EB);
    color: var(--vv-green, #003127);
    border-color: var(--vv-gold-light, #F9EFD7);
}
.vv-at-btn--edit:hover {
    background: var(--vv-gold-light, #F9EFD7);
    border-color: var(--vv-gold, #CEAA5D);
    color: var(--vv-green, #003127);
}
.vv-at-btn--delete {
    background: #fff;
    color: #c0392b;
    border-color: #f5c6c2;
    margin-left: auto;
}
.vv-at-btn--delete:hover {
    background: #fdf1f0;
    border-color: #c0392b;
}
.vv-at-btn--delete:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.vv-at-btn--reorder {
    background: var(--vv-gold, #CEAA5D);
    color: #1a1a1a;
    border-color: var(--vv-gold, #CEAA5D);
}
.vv-at-btn--reorder:hover {
    background: #b8963c;
    border-color: #b8963c;
    color: #1a1a1a;
}

/* ---- Add animal button --------------------------------------- */
.vv-account-add-animal {
    margin-top: 4px;
}

/* =========================================================
   Runout badge
   ========================================================= */

.vv-runout-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.vv-runout-badge--ok     { background: #eafaf1; color: #27ae60; }
.vv-runout-badge--low    { background: #fef9e7; color: #d68910; }
.vv-runout-badge--urgent { background: #fef5e7; color: #e67e22; }
.vv-runout-badge--empty  { background: #fce8e8; color: #c0392b; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 700px) {
    .vv-passport-grid {
        grid-template-columns: 1fr;
    }
    .vv-passport-fields {
        grid-template-columns: 1fr;
    }
    .vv-passport-left {
        width: 58px;
    }
    .vv-passport-tab span {
        display: none;
    }
    .vv-passport-tab {
        padding: 10px 0;
    }
}

