/* ==========================================================
   AFAFKA CLUB ACCOUNT
   Clean stylesheet for PHP 1.1.x + rewritten account.js
   ========================================================== */

/* ----------------------------------------------------------
   1. DESIGN TOKENS / BASE
   ---------------------------------------------------------- */

.woocommerce-MyAccount-content .afafka-account-club,
.woocommerce-MyAccount-content .afafka-account-club * {
    box-sizing: border-box;
}

.afafka-account-club {
    --af-bg: #fbf7f4;
    --af-soft: #f3e6db;
    --af-soft-2: #f8eee8;
    --af-soft-3: #fffaf7;

    --af-brown: #5a321f;
    --af-brown-dark: #432315;
    --af-brown-light: #8b5d42;

    --af-text: #493a33;
    --af-muted: #806e65;

    --af-border: rgba(90, 50, 31, .14);
    --af-border-strong: rgba(90, 50, 31, .24);

    --af-danger: #a84f44;
    --af-danger-bg: #fff4f1;
    --af-success: #356843;
    --af-success-bg: #edf7ef;

    color: var(--af-text);
    font-size: 16px;
    line-height: 1.6;
}

.afafka-account-club h2,
.afafka-account-club h3,
.afafka-account-club h4 {
    margin-top: 0;
    color: var(--af-brown);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.12;
}

.afafka-account-club button,
.afafka-account-club input,
.afafka-account-club select,
.afafka-account-club textarea {
    font: inherit;
}

.afafka-account-club [hidden] {
    display: none !important;
}


/* ----------------------------------------------------------
   2. CLUB HEADER
   ---------------------------------------------------------- */

.afafka-account-hero {
    position: relative;
    overflow: hidden;

    width: 100%;
    min-height: 0;

    margin: 0 0 22px;
    padding: 18px 28px;

    border: 1px solid var(--af-border);
    border-radius: 18px;

    background:
        linear-gradient(
            100deg,
            #fffaf7 0%,
            #f5e7da 100%
        );
}

.afafka-account-hero::after {
    content: "♡";

    position: absolute;
    right: 24px;
    bottom: -52px;

    color: rgba(90, 50, 31, .045);

    font: 140px/1 Georgia, serif;

    pointer-events: none;
}

.afafka-account-eyebrow {
    margin: 0 0 5px;

    color: var(--af-brown-light);

    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: .16em;
    text-transform: uppercase;
}

.afafka-account-hero h2 {
    position: relative;
    z-index: 1;

    margin: 0;

    font-size: 21px;
    line-height: 1.25;
}

.afafka-account-hero > p,
.afafka-account-stats {
    display: none;
}

/* classes added by rewritten JS */

.afafka-club-header-compact {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;

    margin: 0 0 22px !important;
    padding: 18px 190px 18px 28px !important;

    border-radius: 18px !important;

    gap: 0 !important;
}

.afafka-club-header-kicker {
    margin: 0 0 5px !important;

    font-size: 11px !important;
    line-height: 1.2 !important;

    letter-spacing: .16em !important;
}

.afafka-club-header-greeting {
    margin: 0 !important;
    padding: 0 !important;

    font-size: 21px !important;
    line-height: 1.25 !important;
}

.afafka-club-header-remove,
.afafka-club-header-description-hidden,
.afafka-club-header-stats-hidden {
    display: none !important;
}

.afafka-header-edit-details {
    position: absolute !important;
    top: 50% !important;
    right: 24px !important;

    min-height: 42px !important;

    margin: 0 !important;
    padding: 10px 16px !important;

    border: 1px solid rgba(90, 50, 31, .22) !important;
    border-radius: 11px !important;

    background: rgba(255, 255, 255, .78) !important;

    color: var(--af-brown) !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    text-decoration: none !important;
    white-space: nowrap !important;

    transform: translateY(-50%) !important;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease;
}

.afafka-header-edit-details:hover {
    border-color: rgba(90, 50, 31, .42) !important;

    background: #fff !important;

    color: var(--af-brown-dark) !important;
}

.afafka-details-block-hidden {
    display: none !important;
}


/* ----------------------------------------------------------
   3. SECTION HEADER / BUTTONS
   ---------------------------------------------------------- */

.afafka-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin: 30px 0 14px;
}

.afafka-section-head h3 {
    margin: 0;

    font-size: 30px;
}

.afafka-outline-btn,
.afafka-primary-btn,
.afafka-text-btn {
    min-height: 46px;

    padding: 10px 16px;

    border-radius: 11px;

    font-weight: 800;

    cursor: pointer;

    transition:
        background .16s ease,
        border-color .16s ease,
        color .16s ease;
}

.afafka-outline-btn {
    border: 1px solid rgba(90, 50, 31, .25);

    background: #fff;

    color: var(--af-brown);
}

.afafka-outline-btn:hover {
    border-color: rgba(90, 50, 31, .42);

    background: var(--af-soft-3);
}

.afafka-primary-btn {
    border: 0;

    background: var(--af-brown);

    color: #fff;
}

.afafka-primary-btn:hover {
    background: var(--af-brown-dark);
}

.afafka-text-btn {
    border: 0;

    background: transparent;

    color: var(--af-brown);

    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ----------------------------------------------------------
   4. OWNER FORM
   ---------------------------------------------------------- */

.afafka-owner-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 24px;
    padding: 20px 22px;

    border: 1px solid var(--af-border);
    border-radius: 18px;

    background: #fff;
}

.afafka-owner-card h3 {
    margin: 0 0 3px;

    font-size: 27px;
}

.afafka-owner-card p {
    margin: 0;

    color: var(--af-muted);

    font-size: 14px;
}

.afafka-account-edit-panel,
.afafka-add-dog-panel {
    margin: 0 0 22px;
    padding: 22px;

    border: 1px solid var(--af-border);
    border-radius: 18px;

    background: var(--af-soft-3);
}

.afafka-account-edit-panel > label {
    display: block;

    margin-bottom: 12px;
}

.afafka-account-edit-panel label > span {
    display: block;

    margin-bottom: 6px;

    color: var(--af-text);

    font-size: 14px;
    font-weight: 800;
}

.afafka-account-edit-panel input[type="text"],
.afafka-account-edit-panel input[type="email"],
.afafka-account-edit-panel input[type="password"] {
    width: 100%;
    min-height: 50px;

    padding: 10px 12px;

    border: 1px solid rgba(90, 50, 31, .20);
    border-radius: 10px;

    outline: none;

    background: #fff;

    color: var(--af-text);

    font-size: 15px;
}

.afafka-account-edit-panel input:focus {
    border-color: var(--af-brown-light);

    box-shadow:
        0 0 0 3px
        rgba(139, 93, 66, .08);
}

.afafka-account-edit-panel small {
    display: block;

    margin-top: 5px;

    color: var(--af-muted);

    font-size: 12px;
}

#owner-edit .afafka-owner-form-actions {
    width: 100% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 18px !important;

    margin-top: 16px !important;
}

#owner-edit .afafka-owner-form-actions > * {
    position: static !important;
    float: none !important;

    margin: 0 !important;
}

#owner-edit .afafka-owner-form-actions button[type="submit"],
#owner-edit .afafka-owner-form-actions input[type="submit"] {
    width: auto !important;
    min-width: 148px !important;
}


/* ----------------------------------------------------------
   5. DOG LIST / CARD
   ---------------------------------------------------------- */

.afafka-dog-list {
    display: grid;

    gap: 18px;
}

.afafka-dog-card {
    overflow: hidden;

    border: 1px solid var(--af-border);
    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 7px 28px
        rgba(67, 35, 21, .045);
}

.afafka-dog-card-main {
    display: grid;
    grid-template-columns:
        minmax(210px, .72fr)
        minmax(0, 1.7fr);

    min-height: 0;

    align-items: start;
}

.afafka-dog-photo {
    width: 100%;
    height: 310px;
    min-height: 0;

    overflow: hidden;

    background: var(--af-soft-2);
}

.afafka-dog-photo img {
    width: 100%;
    height: 100%;
    min-height: 0;

    display: block;

    object-fit: cover;
    object-position: center 55%;
}

.afafka-dog-photo-empty {
    width: 100%;
    height: 310px;
    min-height: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--af-brown-light);

    font: 70px Georgia, serif;
}

.afafka-dog-content {
    min-height: 0;

    padding: 24px;
}

.afafka-dog-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;
}

.afafka-dog-title-row h3 {
    margin: 6px 0 3px;

    font-size: 36px;
}

.afafka-dog-breed {
    margin: 0;

    color: var(--af-muted);

    font-size: 15px;
}

.afafka-badge-row {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;
}

.afafka-pill {
    display: inline-flex;

    padding: 5px 9px;

    border-radius: 999px;

    background: var(--af-brown);

    color: #fff;

    font-size: 11px;
    font-weight: 800;
}

.afafka-pill-soft {
    background: var(--af-soft);

    color: var(--af-brown);
}

.afafka-hide-primary-pup,
.afafka-hide-tryon-ready {
    display: none !important;
}

.afafka-dog-facts {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 8px;

    margin: 20px 0;
}

.afafka-dog-facts > div {
    padding: 11px 12px;

    border-radius: 11px;

    background: var(--af-soft-2);
}

.afafka-dog-facts span {
    display: block;

    color: var(--af-muted);

    font-size: 11px;
    font-weight: 700;
}

.afafka-dog-facts strong {
    display: block;

    margin-top: 2px;

    color: var(--af-brown);

    font-size: 16px;
}

.afafka-little-note {
    display: grid;
    grid-template-columns: 34px 1fr;

    gap: 10px;

    padding: 13px;

    border-radius: 12px;

    background: var(--af-soft);
}

.afafka-little-note > span {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, .62);

    color: var(--af-brown);

    font: 17px Georgia, serif;
}

.afafka-little-note strong {
    display: block;

    color: var(--af-brown);

    font-size: 13px;
}

.afafka-little-note p {
    margin: 2px 0 0;

    color: var(--af-muted);

    font-size: 13px;
}

.afafka-story-chips {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 12px;
}

.afafka-story-chips span {
    padding: 6px 9px;

    border: 1px solid var(--af-border);
    border-radius: 999px;

    background: #fff;

    color: var(--af-text);

    font-size: 12px;
}


/* ----------------------------------------------------------
   6. DOG EDITOR
   ---------------------------------------------------------- */

.afafka-dog-edit-panel,
.afafka-add-dog-panel {
    padding: 28px 30px !important;

    border: 1px solid var(--af-border) !important;
    border-radius: 22px !important;

    background: #fff !important;

    box-shadow: none !important;
}

.afafka-dog-card .afafka-dog-edit-panel {
    margin: 0 !important;

    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-radius: 0 !important;
}

.afafka-edit-section {
    margin: 24px 0 16px;
    padding: 0;
}

.afafka-edit-section:first-of-type {
    margin-top: 0;
}

.afafka-edit-section h4 {
    margin: 0 0 4px;

    color: var(--af-brown);

    font-size: 25px;
    font-weight: 400;
    line-height: 1.12;
}

.afafka-edit-section p {
    max-width: 680px;

    margin: 0;

    color: var(--af-muted);

    font-size: 12px;
    line-height: 1.5;
}


/* ----------------------------------------------------------
   7. FORM GRID / FIELDS
   ---------------------------------------------------------- */

.afafka-form-grid {
    display: grid;

    gap: 12px;

    margin-bottom: 12px;
}

.afafka-form-grid-2 {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.afafka-form-grid-3 {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.afafka-dog-form label {
    display: block;

    margin-bottom: 12px;
}

.afafka-dog-form label > span {
    display: block;

    margin-bottom: 6px;

    color: var(--af-text);

    font-size: 12px;
    font-weight: 700;
}

.afafka-dog-form label > span em {
    color: var(--af-muted);

    font-size: 12px;
    font-style: normal;
    font-weight: 500;
}

.afafka-dog-form input[type="text"],
.afafka-dog-form input[type="number"],
.afafka-dog-form input[type="date"],
.afafka-dog-form input[type="email"],
.afafka-dog-form select {
    width: 100%;
    min-height: 46px;

    padding: 9px 11px;

    border: 1px solid rgba(90, 50, 31, .20);
    border-radius: 10px;

    outline: none;

    background: #fff;

    color: var(--af-text);

    box-shadow: none;

    font-size: 14px;
}

.afafka-dog-form input:focus,
.afafka-dog-form select:focus {
    border-color: var(--af-brown-light);

    box-shadow:
        0 0 0 3px
        rgba(139, 93, 66, .09);
}

.afafka-dog-form small {
    display: block;

    margin-top: 5px;

    color: var(--af-muted);

    font-size: 12px;
}


/* ----------------------------------------------------------
   8. SEGMENTED CONTROLS
   ---------------------------------------------------------- */

.afafka-segmented {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin: 0 0 14px;
}

.afafka-segmented label {
    margin: 0;
}

.afafka-segmented input {
    position: absolute;

    opacity: 0;
}

.afafka-segmented label > span {
    min-height: 52px;

    display: flex !important;
    align-items: center;

    margin: 0;
    padding: 11px 13px;

    border: 1px solid var(--af-border);
    border-radius: 12px;

    background: #fff;

    color: var(--af-text);

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.afafka-segmented input:checked + span {
    border-color: rgba(90, 50, 31, .38);

    background: var(--af-soft);

    color: var(--af-brown);

    box-shadow:
        inset
        0
        0
        0
        1px
        rgba(90, 50, 31, .03);
}


/* ----------------------------------------------------------
   9. AGE / SIZE PANELS
   ---------------------------------------------------------- */

.afafka-age-birthday-panel,
.afafka-age-approx-panel,
.afafka-known-size-panel {
    margin-bottom: 12px;
}

.afafka-measurements-panel {
    overflow: visible !important;

    margin: 4px 0 12px;
    padding: 16px;

    border: 1px solid rgba(90, 50, 31, .10);
    border-radius: 14px;

    background: var(--af-soft-3);
}

.afafka-known-size-panel {
    overflow: visible !important;
}

.afafka-measurements-panel > .afafka-form-grid-2:first-child {
    grid-template-columns:
        minmax(0, 320px) !important;

    margin-bottom: 13px !important;
}


/* ----------------------------------------------------------
   10. LIVE SIZE RESULT
   ---------------------------------------------------------- */

.afafka-inline-size-result {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 10px 13px;

    border-radius: 10px;

    background: var(--af-soft);
}

.afafka-inline-size-result span {
    color: var(--af-muted);

    font-size: 12px;
    font-weight: 700;
}

.afafka-inline-size-result strong {
    color: var(--af-brown);

    font: 28px Georgia, serif;
}

.afafka-inline-size-result.afafka-live-size-result {
    width: 100%;

    display: block;

    margin: 14px 0 4px;
    padding: 20px 18px;

    border: 1px solid rgba(90, 50, 31, .12);
    border-radius: 15px;

    background: var(--af-soft);

    text-align: center;
}

.afafka-inline-size-result.afafka-live-size-result > span {
    display: block;

    margin: 0 0 5px;

    color: var(--af-brown-light);

    font-size: 9px;
    font-weight: 800;
    line-height: 1.3;

    letter-spacing: .15em;
    text-transform: uppercase;
}

.afafka-inline-size-result.afafka-live-size-result > strong {
    display: block;

    margin: 0;

    color: var(--af-brown);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 46px;
    font-weight: 400;
    line-height: 1;
}

.afafka-live-size-help {
    max-width: 560px;

    margin: 8px auto 0 !important;

    color: #6f5b51;

    font-size: 12px;
    line-height: 1.5;
}

.afafka-live-size-result.has-size {
    border-color: rgba(90, 50, 31, .16);

    background: var(--af-soft);
}

.afafka-live-size-result.needs-check {
    border-color: rgba(160, 93, 76, .24);

    background: #fff8f2;
}

.afafka-live-size-result.needs-check > strong {
    font-size: 32px;
}


/* ----------------------------------------------------------
   11. REQUIRED VALIDATION
   Only Dog's Name + Main profile photo
   ---------------------------------------------------------- */

.afafka-required-summary {
    width: 100%;

    margin: 0 0 22px;
    padding: 17px 18px;

    border: 1px solid rgba(168, 79, 68, .34);
    border-left: 5px solid var(--af-danger);
    border-radius: 12px;

    background: var(--af-danger-bg);

    color: #6e332d;

    box-shadow:
        0 6px 18px
        rgba(110, 51, 45, .06);
}

.afafka-required-summary[hidden] {
    display: none !important;
}

.afafka-required-summary strong {
    display: block;

    margin: 0 0 4px;

    color: #71372f;

    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.afafka-required-summary p {
    margin: 0 0 8px;

    color: #80584f;

    font-size: 13px;
    line-height: 1.45;
}

.afafka-required-summary ul {
    margin: 0 0 0 20px;
    padding: 0;
}

.afafka-required-summary li {
    margin: 3px 0;

    color: #71372f;

    font-size: 13px;
    font-weight: 800;
}

.afafka-dog-form input.afafka-required-error,
.afafka-dog-form select.afafka-required-error {
    border: 2px solid var(--af-danger) !important;

    background: #fff9f7 !important;

    box-shadow:
        0
        0
        0
        3px
        rgba(168, 79, 68, .10) !important;
}

.afafka-file-field.afafka-required-error {
    border-color: var(--af-danger) !important;

    background: #fff7f4 !important;

    box-shadow:
        0
        0
        0
        3px
        rgba(168, 79, 68, .08) !important;
}

.afafka-required-inline {
    margin: 7px 0 10px;

    color: var(--af-danger);

    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}


/* ----------------------------------------------------------
   12. PHOTO UPLOAD
   ---------------------------------------------------------- */

.afafka-file-field {
    position: relative;

    min-height: 230px;

    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin: 0 !important;
    padding: 22px !important;

    border: 2px dashed rgba(90, 50, 31, .22) !important;
    border-radius: 16px !important;

    background:
        linear-gradient(
            180deg,
            #fff,
            var(--af-soft-3)
        ) !important;

    text-align: center;

    cursor: pointer;

    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.afafka-file-field:hover {
    border-color: rgba(90, 50, 31, .42) !important;

    background: #fffdfb !important;

    transform: translateY(-1px);

    box-shadow:
        0 7px 20px
        rgba(67, 35, 21, .06);
}

.afafka-file-field > span {
    margin: 0 0 7px !important;

    color: var(--af-brown) !important;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px !important;
    font-weight: 400 !important;
    line-height: 1.2;
}

.afafka-file-field:not(.has-file)::before {
    content: "" !important;

    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: block !important;

    margin: 0 auto 10px !important;

    border-radius: 50%;

    background-color: var(--af-soft);

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235a321f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V5'/%3E%3Cpath d='m8 9 4-4 4 4'/%3E%3Cpath d='M5 18.5v.5a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-.5'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: center;
    background-size: 23px 23px;

    color: transparent;

    font-size: 0;
}

.afafka-file-field:hover:not(.has-file)::before {
    background-color: #eedccd;

    transform: translateY(-1px);
}

.afafka-file-field.has-file::before {
    content: "✓" !important;

    width: 48px;
    height: 48px;

    display: flex !important;
    align-items: center;
    justify-content: center;

    margin: 0 auto 10px !important;

    border-radius: 50%;

    background: #e1f0e5 !important;

    color: var(--af-success) !important;

    font-size: 21px;
    font-weight: 700;
}

.afafka-file-field input[type="file"] {
    width: auto !important;
    max-width: 100%;

    margin: 6px auto 0;

    color: transparent;

    font-size: 0 !important;

    cursor: pointer;
}

.afafka-file-field input[type="file"]::file-selector-button {
    min-height: 44px;

    margin: 0;
    padding: 10px 18px;

    border: 1px solid rgba(90, 50, 31, .22);
    border-radius: 10px;

    background: var(--af-brown);

    color: #fff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .18s ease,
        transform .18s ease;
}

.afafka-file-field input[type="file"]::file-selector-button:hover {
    background: var(--af-brown-dark);
}

.afafka-file-field > small {
    margin-top: 9px !important;

    color: var(--af-muted) !important;

    font-size: 12px !important;
    line-height: 1.45;
}

.afafka-file-meta {
    width: 100%;

    margin-top: 12px;
    padding: 10px 12px;

    border: 1px solid rgba(55, 112, 69, .16);
    border-radius: 10px;

    background: #f2f8f3;

    color: var(--af-success);

    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;

    text-align: left;
}

.afafka-file-meta:empty {
    display: none;
}

.afafka-file-error {
    width: 100%;

    margin-top: 10px;
    padding: 9px 11px;

    border: 1px solid rgba(168, 79, 68, .22);
    border-radius: 9px;

    background: var(--af-danger-bg);

    color: var(--af-danger);

    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;

    text-align: left;
}

.afafka-file-error[hidden] {
    display: none !important;
}

.afafka-file-preview {
    width: 100%;

    display: none;

    overflow: hidden;

    margin-top: 12px;

    border: 1px solid rgba(90, 50, 31, .12);
    border-radius: 12px;

    background: #fff;
}

.afafka-file-preview.is-visible {
    display: block;
}

.afafka-file-preview img {
    width: 100%;
    max-height: 320px;

    display: block;

    object-fit: contain;

    background: #fff;
}

.afafka-file-field.has-file {
    border-style: solid !important;
    border-color: rgba(55, 112, 69, .25) !important;
}


/* ----------------------------------------------------------
   13. CHECKBOX ROWS
   ---------------------------------------------------------- */

.afafka-check-row {
    display: flex !important;
    align-items: flex-start;

    gap: 10px;

    margin: 14px 0 !important;
    padding: 12px;

    border: 1px solid var(--af-border);
    border-radius: 11px;

    background: #fff;

    cursor: pointer;
}

.afafka-check-row input {
    margin-top: 4px;

    accent-color: var(--af-brown);

    transform: scale(1.15);
}

.afafka-check-row > span {
    display: block !important;

    margin: 0 !important;
}

.afafka-check-row strong {
    display: block;

    color: var(--af-brown);

    font-size: 14px;
}

.afafka-check-row small {
    margin-top: 2px;
}

.afafka-primary-check {
    background: var(--af-soft);
}


/* ----------------------------------------------------------
   14. FORM ACTIONS / EMPTY STATE
   ---------------------------------------------------------- */

.afafka-form-actions {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 18px;
}

.afafka-dog-form .afafka-primary-btn {
    min-height: 48px;

    padding: 11px 20px;

    border-radius: 10px;

    background: var(--af-brown);

    color: #fff;

    font-size: 13px;
    font-weight: 700;
}

.afafka-dog-form .afafka-primary-btn:hover {
    background: var(--af-brown-dark);
}

.afafka-empty-card {
    padding: 42px 22px;

    border: 1px dashed var(--af-border);
    border-radius: 18px;

    background: var(--af-soft-3);

    text-align: center;
}

.afafka-empty-card > div {
    color: var(--af-brown);

    font: 42px Georgia, serif;
}

.afafka-empty-card h3 {
    margin: 7px 0 5px;

    font-size: 29px;
}

.afafka-empty-card p {
    margin: 0;

    color: var(--af-muted);
}


/* ----------------------------------------------------------
   15. OPENAI API KEY PANEL
   ---------------------------------------------------------- */

#owner-edit #afafkaTryOnApiKeyPanel,
#afafkaTryOnApiKeyPanel {
    position: relative;

    width: 100%;
    max-width: none;

    margin: 30px 0 22px;
    padding: 26px 28px;

    border: 1px solid rgba(90, 50, 31, .13);
    border-radius: 20px;

    background: var(--af-soft-3);

    box-shadow:
        0 12px 32px
        rgba(90, 50, 31, .055);
}

#afafkaTryOnApiKeyPanel .afafka-ai-key-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin: 0 0 20px;
}

#afafkaTryOnApiKeyPanel .afafka-ai-key-head-main {
    min-width: 0;
}

#afafkaTryOnApiKeyPanel .afafka-ai-key-kicker {
    display: block;

    margin: 0 0 6px;

    color: var(--af-brown-light);

    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: .16em;
    text-transform: uppercase;
}

#afafkaTryOnApiKeyPanel .afafka-ai-key-head h4 {
    margin: 0;

    color: var(--af-brown);

    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
}

#afafkaTryOnApiKeyPanel .afafka-ai-key-intro {
    max-width: 620px;

    margin: 7px 0 0;

    color: #725d52;

    font-size: 13px;
    line-height: 1.55;
}

#afafkaTryOnApiKeyPanel .afafka-ai-key-badge {
    flex: 0 0 auto;

    min-height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 1px 0 0;
    padding: 5px 11px;

    border: 1px solid rgba(139, 93, 66, .16);
    border-radius: 999px;

    background: #f4e8df;

    color: #7d4a30;

    font-size: 9px;
    font-weight: 800;
    line-height: 1;

    letter-spacing: .07em;
    text-transform: uppercase;
}

#afafkaTryOnApiKeyPanel .afafka-ai-tryon-box {
    margin: 0 0 18px;
    padding: 15px 17px;

    border: 1px solid rgba(139, 93, 66, .10);
    border-radius: 14px;

    background: var(--af-soft);
}

#afafkaTryOnApiKeyPanel .afafka-ai-tryon-label {
    margin: 0 0 7px;

    color: #95603f;

    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: .13em;
    text-transform: uppercase;
}

#afafkaTryOnApiKeyPanel .afafka-profile-tryon-status {
    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;

    color: var(--af-brown);
}

#afafkaTryOnApiKeyPanel .afafka-profile-tryon-status strong,
#afafkaTryOnApiKeyPanel .afafka-profile-tryon-status span {
    display: block;
}

#afafkaTryOnApiKeyPanel .afafka-profile-tryon-status strong {
    margin: 0 0 4px;

    color: var(--af-brown);

    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

#afafkaTryOnApiKeyPanel .afafka-profile-tryon-status span {
    max-width: 720px;

    color: #6d5549;

    font-size: 12px;
    line-height: 1.5;
}

#afafkaTryOnApiKeyPanel .afafka-ai-key-copy {
    margin: 0 0 18px;

    color: #6c574d;

    font-size: 13px;
    line-height: 1.6;
}

#afafkaTryOnApiKeyPanel .afafka-ai-key-copy strong {
    color: var(--af-brown);
}

#afafkaTryOnApiKeyPanel .afafka-ai-key-field {
    margin: 0;
}

#afafkaTryOnApiKeyPanel .afafka-profile-tryon-label {
    display: flex;
    align-items: center;

    gap: 7px;

    margin: 0 0 7px;

    color: var(--af-brown);

    font-size: 13px;
    font-weight: 700;
}

#afafkaTryOnApiKeyPanel .afafka-profile-tryon-label span {
    color: #8b756a;

    font-size: 10px;
    font-weight: 500;

    letter-spacing: .04em;
    text-transform: uppercase;
}

#afafkaTryOnApiKeyPanel .afafka-profile-tryon-input {
    width: 100% !important;
    min-height: 49px !important;

    margin: 0 !important;
    padding: 11px 14px !important;

    border: 1px solid rgba(90, 50, 31, .20) !important;
    border-radius: 11px !important;

    outline: none !important;

    background: #fff !important;

    color: var(--af-brown) !important;

    box-shadow: none !important;

    font-size: 14px !important;
}

#afafkaTryOnApiKeyPanel .afafka-profile-tryon-input:focus {
    border-color: var(--af-brown-light) !important;

    box-shadow:
        0
        0
        0
        3px
        rgba(139, 93, 66, .10) !important;
}

#afafkaTryOnApiKeyPanel .afafka-profile-tryon-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 9px;

    margin: 11px 0 0;
}

#afafkaTryOnApiKeyPanel .afafka-profile-tryon-save,
#afafkaTryOnApiKeyPanel .afafka-profile-tryon-remove,
#afafkaTryOnApiKeyPanel .afafka-ai-key-manage {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 14px;

    border-radius: 9px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;

    text-decoration: none;

    cursor: pointer;
}

#afafkaTryOnApiKeyPanel .afafka-profile-tryon-save {
    border: 1px solid var(--af-brown);

    background: var(--af-brown);

    color: #fff;
}

#afafkaTryOnApiKeyPanel .afafka-profile-tryon-save:hover {
    border-color: #6b402b;

    background: #6b402b;

    color: #fff;
}

#afafkaTryOnApiKeyPanel .afafka-profile-tryon-remove {
    border: 1px solid rgba(90, 50, 31, .18);

    background: #fff;

    color: var(--af-brown);
}

#afafkaTryOnApiKeyPanel .afafka-profile-tryon-remove:hover {
    border-color: rgba(90, 50, 31, .35);

    background: #fff7f2;
}

#afafkaTryOnApiKeyPanel .afafka-ai-key-manage {
    border: 1px solid transparent;

    background: transparent;

    color: #7d4a30;
}

#afafkaTryOnApiKeyPanel .afafka-ai-key-manage:hover {
    background: #f4e8df;

    color: var(--af-brown);
}

#afafkaTryOnApiKeyPanel .afafka-profile-tryon-security {
    margin: 18px 0 0;
    padding: 14px 0 0;

    border-top: 1px solid rgba(90, 50, 31, .09);

    color: #806e64;

    font-size: 11px;
    line-height: 1.6;
}

#afafkaTryOnApiKeyPanel .afafka-profile-tryon-message {
    margin: 12px 0 0;
    padding: 10px 12px;

    border-radius: 10px;

    background: var(--af-success-bg);

    color: var(--af-success);

    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

#afafkaTryOnApiKeyPanel .afafka-profile-tryon-message.is-error {
    background: #fff0ee;

    color: #9a4139;
}

.afafka-single-save-hint {
    margin-top: 6px;

    color: #806e64;

    font-size: 11px;
    line-height: 1.4;
}


/* ----------------------------------------------------------
   16. SIZE GUIDE PREVIEW
   ---------------------------------------------------------- */

.afafka-size-guide-help {
    position: relative;

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 5px;

    margin: 7px 0 14px !important;

    color: var(--af-muted);

    font-size: 12px;
    line-height: 1.45;
}

.afafka-size-guide-prefix {
    color: var(--af-muted);
}

.afafka-size-guide-trigger {
    position: relative;

    display: inline-flex;
}

.afafka-size-guide-link {
    position: relative;

    display: inline-flex;
    align-items: center;

    color: #7d4a30 !important;

    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.4;

    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;

    cursor: pointer;
}

.afafka-size-guide-link:hover {
    color: var(--af-brown) !important;
}

.afafka-size-guide-popover {
    position: absolute;
    z-index: 99999;

    left: 0;
    bottom: calc(100% + 12px);

    width: min(540px, 78vw);

    display: block;

    padding: 13px;

    border: 1px solid rgba(90, 50, 31, .16);
    border-radius: 16px;

    background: #fff;

    box-shadow:
        0 18px 50px
        rgba(67, 35, 21, .18);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform: translateY(7px);

    transition:
        opacity .16s ease,
        visibility .16s ease,
        transform .16s ease;
}

.afafka-size-guide-popover::after {
    content: "";

    position: absolute;

    left: 28px;
    top: 100%;

    width: 12px;
    height: 12px;

    border-right: 1px solid rgba(90, 50, 31, .15);
    border-bottom: 1px solid rgba(90, 50, 31, .15);

    background: #fff;

    transform:
        translateY(-6px)
        rotate(45deg);
}

.afafka-size-guide-trigger:hover .afafka-size-guide-popover,
.afafka-size-guide-trigger:focus-within .afafka-size-guide-popover,
.afafka-size-guide-trigger.is-open .afafka-size-guide-popover {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
}

.afafka-size-guide-popover-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;

    gap: 12px;

    margin: 0 0 9px;
}

.afafka-size-guide-popover-head strong {
    color: var(--af-brown);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 400;
}

.afafka-size-guide-popover-head small {
    margin: 0 !important;

    color: #8b756a !important;

    font-size: 10px !important;

    white-space: nowrap;
}

.afafka-size-guide-popover img {
    width: 100%;
    height: auto;

    display: block;

    border: 1px solid rgba(90, 50, 31, .09);
    border-radius: 11px;

    background: var(--af-soft-3);
}

.afafka-size-guide-popover-note {
    display: block;

    margin: 10px 2px 0;

    color: var(--af-muted);

    font-size: 11px;
    line-height: 1.5;
}

.afafka-size-guide-full-link {
    display: inline-flex;

    margin: 9px 2px 1px;

    color: var(--af-brown) !important;

    font-size: 11px !important;
    font-weight: 800 !important;

    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}


/* ----------------------------------------------------------
   17. WOOCOMMERCE NOTICES
   ---------------------------------------------------------- */

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error {
    font-size: 15px !important;
    line-height: 1.5 !important;

    border-radius: 12px !important;
}


/* ----------------------------------------------------------
   18. TABLET
   ---------------------------------------------------------- */

@media (max-width: 900px) {

    .afafka-dog-card-main {
        grid-template-columns: 1fr;
    }

    .afafka-dog-photo,
    .afafka-dog-photo-empty {
        height: 360px;
    }

    .afafka-dog-facts {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* ----------------------------------------------------------
   19. MOBILE
   ---------------------------------------------------------- */

@media (max-width: 680px) {

    .afafka-account-club {
        font-size: 16px;
    }

    .afafka-club-header-compact {
        width: 100% !important;

        margin-bottom: 16px !important;
        padding: 15px 18px !important;

        border-radius: 15px !important;
    }

    .afafka-club-header-greeting {
        font-size: 19px !important;
    }

    .afafka-header-edit-details {
        position: static !important;

        min-height: 40px !important;

        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        margin-top: 12px !important;
        padding: 9px 14px !important;

        font-size: 13px !important;

        transform: none !important;
    }

    .afafka-owner-card,
    .afafka-section-head,
    .afafka-dog-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .afafka-owner-card .afafka-outline-btn,
    .afafka-section-head .afafka-outline-btn,
    .afafka-dog-title-row .afafka-outline-btn {
        width: 100%;
    }

    .afafka-dog-photo,
    .afafka-dog-photo-empty {
        height: 320px;
    }

    .afafka-dog-content {
        padding: 18px 15px;
    }

    .afafka-dog-title-row h3 {
        font-size: 32px;
    }

    .afafka-dog-facts {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .afafka-dog-edit-panel,
    .afafka-add-dog-panel {
        padding: 18px 14px !important;
    }

    .afafka-edit-section {
        margin: 19px 0 13px;
    }

    .afafka-edit-section h4 {
        font-size: 23px;
    }

    .afafka-form-grid-2,
    .afafka-form-grid-3,
    .afafka-segmented {
        grid-template-columns: 1fr;
    }

    .afafka-dog-form input[type="text"],
    .afafka-dog-form input[type="number"],
    .afafka-dog-form input[type="date"],
    .afafka-dog-form input[type="email"],
    .afafka-dog-form select,
    .afafka-account-edit-panel input[type="text"],
    .afafka-account-edit-panel input[type="email"],
    .afafka-account-edit-panel input[type="password"] {
        font-size: 16px;
    }

    .afafka-measurements-panel {
        padding: 11px;
    }

    .afafka-measurements-panel > .afafka-form-grid-2:first-child {
        grid-template-columns: 1fr !important;
    }

    .afafka-inline-size-result.afafka-live-size-result {
        padding: 18px 13px;
    }

    .afafka-inline-size-result.afafka-live-size-result > strong {
        font-size: 42px;
    }

    .afafka-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .afafka-primary-btn,
    .afafka-text-btn {
        width: 100%;
    }

    .afafka-required-summary {
        padding: 15px 14px;
    }

    .afafka-file-field {
        min-height: 200px;

        padding: 18px 14px !important;
    }

    .afafka-file-field > span {
        font-size: 19px !important;
    }

    .afafka-file-field:not(.has-file)::before,
    .afafka-file-field.has-file::before {
        width: 46px;
        height: 46px;

        flex-basis: 46px;
    }

    .afafka-file-field:not(.has-file)::before {
        background-size: 22px 22px;
    }

    .afafka-file-field input[type="file"]::file-selector-button {
        min-height: 46px;

        font-size: 14px;
    }

    .afafka-file-preview img {
        max-height: 260px;
    }

    #owner-edit .afafka-owner-form-actions {
        align-items: stretch !important;
        flex-direction: column !important;

        gap: 10px !important;
    }

    #owner-edit .afafka-owner-form-actions button[type="submit"],
    #owner-edit .afafka-owner-form-actions input[type="submit"] {
        width: 100% !important;
    }

    #afafkaTryOnApiKeyPanel {
        margin-top: 24px;
        padding: 19px 16px;

        border-radius: 16px;
    }

    #afafkaTryOnApiKeyPanel .afafka-ai-key-head {
        gap: 12px;
    }

    #afafkaTryOnApiKeyPanel .afafka-ai-key-head h4 {
        font-size: 20px;
    }

    #afafkaTryOnApiKeyPanel .afafka-ai-key-badge {
        min-height: 25px;

        padding: 4px 8px;

        font-size: 8px;
    }

    #afafkaTryOnApiKeyPanel .afafka-ai-tryon-box {
        padding: 13px;
    }

    #afafkaTryOnApiKeyPanel .afafka-profile-tryon-actions {
        align-items: stretch;
        flex-direction: column;
    }

    #afafkaTryOnApiKeyPanel .afafka-profile-tryon-actions button,
    #afafkaTryOnApiKeyPanel .afafka-profile-tryon-actions a {
        width: 100%;
    }

    .afafka-size-guide-help {
        display: block;

        margin-top: 8px !important;
    }

    .afafka-size-guide-prefix {
        display: block;

        margin-bottom: 3px;
    }

    .afafka-size-guide-trigger {
        position: static;

        display: inline;
    }

    .afafka-size-guide-popover {
        position: fixed;
        z-index: 999999;

        top: auto;
        right: 12px;
        bottom: 18px;
        left: 12px;

        width: auto;
        max-height: calc(100vh - 60px);

        overflow-y: auto;

        padding: 12px;

        border-radius: 15px;

        transform: translateY(15px);
    }

    .afafka-size-guide-trigger.is-open .afafka-size-guide-popover {
        transform: translateY(0);
    }

    .afafka-size-guide-popover::after {
        display: none;
    }

    .afafka-size-guide-popover-head {
        align-items: flex-start;
        flex-direction: column;

        gap: 2px;
    }

    .afafka-size-guide-popover-head strong {
        font-size: 18px;
    }

    .afafka-size-guide-full-link {
        min-height: 42px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin-top: 11px;

        border: 1px solid rgba(90, 50, 31, .18);
        border-radius: 9px;

        background: var(--af-soft-3);

        text-decoration: none !important;
    }
}

/* ===== AFAFKA SOFT ACTION BUTTONS START ===== */

.afafka-header-edit-details,
.afafka-section-head .afafka-outline-btn,
.afafka-dog-title-row .afafka-outline-btn {

    border:
        1px solid
        #c9a88f !important;

    background:
        #ead7c8 !important;

    color:
        #5a321f !important;

    box-shadow:
        0 2px 7px
        rgba(90,50,31,.07) !important;

    font-weight:
        700 !important;
}


.afafka-header-edit-details:hover,
.afafka-section-head .afafka-outline-btn:hover,
.afafka-dog-title-row .afafka-outline-btn:hover {

    border-color:
        #b98f72 !important;

    background:
        #dfc4b1 !important;

    color:
        #432315 !important;

    box-shadow:
        0 3px 9px
        rgba(90,50,31,.10) !important;
}


.afafka-header-edit-details:focus,
.afafka-section-head .afafka-outline-btn:focus,
.afafka-dog-title-row .afafka-outline-btn:focus {

    border-color:
        #b98f72 !important;

    background:
        #ead7c8 !important;

    color:
        #432315 !important;

    outline:
        none !important;

    box-shadow:
        0 0 0 3px
        rgba(139,93,66,.12) !important;
}


/* mobile */

@media (max-width: 680px) {

    .afafka-header-edit-details,
    .afafka-section-head .afafka-outline-btn,
    .afafka-dog-title-row .afafka-outline-btn {

        background:
            #ead7c8 !important;

        border-color:
            #c9a88f !important;

        color:
            #5a321f !important;
    }
}

/* ===== AFAFKA SOFT ACTION BUTTONS END ===== */

/* ===== AFAFKA PHOTO CARDS WELCOME START ===== */

.afafka-photo-card {
    position: relative;
    min-height: 255px !important;
    justify-content: flex-start !important;
    padding: 20px 18px 18px !important;
    text-align: center !important;
}

.afafka-photo-top-hero {
    position: relative;
    width: 100%;
    height: 68px;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afafka-photo-card-main .afafka-photo-top-hero::before,
.afafka-photo-card-main .afafka-photo-top-hero::after {
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #eadccf;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235a321f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V5'/%3E%3Cpath d='m8 9 4-4 4 4'/%3E%3Cpath d='M5 18.5v.5a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    position: absolute;
    top: 17px;
}

.afafka-photo-card-main .afafka-photo-top-hero::before {
    left: calc(50% - 78px);
}

.afafka-photo-card-main .afafka-photo-top-hero::after {
    right: calc(50% - 78px);
}

.afafka-photo-dog-svg {
    width: auto;
    height: 58px;
    max-width: 88px;
    display: block;
}

.afafka-photo-upload-symbol {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #eadccf;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23' height='23' viewBox='0 0 24 24' fill='none' stroke='%235a321f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V5'/%3E%3Cpath d='m8 9 4-4 4 4'/%3E%3Cpath d='M5 18.5v.5a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
}

.afafka-photo-card > span {
    margin: 0 0 6px !important;
    color: #5a321f !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
}

.afafka-photo-card > span em {
    color: #8b5d42 !important;
    font-style: normal !important;
}

.afafka-photo-card input[type="file"] {
    margin: 8px auto 0 !important;
}

.afafka-photo-card > small {
    margin-top: 8px !important;
    color: #7a665c !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.afafka-photo-bottom-note {
    margin-top: 10px;
    color: #8a756b;
    font-size: 12px;
    line-height: 1.45;
}

.afafka-photo-card .afafka-file-meta {
    margin-top: 10px;
}

.afafka-photo-card .afafka-file-preview {
    margin-top: 12px;
}

@media (max-width: 680px) {
    .afafka-photo-card {
        min-height: 230px !important;
        padding: 16px 14px 16px !important;
    }

    .afafka-photo-card > span {
        font-size: 18px !important;
    }

    .afafka-photo-dog-svg {
        height: 52px;
    }

    .afafka-photo-card-main .afafka-photo-top-hero::before {
        left: calc(50% - 68px);
    }

    .afafka-photo-card-main .afafka-photo-top-hero::after {
        right: calc(50% - 68px);
    }
}

/* ===== AFAFKA PHOTO CARDS WELCOME END ===== */


/* ===== AFAFKA PHOTO ICON CLEAN FIX START ===== */

/* прибираємо СТАРУ верхню upload-іконку */
.afafka-photo-card::before {
    display: none !important;
    content: none !important;
}


/* один чистий ряд: upload — dog — upload */
.afafka-photo-card .afafka-photo-top-hero {
    position: relative !important;

    width: 170px !important;
    height: 72px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin:
        2px
        auto
        10px !important;
}


/* песик */
.afafka-photo-card .afafka-photo-dog-svg {
    width: auto !important;
    height: 64px !important;
    max-width: 82px !important;

    display: block !important;
}


/* upload icons зліва / справа */
.afafka-photo-card .afafka-photo-top-hero::before,
.afafka-photo-card .afafka-photo-top-hero::after {
    content: "" !important;

    position: absolute !important;
    top: 50% !important;

    width: 36px !important;
    height: 36px !important;

    border-radius: 50% !important;

    background-color:
        #f3e6db !important;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235a321f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V5'/%3E%3Cpath d='m8 9 4-4 4 4'/%3E%3Cpath d='M5 18.5v.5a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-.5'/%3E%3C/svg%3E") !important;

    background-repeat:
        no-repeat !important;

    background-position:
        center !important;

    background-size:
        18px 18px !important;

    transform:
        translateY(-50%) !important;
}


.afafka-photo-card .afafka-photo-top-hero::before {
    left:
        0 !important;
}


.afafka-photo-card .afafka-photo-top-hero::after {
    right:
        0 !important;
}


/* прибираємо старий окремий круг у Second photo */
.afafka-photo-upload-symbol {
    display:
        none !important;
}


/* компактніший і чистіший вигляд */
.afafka-photo-card {
    min-height:
        265px !important;

    padding:
        20px
        18px !important;
}


.afafka-photo-card > span {
    margin-top:
        0 !important;

    font-size:
        20px !important;
}


/* ===== AFAFKA PHOTO ICON CLEAN FIX END ===== */


/* ===== AFAFKA OWNER PHOTO START ===== */

.afafka-owner-photo-wrap {
    display: grid;
    grid-template-columns: 112px 1fr;

    gap: 18px;

    align-items: center;

    margin:
        0
        0
        22px;

    padding:
        16px;

    border:
        1px solid
        rgba(90,50,31,.12);

    border-radius:
        14px;

    background:
        #fffaf7;
}


.afafka-owner-photo-current {
    width: 104px;
    height: 104px;

    overflow: hidden;

    border:
        1px solid
        rgba(90,50,31,.14);

    border-radius:
        50%;

    background:
        #f3e6db;
}


.afafka-owner-photo-img {
    width: 100% !important;
    height: 100% !important;

    display: block !important;

    object-fit: cover !important;

    border-radius: 50% !important;
}


.afafka-owner-photo-upload {
    position: relative;

    min-height: 104px;

    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    margin: 0 !important;
    padding: 12px 14px !important;

    border:
        1px dashed
        rgba(90,50,31,.22);

    border-radius:
        12px;

    background:
        #ffffff;

    cursor: pointer;
}


.afafka-owner-photo-upload input[type="file"] {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    cursor: pointer;
}


.afafka-owner-photo-title {
    margin:
        0
        0
        2px !important;

    color:
        #8b5d42 !important;

    font-size:
        10px !important;

    font-weight:
        800 !important;

    letter-spacing:
        .10em;

    text-transform:
        uppercase;
}


.afafka-owner-photo-upload strong {
    color:
        #5a321f;

    font-size:
        16px;

    font-weight:
        700;
}


.afafka-owner-photo-upload small {
    margin-top:
        3px !important;

    color:
        #806e65;

    font-size:
        11px !important;
}


.afafka-owner-photo-button {
    display:
        inline-flex !important;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        36px;

    margin:
        9px
        0
        0 !important;

    padding:
        7px
        13px;

    border-radius:
        9px;

    background:
        #ead7c8;

    color:
        #5a321f !important;

    font-size:
        12px !important;

    font-weight:
        800 !important;
}


.afafka-owner-photo-upload:hover {
    border-color:
        rgba(90,50,31,.38);

    background:
        #fffdfb;
}


@media (max-width: 680px) {

    .afafka-owner-photo-wrap {
        grid-template-columns:
            1fr;

        justify-items:
            center;

        text-align:
            center;
    }


    .afafka-owner-photo-upload {
        width:
            100%;

        align-items:
            center;
    }

}

/* ===== AFAFKA OWNER PHOTO END ===== */


/* ===== AFAFKA OWNER PHOTO CONTROLS CSS START ===== */

.afafka-owner-photo-status {
    margin-top:
        8px;

    padding:
        9px
        11px;

    border-radius:
        9px;

    background:
        #f5ebe3;

    color:
        #6f5549;

    font-size:
        11px;

    line-height:
        1.45;
}


.afafka-owner-photo-status strong,
.afafka-owner-photo-status span {
    display:
        block;
}


.afafka-owner-photo-status strong {
    color:
        #5a321f;

    font-size:
        12px;

    font-weight:
        800;
}


.afafka-owner-photo-status.has-new {
    background:
        #edf7ef;

    color:
        #356843;
}


.afafka-owner-photo-status.has-new strong {
    color:
        #356843;
}


.afafka-owner-photo-status.is-error {
    background:
        #fff1ee;

    color:
        #9a4139;
}


.afafka-owner-photo-status.is-error strong {
    color:
        #9a4139;
}


.afafka-owner-photo-actions {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        8px;

    margin-top:
        10px;
}


.afafka-owner-photo-change,
.afafka-owner-photo-remove {

    min-height:
        38px;

    padding:
        8px
        13px;

    border-radius:
        9px;

    font-size:
        12px;

    font-weight:
        800;

    cursor:
        pointer;
}


.afafka-owner-photo-change {
    border:
        1px solid
        #c9a88f;

    background:
        #ead7c8;

    color:
        #5a321f;
}


.afafka-owner-photo-change:hover {
    background:
        #dfc4b1;
}


.afafka-owner-photo-remove {
    border:
        1px solid
        rgba(154,65,57,.20);

    background:
        #fff;

    color:
        #914238;
}


.afafka-owner-photo-remove:hover {
    background:
        #fff1ee;
}


@media (max-width: 680px) {

    .afafka-owner-photo-actions {
        width:
            100%;
    }


    .afafka-owner-photo-change,
    .afafka-owner-photo-remove {
        flex:
            1 1 auto;
    }

}

/* ===== AFAFKA OWNER PHOTO CONTROLS CSS END ===== */


/* ===== AFAFKA OWNER PHOTO SMALL ICONS CSS START ===== */

.afafka-owner-photo-current {
    position: relative !important;
    overflow: visible !important;
}


/* прибираємо великий ряд кнопок */
.afafka-owner-photo-actions {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    display: block !important;

    margin: 0 !important;

    pointer-events: none !important;
}


/* обидві маленькі іконки */
.afafka-owner-photo-change,
.afafka-owner-photo-remove {

    position: absolute !important;

    width: 32px !important;
    height: 32px !important;

    min-width: 32px !important;
    min-height: 32px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;

    border-radius: 50% !important;

    background: #ead7c8 !important;

    border:
        1px solid
        #c9a88f !important;

    color:
        #5a321f !important;

    box-shadow:
        0 2px 7px
        rgba(90,50,31,.15) !important;

    font-size: 0 !important;

    pointer-events: auto !important;

    cursor: pointer !important;
}


/* Change — справа внизу */
.afafka-owner-photo-change {

    right:
        -5px !important;

    bottom:
        -5px !important;
}


/* Remove — справа зверху */
.afafka-owner-photo-remove {

    right:
        -5px !important;

    top:
        -5px !important;

    background:
        #fff5f2 !important;

    border-color:
        rgba(154,65,57,.25) !important;

    color:
        #914238 !important;
}


.afafka-owner-photo-change:hover {
    background:
        #dfc4b1 !important;
}


.afafka-owner-photo-remove:hover {
    background:
        #ffe9e5 !important;
}


/* SVG */
.afafka-owner-photo-change svg,
.afafka-owner-photo-remove svg {

    width:
        16px !important;

    height:
        16px !important;

    display:
        block !important;

    fill:
        none !important;

    stroke:
        currentColor !important;

    stroke-width:
        1.8 !important;

    stroke-linecap:
        round !important;

    stroke-linejoin:
        round !important;
}


/* ===== AFAFKA OWNER PHOTO SMALL ICONS CSS END ===== */

/* ===== AFAFKA OWNER PHOTO FINAL POSITION ===== */

/* іконки трохи правіше від фото */
.afafka-owner-photo-change {
    right: -14px !important;
    bottom: -5px !important;
}

.afafka-owner-photo-remove {
    right: -14px !important;
    top: -5px !important;
}

/* прибрати Current profile photo */
.afafka-owner-photo-status {
    display: none !important;
}

/* ===== /AFAFKA OWNER PHOTO FINAL POSITION ===== */


/* ===== AFAFKA OWNER PHOTO ICONS FARTHER RIGHT ===== */

.afafka-owner-photo-change {
    right: -28px !important;
    bottom: -5px !important;
}

.afafka-owner-photo-remove {
    right: -28px !important;
    top: -5px !important;
}

/* ===== /AFAFKA OWNER PHOTO ICONS FARTHER RIGHT ===== */


/* ===== AFAFKA OWNER PHOTO — HIDE SMALL ICONS ===== */

.afafka-owner-photo-change,
.afafka-owner-photo-remove,
.afafka-owner-photo-actions {
    display: none !important;
}

/* ===== /AFAFKA OWNER PHOTO — HIDE SMALL ICONS ===== */


/* ===== AFAFKA OWNER PHOTO — RESTORE ORIGINAL SPACING ===== */

.afafka-owner-photo-wrap {
    grid-template-columns: 112px 1fr !important;
    gap: 18px !important;
}

.afafka-owner-photo-current {
    width: 104px !important;
    height: 104px !important;

    overflow: hidden !important;

    margin: 0 !important;
}

.afafka-owner-photo-upload {
    margin: 0 !important;
}

/* іконок більше немає — ніякого запасу під них */
.afafka-owner-photo-actions,
.afafka-owner-photo-change,
.afafka-owner-photo-remove {
    display: none !important;
}

/* ===== /AFAFKA OWNER PHOTO — RESTORE ORIGINAL SPACING ===== */


/* ===== OWNER PHOTO — REMOVE RIGHT GAP ===== */

.afafka-owner-photo-wrap {
    grid-template-columns: 104px 1fr !important;
    gap: 8px !important;
}

.afafka-owner-photo-current {
    width: 104px !important;
    height: 104px !important;
    margin: 0 !important;
}

.afafka-owner-photo-upload {
    margin: 0 !important;
}

/* ===== /OWNER PHOTO — REMOVE RIGHT GAP ===== */


/* ===== OWNER PHOTO — EQUAL LEFT / RIGHT SPACING ===== */

.afafka-owner-photo-wrap {
    grid-template-columns: 104px 1fr !important;
    gap: 16px !important;
}

.afafka-owner-photo-current {
    width: 104px !important;
    height: 104px !important;
    margin: 0 !important;
}

/* ===== /OWNER PHOTO — EQUAL LEFT / RIGHT SPACING ===== */

