/* AuctionPage WordPress Plugin Styles
   Uses --ap-* custom properties so nothing conflicts with the host theme.
   Compatible with any WordPress theme, including the bundled NPO theme. */

:root {
    --ap-primary:       #2a7d4f;
    --ap-primary-dark:  #1f5e3a;
    --ap-accent:        #f4a932;
    --ap-secondary:     #1a3a5c;
    --ap-surface:       #ffffff;
    --ap-bg:            #f6f8f5;
    --ap-text:          #222222;
    --ap-muted:         #666666;
    --ap-border:        #e0e0e0;
    --ap-error:         #c0392b;
    --ap-success:       #27ae60;
    --ap-radius:        8px;
    --ap-shadow:        0 2px 12px rgba(0,0,0,.08);
    --ap-font-ui:       'Helvetica Neue', Arial, sans-serif;
}

/* ============================================================
   Listings Grid
   ============================================================ */
.ap-listings-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(3, 1fr);
}
.ap-listings-grid.ap-cols-2 { grid-template-columns: repeat(2, 1fr); }

.ap-empty,
.ap-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ap-muted);
    font-family: var(--ap-font-ui);
    font-size: .95rem;
}
.ap-error { color: var(--ap-error); }

/* ---- Card ---- */
.ap-listing-card {
    background: var(--ap-surface);
    border-radius: var(--ap-radius);
    box-shadow: var(--ap-shadow);
    display: flex;
    flex-direction: column;
    overflow: visible;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.ap-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.ap-card-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--ap-radius) var(--ap-radius) 0 0;
}

/* ---- 100% donation badge wrapper (handles positioning + tooltip) ---- */
.ap-badge-wrap {
    position: absolute;
    top: -20px;
    right: -14px;
    z-index: 5;
    cursor: default;
}

.ap-badge-wrap::after {
    content: '100% of proceeds go to the nonprofit';
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    width: 172px;
    padding: .42rem .6rem;
    background: rgba(22, 14, 2, .92);
    color: #fff;
    font-family: var(--ap-font-ui);
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 6px;
    text-align: center;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .18s, transform .18s;
    z-index: 10;
}

.ap-badge-wrap:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Star badge ---- */
.ap-card-hero-donation-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    font-family: var(--ap-font-ui);
    color: #2c1300;
    background:
        radial-gradient(ellipse at 38% 28%, rgba(255,255,255,.6) 0%, transparent 50%),
        linear-gradient(160deg, #fff3b0 0%, #ffd52e 28%, #f9b800 58%, #c96e00 100%);
    clip-path: polygon(50% 0%, 62% 34%, 98% 34%, 69% 55%, 80% 90%, 50% 70%, 20% 90%, 31% 55%, 2% 34%, 38% 34%);
    transform: rotate(18deg);
    animation: ap-badge-glow 2.4s ease-in-out infinite;
    pointer-events: none;
}

.ap-badge-num {
    font-style: normal;
    font-size: 1.28rem;
    font-weight: 900;
    line-height: 1;
    transform: rotate(-18deg);
}

@keyframes ap-badge-glow {
    0%, 100% {
        filter:
            drop-shadow(1px 2px 0px rgba(110,55,0,.95))
            drop-shadow(2px 4px 0px rgba(90,44,0,.8))
            drop-shadow(3px 6px 0px rgba(70,34,0,.65))
            drop-shadow(4px 9px 0px rgba(50,24,0,.5))
            drop-shadow(5px 14px 16px rgba(0,0,0,.55))
            drop-shadow(0 0 8px rgba(245,185,0,.55));
    }
    50% {
        filter:
            drop-shadow(1px 2px 0px rgba(110,55,0,.95))
            drop-shadow(2px 4px 0px rgba(90,44,0,.8))
            drop-shadow(3px 6px 0px rgba(70,34,0,.65))
            drop-shadow(4px 9px 0px rgba(50,24,0,.5))
            drop-shadow(5px 16px 20px rgba(0,0,0,.52))
            drop-shadow(0 0 26px rgba(255,210,0,1))
            drop-shadow(0 0 12px rgba(255,238,80,.78));
    }
}

.ap-listing-card--full-donation {
    box-shadow: var(--ap-shadow), 0 0 0 2px rgba(231,178,21,.5);
}
.ap-listing-card--full-donation:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.12), 0 0 0 2px rgba(231,178,21,.78);
}

.ap-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}
.ap-card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ap-muted);
    font-family: var(--ap-font-ui);
    font-size: .85rem;
}

.ap-image-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 160px));
    gap: .55rem;
    margin-top: .65rem;
}

.ap-image-preview-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
}

.ap-image-preview {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--ap-radius);
    border: 1px solid var(--ap-border);
    background: #eee;
}

.ap-image-preview-remove {
    position: absolute;
    top: .3rem;
    right: .3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.92) !important;
    border-radius: 50%;
    background: rgba(24,31,27,.82) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.26);
    color: #fff !important;
    font-family: var(--ap-font-ui);
    font-size: .78rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.ap-image-preview-remove:hover,
.ap-image-preview-remove:focus {
    background: var(--ap-error) !important;
    color: #fff !important;
    outline: 2px solid rgba(255,255,255,.9);
    outline-offset: 1px;
}

.ap-card-body {
    padding: 1.1rem 1.25rem .75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.ap-card-title {
    font-family: var(--ap-font-ui);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.ap-card-title a { color: var(--ap-secondary); text-decoration: none; }
.ap-card-title a:hover { color: var(--ap-primary); }

.ap-card-tags { display: flex; flex-wrap: wrap; gap: .35rem; }

.ap-tag {
    background: #eef5f0;
    color: var(--ap-primary);
    font-family: var(--ap-font-ui);
    font-size: .7rem;
    font-weight: 600;
    padding: .15rem .5rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ap-card-tag-link {
    border: 0;
    cursor: pointer;
    line-height: 1.2;
    appearance: none;
}

.ap-card-tag-link:hover,
.ap-card-tag-link:focus {
    background: var(--ap-primary);
    color: #fff;
}

.ap-card-tag-link:focus {
    outline: 2px solid var(--ap-secondary);
    outline-offset: 2px;
}

.ap-card-bid { margin-top: auto; }
.ap-card-bid-label {
    font-family: var(--ap-font-ui);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ap-muted);
}
.ap-card-bid-amount {
    font-family: var(--ap-font-ui);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ap-secondary);
    line-height: 1.1;
}
.ap-card-bid-count {
    font-family: var(--ap-font-ui);
    font-size: .8rem;
    color: var(--ap-muted);
}
.ap-card-donation {
    margin-top: .18rem;
    font-family: var(--ap-font-ui);
    font-size: .8rem;
    color: var(--ap-primary-dark);
    font-weight: 700;
}
.ap-npo-link {
    margin-left: .25rem;
    color: var(--ap-primary);
    font-weight: 700;
    text-decoration: none;
}
.ap-npo-link:hover { text-decoration: underline; }

.ap-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .5rem;
    padding-top: .6rem;
    border-top: 1px solid var(--ap-border);
}

.ap-badge {
    font-family: var(--ap-font-ui);
    font-size: .7rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ap-badge--active  { background: #e3f5eb; color: var(--ap-primary); }
.ap-badge--ended   { background: #f0f0f0; color: #888; }
.ap-badge--pending { background: #fff8e1; color: #b06000; }
.ap-badge--preview { background: #e8f0fe; color: #1a56b0; }

.ap-card-countdown,
.ap-countdown {
    font-family: var(--ap-font-ui);
    font-size: .85rem;
    font-weight: 600;
    color: var(--ap-secondary);
}
.ap-countdown--urgent  { color: var(--ap-error); }
.ap-countdown--ended   { color: var(--ap-muted); }

.ap-card-cta {
    display: block;
    margin: 0 1.25rem 1.25rem;
    text-align: center;
}

/* ---- Listings top bar ---- */
.ap-listings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    padding: .8rem 1rem;
    margin-bottom: 1.1rem;
    background: #e8f2ec;
    border: 1px solid #d3e2d7;
    border-radius: var(--ap-radius);
}

.ap-listings-actions {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.ap-listings-search {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.ap-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ap-listings-search-input {
    width: min(28vw, 240px);
    min-width: 150px;
    min-height: 39px;
    padding: .52rem .75rem;
    border: 1.5px solid var(--ap-border);
    border-radius: var(--ap-radius);
    font-family: var(--ap-font-ui);
    font-size: .92rem;
    color: var(--ap-text);
    background: var(--ap-surface);
    box-sizing: border-box;
    transition: border-color .15s;
}

.ap-listings-search-input:focus {
    outline: none;
    border-color: var(--ap-primary);
}

.ap-event-summary {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin: 0 0 1.15rem;
    padding: 1rem 1.1rem;
    border: 1px solid #d3e2d7;
    border-radius: var(--ap-radius);
    background: #f6faf8;
}

.ap-event-image-wrap {
    flex: 0 0 clamp(130px, 18vw, 220px);
    align-self: stretch;
    min-height: 140px;
    margin: -1rem 0 -1rem -1.1rem;
    overflow: hidden;
    border-radius: var(--ap-radius) 0 0 var(--ap-radius);
    background: #eef4f0;
}

.ap-event-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap-event-summary-content {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    flex: 1 1 auto;
    min-width: 0;
}

.ap-event-summary-main {
    min-width: 0;
}

.ap-event-title {
    margin: 0 0 .25rem;
    color: var(--ap-secondary);
    font-family: var(--ap-font-ui);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.ap-event-description {
    margin: 0 0 .55rem;
    color: var(--ap-text);
    font-family: var(--ap-font-ui);
    font-size: .92rem;
    line-height: 1.45;
}

.ap-event-window {
    display: grid;
    gap: .22rem;
    color: var(--ap-muted);
    font-family: var(--ap-font-ui);
    font-size: .83rem;
    font-weight: 600;
}

.ap-event-window-row {
    display: block;
}

.ap-event-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    min-width: min(260px, 100%);
    padding: .75rem .9rem;
    border-radius: var(--ap-radius);
    background: #fff;
    color: var(--ap-secondary);
    font-family: var(--ap-font-ui);
    font-size: .95rem;
    font-weight: 800;
    text-align: center;
}

.ap-event-status-label,
.ap-event-countdown {
    display: block;
    text-align: center;
}

.ap-event-status--ended {
    color: var(--ap-muted);
}

.ap-event-countdown {
    color: var(--ap-primary-dark);
    font-size: 1.35rem;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ap-listings-search-submit {
    padding-inline: 1rem;
}

.ap-auction-scope-tabs {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1.15rem;
    padding: .3rem;
    background: #eef4f0;
    border: 1px solid #dbe7dd;
    border-radius: calc(var(--ap-radius) + 2px);
}

.ap-auction-scope-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: .42rem .9rem;
    border-radius: 7px;
    color: var(--ap-secondary);
    text-decoration: none;
    font-family: var(--ap-font-ui);
    font-size: .88rem;
    font-weight: 700;
    transition: background .14s ease, color .14s ease, box-shadow .14s ease;
}
.ap-auction-scope-tab:hover {
    background: #e3efe6;
    color: var(--ap-primary-dark);
    text-decoration: none;
}
.ap-auction-scope-tab.is-active {
    background: #fff;
    color: var(--ap-primary-dark);
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.ap-active-tag-filter {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    width: fit-content;
    max-width: 100%;
    margin: -.35rem 0 1rem;
    padding: .42rem .55rem .42rem .7rem;
    border: 1px solid #dbe7dd;
    border-radius: var(--ap-radius);
    background: #f6faf8;
    color: var(--ap-secondary);
    font-family: var(--ap-font-ui);
    font-size: .86rem;
}

.ap-active-tag-filter-label {
    color: var(--ap-muted);
    font-weight: 600;
}

.ap-active-tag-filter-name {
    min-width: 0;
    color: var(--ap-primary);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.ap-active-tag-filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ap-primary);
    color: #fff;
    font-family: var(--ap-font-ui);
    font-size: .78rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.ap-active-tag-filter-clear:hover,
.ap-active-tag-filter-clear:focus {
    background: var(--ap-primary-dark);
}

.ap-active-tag-filter-clear:focus {
    outline: 2px solid var(--ap-secondary);
    outline-offset: 2px;
}

.ap-listings-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin: 1.2rem 0 .2rem;
    font-family: var(--ap-font-ui);
}

.ap-pagination-current,
.ap-pagination-link {
    min-width: 38px;
    min-height: 38px;
    padding: .45rem .7rem;
    border-radius: var(--ap-radius);
    font-family: var(--ap-font-ui);
    font-size: .9rem;
    font-weight: 800;
    line-height: 1;
}

.ap-pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ap-primary);
    border: 2px solid var(--ap-primary);
    color: #fff;
}

.ap-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--ap-primary);
    color: var(--ap-primary);
    cursor: pointer;
}

.ap-pagination-link:hover,
.ap-pagination-link:focus {
    background: var(--ap-primary);
    color: #fff;
    outline: none;
}

/* ============================================================
   Single listing
   ============================================================ */
.ap-single-listing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
    max-width: 1000px;
    margin: 0 auto;
}
.ap-listing-images  { grid-column: 1; grid-row: 1; }
.ap-listing-details { grid-column: 2; grid-row: 1; }
.ap-listing-description { grid-column: 1; }
.ap-bid-history         { grid-column: 2; overflow-x: auto; }

.ap-listing-main-image {
    width: 100%;
    border-radius: var(--ap-radius);
    object-fit: contain;
    aspect-ratio: 4/3;
    background: #f3f3f3;
}

.ap-listing-thumbs {
    display: flex;
    gap: .5rem;
    margin-top: .6rem;
    flex-wrap: wrap;
}
.ap-listing-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .15s;
}
.ap-listing-thumb--active,
.ap-listing-thumb:hover { border-color: var(--ap-primary); }

.ap-listing-title {
    font-family: var(--ap-font-ui);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ap-secondary);
    margin: 0 0 .75rem;
    line-height: 1.2;
}

.ap-listing-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }

.ap-seller-block {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .2rem .8rem;
    align-items: center;
    padding: .85rem 1rem;
    margin: 0 0 1rem;
    border: 1px solid #dfe9e2;
    border-radius: var(--ap-radius);
    background: #f7faf8;
}
.ap-seller-label {
    grid-column: 1 / -1;
    font-family: var(--ap-font-ui);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ap-primary);
}
.ap-seller-name {
    min-width: 0;
    color: var(--ap-secondary);
    font-family: var(--ap-font-ui);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.ap-message-seller-link {
    color: var(--ap-primary-dark);
    font-family: var(--ap-font-ui);
    font-size: .86rem;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    white-space: nowrap;
}
.ap-message-seller-link:hover,
.ap-message-seller-link:focus {
    color: var(--ap-primary);
    background: #eef5f0;
    border-radius: 4px;
    outline: 2px solid rgba(42, 125, 79, .22);
    outline-offset: 2px;
}

/* ---- Live bid block ---- */
.ap-live-bid-block {
    background: var(--ap-bg);
    border-radius: var(--ap-radius);
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.ap-live-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.ap-live-item { display: flex; flex-direction: column; gap: .15rem; }
.ap-live-label {
    font-family: var(--ap-font-ui);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ap-muted);
}
.ap-current-bid {
    font-family: var(--ap-font-ui);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ap-secondary);
    line-height: 1;
}
.ap-no-bids { font-size: 1rem; font-weight: 600; color: var(--ap-muted); }
.ap-bid-count {
    font-family: var(--ap-font-ui);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ap-secondary);
}
.ap-single-listing .ap-countdown {
    font-family: var(--ap-font-ui);
    font-size: 1.3rem;
    font-weight: 700;
}

/* Flash animation on new bid */
@keyframes ap-flash-green {
    0%   { background: #c8f5da; }
    100% { background: transparent; }
}
.ap-flash { animation: ap-flash-green .9s ease-out; }

/* ---- Bid form ---- */
.ap-bid-section { margin-bottom: 1.25rem; }

.ap-bid-form { display: flex; flex-direction: column; gap: .6rem; }

.ap-bid-min-hint {
    font-family: var(--ap-font-ui);
    font-size: .85rem;
    color: var(--ap-muted);
    margin: 0;
}
.ap-min-bid-display { color: var(--ap-secondary); }

.ap-bid-help-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
}

.ap-bid-help-text {
    font-family: var(--ap-font-ui);
    font-size: .83rem;
    color: var(--ap-muted);
}

.ap-bid-info {
    position: relative;
    margin: 0;
}

.ap-bid-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--ap-border);
    background: #fff;
    color: var(--ap-secondary);
    font-family: var(--ap-font-ui);
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    list-style: none;
}
.ap-bid-info-btn::-webkit-details-marker { display: none; }
.ap-bid-info-btn:hover { border-color: var(--ap-primary); color: var(--ap-primary); }

.ap-bid-info-pop {
    position: absolute;
    right: 0;
    top: calc(100% + .4rem);
    width: min(320px, calc(100vw - 3rem));
    padding: .65rem .75rem;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.14);
    color: var(--ap-text);
    font-family: var(--ap-font-ui);
    font-size: .81rem;
    line-height: 1.45;
    z-index: 25;
}

.ap-bid-input-row {
    display: flex;
    gap: .6rem;
    align-items: stretch;
}
.ap-input-prefix-wrap {
    display: flex;
    align-items: center;
    border: 2px solid var(--ap-border);
    border-radius: var(--ap-radius);
    overflow: hidden;
    flex: 1;
    background: var(--ap-surface);
    transition: border-color .15s;
}
.ap-input-prefix-wrap:focus-within { border-color: var(--ap-primary); }
.ap-currency {
    padding: 0 .6rem;
    font-family: var(--ap-font-ui);
    font-weight: 700;
    color: var(--ap-muted);
    user-select: none;
}
.ap-bid-input,
.ap-proxy-input {
    border: none;
    outline: none;
    padding: .65rem .5rem .65rem 0;
    font-family: var(--ap-font-ui);
    font-size: 1rem;
    width: 100%;
    background: transparent;
    color: var(--ap-text);
}
/* Hide browser spin buttons */
.ap-bid-input::-webkit-outer-spin-button,
.ap-bid-input::-webkit-inner-spin-button,
.ap-proxy-input::-webkit-outer-spin-button,
.ap-proxy-input::-webkit-inner-spin-button,
#ap-sl-starting-bid::-webkit-outer-spin-button,
#ap-sl-starting-bid::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ap-bid-input[type=number],
.ap-proxy-input[type=number],
#ap-sl-starting-bid[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.ap-proxy-section {
    font-family: var(--ap-font-ui);
    font-size: .9rem;
}
.ap-proxy-section summary { cursor: pointer; color: var(--ap-primary); user-select: none; }
.ap-proxy-body {
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    padding: 1rem;
    margin-top: .5rem;
    background: var(--ap-bg);
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.ap-proxy-desc { font-size: .8rem; color: var(--ap-muted); margin: 0; }

.ap-bid-submit {
    min-height: 48px;
    padding: .75rem 1.35rem;
    border: 0 !important;
    border-radius: var(--ap-radius);
    background: linear-gradient(180deg, #f4a932 0%, #d98212 100%) !important;
    box-shadow: 0 8px 18px rgba(158, 91, 0, .28), 0 2px 0 rgba(111, 61, 0, .45) !important;
    color: #1f1300 !important;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0;
    transform: translateY(0);
}

.ap-bid-submit:hover,
.ap-bid-submit:focus {
    background: linear-gradient(180deg, #ffba45 0%, #c97208 100%) !important;
    box-shadow: 0 10px 22px rgba(158, 91, 0, .35), 0 2px 0 rgba(111, 61, 0, .5) !important;
    color: #1f1300 !important;
}

.ap-bid-submit:active {
    transform: translateY(1px);
    box-shadow: 0 5px 12px rgba(158, 91, 0, .26), 0 1px 0 rgba(111, 61, 0, .5) !important;
}

.ap-bid-notice {
    padding: .6rem .85rem;
    border-radius: var(--ap-radius);
    font-family: var(--ap-font-ui);
    font-size: .875rem;
}
.ap-bid-notice--success { background: #e3f5eb; color: #1e6e3c; }
.ap-bid-notice--error   { background: #fdecea; color: var(--ap-error); }
.ap-bid-notice--info    { background: #e8f0fe; color: #1a56b0; }

.ap-bid-auth-prompt {
    font-family: var(--ap-font-ui);
    font-size: .9rem;
    color: var(--ap-muted);
    background: var(--ap-bg);
    border-radius: var(--ap-radius);
    padding: 1rem;
    text-align: center;
}
.ap-bid-auth-prompt a { color: var(--ap-primary); font-weight: 600; }

.ap-shipping-info {
    font-family: var(--ap-font-ui);
    font-size: .9rem;
    color: var(--ap-muted);
    margin-top: 1rem;
}
.ap-shipping-info p { margin: 0; }
.ap-pickup-zip {
    color: var(--ap-muted);
    font-size: .86rem;
    font-weight: 600;
}
.ap-donation-line { margin-top: .35rem !important; font-weight: 700; color: var(--ap-primary-dark); }
.ap-supports-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .2rem .45rem;
    margin-top: .38rem !important;
}
.ap-supports-label {
    font-weight: 700;
    color: var(--ap-secondary);
}
.ap-supports-item {
    display: inline-flex;
    align-items: baseline;
}
.ap-supports-line .ap-npo-link {
    margin-left: 0;
    color: var(--ap-primary-dark);
    cursor: pointer;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.ap-supports-line .ap-npo-link:hover,
.ap-supports-line .ap-npo-link:focus {
    color: var(--ap-primary);
    background: #eef5f0;
    border-radius: 4px;
    outline: 2px solid rgba(42, 125, 79, .22);
    outline-offset: 2px;
}
.ap-supports-separator {
    margin-left: .08rem;
    color: var(--ap-muted);
}

/* ---- Description ---- */
.ap-listing-description h2,
.ap-bid-history h2 {
    font-family: var(--ap-font-ui);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ap-secondary);
    margin: 0 0 .75rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--ap-border);
}
.ap-description-body {
    font-size: .95rem;
    line-height: 1.7;
    color: var(--ap-text);
}

/* ---- Bid history ---- */
.ap-bids-table {
    width: 100%;
    border-collapse: collapse;
    border-bottom: 1px solid var(--ap-border);
    font-family: var(--ap-font-ui);
    font-size: .875rem;
}
.ap-bids-table th {
    text-align: left;
    padding: .4rem .6rem;
    background: var(--ap-bg);
    color: var(--ap-muted);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 1px solid var(--ap-border);
}
.ap-bids-table td {
    padding: .5rem .6rem;
    border-bottom: 1px solid var(--ap-border);
    color: var(--ap-text);
    vertical-align: top;
}
.ap-bids-table tbody tr:last-child td { border-bottom: 1px solid var(--ap-border); }

.ap-bid-benefit {
    display: grid;
    gap: .16rem;
    min-width: 150px;
}

.ap-bid-benefit-row,
.ap-bid-benefit--single {
    display: block;
}

.ap-bid-benefit-label {
    color: var(--ap-muted);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ap-bid-benefit-name {
    min-width: 0;
    color: var(--ap-secondary);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ap-bid-benefit-and {
    color: var(--ap-muted);
    font-weight: 600;
}

@keyframes ap-highlight-row {
    0%   { background: #c8f5da; }
    100% { background: transparent; }
}
.ap-bid-row--new td { animation: ap-highlight-row 1.5s ease-out; }

/* ============================================================
   Buttons
   ============================================================ */
.ap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .65rem 1.4rem;
    border: none;
    border-radius: var(--ap-radius);
    background: var(--ap-primary);
    color: #fff;
    font-family: var(--ap-font-ui);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, transform .1s, opacity .15s;
    line-height: 1;
}
.ap-btn:hover { text-decoration: none; transform: translateY(-1px); }
.ap-btn:active { transform: translateY(0); }
.ap-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.ap-btn-primary   { background: var(--ap-primary); color: #fff; }
.ap-btn-primary:hover { background: var(--ap-primary-dark); color: #fff; }

.ap-btn-secondary { background: #fff; color: var(--ap-primary); border: 2px solid var(--ap-primary); padding: .55rem 1.3rem; }
.ap-btn-secondary:hover { background: var(--ap-primary); color: #fff; }

.ap-btn-full  { width: 100%; }
.ap-btn-small { padding: .35rem .85rem; font-size: .8rem; }

/* ============================================================
   Modal
   ============================================================ */
.ap-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.ap-listing-modal-overlay { z-index: 100001; }
.ap-npo-modal-overlay { z-index: 100003; }
.ap-auth-modal-overlay { z-index: 100010; }
body.ap-modal-open { overflow: hidden; }

.ap-modal {
    background: var(--ap-surface);
    border-radius: calc(var(--ap-radius) * 1.5);
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: ap-modal-in .2s ease-out;
}

.ap-modal--submit {
    max-width: 760px;
    max-height: min(90vh, 860px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.ap-modal--submit .ap-submit-listing {
    padding: 1.2rem 1.5rem 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* ---- Submit modal header ---- */
.ap-submit-modal-header {
    background: linear-gradient(135deg, var(--ap-primary) 0%, var(--ap-secondary) 100%);
    padding: 1.15rem 3.8rem 1.15rem 1.5rem;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .9rem;
}
.ap-submit-modal-header-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.ap-submit-modal-title {
    margin: 0 0 .1rem;
    font-family: var(--ap-font-ui);
    font-size: 1.18rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.ap-submit-modal-subtitle {
    margin: 0;
    font-family: var(--ap-font-ui);
    font-size: .8rem;
    color: rgba(255,255,255,.76);
}
.ap-modal--submit > .ap-modal-close {
    color: rgba(255,255,255,.72);
    z-index: 10;
}
.ap-modal--submit > .ap-modal-close:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
}

/* ---- Submit form sections ---- */
.ap-submit-section {
    padding: .9rem 1rem 1rem;
    background: #f7faf8;
    border: 1px solid #dfe9e2;
    border-radius: calc(var(--ap-radius) + 2px);
    margin-bottom: .9rem;
}
.ap-submit-section .ap-form-group:last-child,
.ap-submit-section .ap-form-row:last-child { margin-bottom: 0; }
.ap-submit-section .ap-form-row:last-child .ap-form-group { margin-bottom: 0; }
.ap-submit-section-label {
    display: block;
    font-family: var(--ap-font-ui);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ap-primary);
    margin-bottom: .8rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #dfe9e2;
}
.ap-section-optional {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ap-muted);
    font-size: .68rem;
}
.ap-submit-section--tags { margin-bottom: .5rem; }

/* Textarea in submit form */
.ap-submit-form textarea {
    padding: .6rem .85rem;
    border: 1.5px solid var(--ap-border);
    border-radius: var(--ap-radius);
    font-family: var(--ap-font-ui);
    font-size: .95rem;
    color: var(--ap-text);
    background: var(--ap-surface);
    transition: border-color .15s;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}
.ap-submit-form textarea:focus {
    outline: none;
    border-color: var(--ap-primary);
}

/* ---- File upload drop zone ---- */
.ap-file-upload-zone {
    position: relative;
    border: 2px dashed #c0d8c8;
    border-radius: var(--ap-radius);
    background: #fafcfb;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    text-align: center;
    margin-bottom: .6rem;
}
.ap-file-upload-zone:hover { border-color: var(--ap-primary); background: #f0f8f4; }
.ap-file-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.ap-file-upload-ui {
    padding: 1.5rem 1rem 1.4rem;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
}
.ap-file-upload-icon {
    width: 44px;
    height: 44px;
    background: #e3f5eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .25rem;
    color: var(--ap-primary);
}
.ap-file-upload-text {
    font-family: var(--ap-font-ui);
    font-size: .9rem;
    font-weight: 700;
    color: var(--ap-secondary);
}
.ap-file-upload-hint {
    font-family: var(--ap-font-ui);
    font-size: .73rem;
    color: var(--ap-muted);
}

/* ---- Submit button ---- */
.ap-sl-submit {
    padding: .9rem 1.5rem;
    font-size: 1.05rem;
    background: linear-gradient(135deg, var(--ap-primary) 0%, var(--ap-primary-dark) 100%);
    box-shadow: 0 4px 14px rgba(42,125,79,.3);
    margin-top: .4rem;
}
.ap-sl-submit:hover {
    background: linear-gradient(135deg, #309a62 0%, var(--ap-primary-dark) 100%);
    box-shadow: 0 6px 20px rgba(42,125,79,.44);
    color: #fff;
}

.ap-modal--submit-error {
    max-width: 500px;
    padding: 1.25rem 1.25rem 1.05rem;
}

.ap-submit-error-title {
    margin: .1rem 1.8rem .55rem 0;
    font-family: var(--ap-font-ui);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ap-error);
}

.ap-submit-error-message {
    margin: 0 0 .55rem;
    font-family: var(--ap-font-ui);
    font-size: .95rem;
    color: var(--ap-secondary);
    line-height: 1.45;
}

.ap-submit-error-field {
    margin: 0 0 .85rem;
    font-family: var(--ap-font-ui);
    font-size: .88rem;
    font-weight: 700;
    color: var(--ap-error);
}

.ap-submit-error-actions {
    display: flex;
    justify-content: flex-end;
}

.ap-modal--listing {
    width: min(1100px, calc(100vw - 2rem));
    max-width: 1100px;
    max-height: min(92vh, 980px);
    overflow-y: auto;
    padding: 1.2rem 1.25rem 1.3rem;
}

.ap-modal--shipping-calc {
    max-width: 540px;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.ap-shipping-calc-overlay {
    align-items: flex-start;
    overflow-y: auto;
}

/* ---- Shipping calc header ---- */
.ap-shipping-calc-header {
    background: linear-gradient(135deg, var(--ap-primary) 0%, var(--ap-secondary) 100%);
    padding: 1.15rem 3.8rem 1.15rem 1.5rem;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .9rem;
}
.ap-shipping-calc-header-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.ap-shipping-calc-modal-title {
    margin: 0 0 .1rem;
    font-family: var(--ap-font-ui);
    font-size: 1.18rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.ap-shipping-calc-subtitle {
    margin: 0;
    font-family: var(--ap-font-ui);
    font-size: .8rem;
    color: rgba(255,255,255,.76);
}
.ap-modal--shipping-calc > .ap-modal-close {
    color: rgba(255,255,255,.72);
    z-index: 10;
}
.ap-modal--shipping-calc > .ap-modal-close:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
}
.ap-shipping-calc-body {
    padding: 1.1rem 1.45rem 1.3rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.ap-shipping-calc-body .ap-submit-section { margin-bottom: .85rem; }
.ap-shipping-estimate-btn { margin-top: .1rem; }

.ap-modal--npo-info {
    max-width: 420px;
    padding: 1.3rem 1.35rem 1.15rem;
}

.ap-modal--my-ads {
    max-width: 760px;
    max-height: min(88vh, 920px);
    overflow-y: auto;
    padding: 1.2rem 1.25rem 1.15rem;
}

.ap-modal--account-redirect {
    max-width: 460px;
    padding: 1.25rem 1.35rem 1.15rem;
}

.ap-modal--seller-message {
    max-width: 520px;
    padding: 1.25rem 1.35rem 1.2rem;
}

.ap-seller-message-title,
.ap-info-modal-title {
    margin: 0 2rem .65rem 0;
    color: var(--ap-primary-dark);
    font-family: var(--ap-font-ui);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.ap-seller-message-intro,
.ap-info-modal-message {
    margin: 0 0 .9rem;
    color: var(--ap-text);
    font-family: var(--ap-font-ui);
    font-size: .95rem;
    line-height: 1.45;
}

.ap-seller-message-context {
    display: grid;
    gap: .15rem;
    padding: .75rem .85rem;
    margin: 0 0 .9rem;
    border: 1px solid #dfe9e2;
    border-radius: var(--ap-radius);
    background: #f7faf8;
}

.ap-seller-message-label {
    color: var(--ap-primary);
    font-family: var(--ap-font-ui);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ap-seller-message-seller {
    color: var(--ap-secondary);
    font-family: var(--ap-font-ui);
    font-size: .98rem;
    overflow-wrap: anywhere;
}

.ap-seller-message-form {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.ap-seller-message-form label {
    color: var(--ap-secondary);
    font-family: var(--ap-font-ui);
    font-size: .86rem;
    font-weight: 800;
}

.ap-seller-message-body {
    width: 100%;
    min-height: 140px;
    padding: .7rem .85rem;
    border: 1.5px solid var(--ap-border);
    border-radius: var(--ap-radius);
    background: var(--ap-surface);
    color: var(--ap-text);
    font-family: var(--ap-font-ui);
    font-size: .95rem;
    line-height: 1.45;
    resize: vertical;
}

.ap-seller-message-body:focus {
    outline: none;
    border-color: var(--ap-primary);
}

.ap-seller-message-actions,
.ap-info-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .2rem;
}

.ap-modal--info {
    max-width: 440px;
    padding: 1.25rem 1.35rem 1.15rem;
}

.ap-account-redirect-title {
    margin: 0 2rem .7rem 0;
    color: var(--ap-primary-dark);
    font-family: var(--ap-font-ui);
    font-size: 1.25rem;
}

.ap-modal--account-redirect p {
    margin: 0 0 .7rem;
    color: var(--ap-text);
}

.ap-account-redirect-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.ap-modal--faq {
    max-width: 840px;
    max-height: min(88vh, 940px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

/* ---- FAQ modal header ---- */
.ap-faq-modal-header {
    background: linear-gradient(135deg, var(--ap-primary) 0%, var(--ap-secondary) 100%);
    padding: 1.15rem 3.8rem 1.15rem 1.5rem;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .9rem;
}
.ap-faq-modal-header-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.ap-faq-modal-title {
    margin: 0;
    font-family: var(--ap-font-ui);
    font-size: 1.18rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.ap-modal--faq > .ap-modal-close {
    color: rgba(255,255,255,.72);
    z-index: 10;
}
.ap-modal--faq > .ap-modal-close:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
}
.ap-faq-body {
    padding: 1.2rem 1.5rem 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.ap-faq-title {
    margin: .1rem 1.8rem .7rem 0;
    font-family: var(--ap-font-ui);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ap-secondary);
}

.ap-faq-content {
    font-family: var(--ap-font-ui);
    color: var(--ap-text);
}

.ap-faq-content > *:last-child {
    margin-bottom: 0;
}

.ap-faq-content .ap-faq-doc > p:first-child {
    margin: 0 0 .9rem;
    padding: .65rem .8rem;
    background: #f4faf6;
    border: 1px solid #d8e6da;
    border-radius: var(--ap-radius);
    font-size: .83rem;
    color: var(--ap-muted);
    line-height: 1.45;
}

.ap-faq-content h4 {
    display: block;
    font-family: var(--ap-font-ui);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ap-primary);
    margin: 1.3rem 0 .55rem;
    padding-bottom: .45rem;
    border-bottom: 1px solid #dfe9e2;
}

.ap-faq-content h4:first-of-type { margin-top: .2rem; }

.ap-faq-content p {
    margin: .42rem 0;
    line-height: 1.55;
}

.ap-faq-content ul {
    margin: .35rem 0 .7rem;
    padding-left: 1.15rem;
}

.ap-faq-content li {
    margin: .25rem 0;
}

.ap-faq-content details {
    border: 1px solid #dfe9e2;
    border-radius: var(--ap-radius);
    padding: 0;
    margin: .4rem 0;
    background: #fff;
    overflow: hidden;
    transition: border-color .15s;
}

.ap-faq-content details:hover { border-color: #c0d8c8; }
.ap-faq-content details[open] { border-color: var(--ap-primary); }

.ap-faq-content summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem .85rem;
    cursor: pointer;
    font-weight: 700;
    font-size: .9rem;
    color: var(--ap-secondary);
    list-style: none;
    user-select: none;
    transition: background .12s;
}

.ap-faq-content summary:hover { background: #f7faf8; }

.ap-faq-content summary::-webkit-details-marker {
    display: none;
}

.ap-faq-content summary::after {
    content: "+";
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    background: #e3f5eb;
    color: var(--ap-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.ap-faq-content details[open] summary::after {
    content: "−";
    background: #d4eedd;
}

.ap-faq-content details > p,
.ap-faq-content details > ul {
    padding: .05rem .85rem .75rem;
    margin: 0;
    font-size: .88rem;
    line-height: 1.55;
    color: var(--ap-text);
}

.ap-my-ads-title {
    margin: .1rem 1.8rem .7rem 0;
    font-family: var(--ap-font-ui);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ap-secondary);
}

.ap-my-ads-list {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.ap-my-ads-list .ap-empty,
.ap-my-ads-list .ap-error {
    grid-column: auto;
    text-align: left;
    padding: .65rem 0;
}

.ap-my-ads-row {
    width: 100%;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    background: #fff;
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: .8rem;
    align-items: center;
    text-align: left;
    padding: .52rem .62rem;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.ap-my-ads-row:hover {
    border-color: #c7d8cc;
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
    transform: translateY(-1px);
}

.ap-my-ads-thumb-wrap {
    width: 76px;
    height: 58px;
    border-radius: 6px;
    overflow: hidden;
    background: #eef1ed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ap-my-ads-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap-my-ads-thumb-placeholder {
    padding: 0 .3rem;
    text-align: center;
    color: var(--ap-muted);
    font-family: var(--ap-font-ui);
    font-size: .7rem;
    line-height: 1.25;
}

.ap-my-ads-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .22rem;
}

.ap-my-ads-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
}

.ap-my-ads-item-title {
    font-family: var(--ap-font-ui);
    font-size: .95rem;
    font-weight: 700;
    color: var(--ap-secondary);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap-my-ads-sub {
    font-family: var(--ap-font-ui);
    font-size: .8rem;
    color: var(--ap-muted);
    line-height: 1.35;
}

.ap-npo-modal-title {
    margin: .2rem 0 .55rem;
    font-family: var(--ap-font-ui);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ap-secondary);
}

.ap-npo-modal-image-wrap {
    margin: .15rem 0 .85rem;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    background: #f6faf8;
    overflow: hidden;
}

.ap-npo-modal-image {
    display: block;
    width: 100%;
    max-height: 190px;
    object-fit: contain;
    background: #fff;
}

.ap-npo-modal-description {
    margin: 0 0 .7rem;
    font-family: var(--ap-font-ui);
    font-size: .9rem;
    line-height: 1.4;
    color: var(--ap-text);
    white-space: pre-wrap;
}

.ap-npo-modal-link-wrap { margin: 0; }

.ap-npo-modal-link {
    font-family: var(--ap-font-ui);
    font-size: .88rem;
    font-weight: 700;
    color: var(--ap-primary);
    text-decoration: none;
    word-break: break-word;
}
.ap-npo-modal-link:hover { text-decoration: underline; }

.ap-shipping-calc-title {
    margin: 0 0 .6rem;
    font-family: var(--ap-font-ui);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ap-secondary);
}

.ap-shipping-estimator-note {
    margin: 0 0 .8rem;
    padding: .55rem .7rem;
    border: 1px solid #d8e6da;
    border-radius: var(--ap-radius);
    background: #f4faf6;
    color: var(--ap-muted);
    font-family: var(--ap-font-ui);
    font-size: .82rem;
    line-height: 1.35;
}

.ap-shipping-estimator .ap-form-row { margin-bottom: .2rem; }
.ap-se-dims-row { grid-template-columns: repeat(3, 1fr); }

.ap-shipping-estimator .ap-form-group select {
    padding: .6rem .85rem;
    border: 1.5px solid var(--ap-border);
    border-radius: var(--ap-radius);
    font-family: var(--ap-font-ui);
    font-size: .95rem;
    color: var(--ap-text);
    background: var(--ap-surface);
    transition: border-color .15s;
    width: 100%;
    box-sizing: border-box;
}
.ap-shipping-estimator .ap-form-group select:focus {
    outline: none;
    border-color: var(--ap-primary);
}

.ap-shipping-estimate-btn { margin-top: .25rem; }
.ap-shipping-estimate-results { margin-top: .85rem; }
.ap-shipping-estimate-summary {
    margin: 0 0 .65rem;
    font-family: var(--ap-font-ui);
    font-size: .82rem;
    color: var(--ap-muted);
}
.ap-shipping-estimate-results .ap-error {
    padding: .45rem 0 .2rem;
    text-align: left;
    font-size: .84rem;
}
.ap-shipping-estimate-card {
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    padding: .75rem .85rem;
    margin-bottom: .6rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .45rem .65rem;
    align-items: center;
    background: #fff;
}
.ap-shipping-estimate-card h4 {
    margin: 0;
    font-family: var(--ap-font-ui);
    font-size: .92rem;
    font-weight: 700;
    color: var(--ap-secondary);
}
.ap-shipping-estimate-card p {
    margin: .1rem 0 0;
    font-family: var(--ap-font-ui);
    font-size: .78rem;
    color: var(--ap-muted);
}
.ap-shipping-estimate-price {
    font-family: var(--ap-font-ui);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ap-secondary);
}
.ap-use-shipping-estimate {
    grid-column: 1 / -1;
    justify-self: end;
}

@keyframes ap-modal-in {
    from { opacity: 0; transform: scale(.94) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.ap-modal-close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    background: var(--ap-surface);
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--ap-muted);
    cursor: pointer;
    padding: .2rem .4rem;
    border-radius: 4px;
}
.ap-modal-close:hover { background: var(--ap-bg); color: var(--ap-text); }

.ap-modal-loading {
    font-family: var(--ap-font-ui);
    font-size: .92rem;
    color: var(--ap-muted);
    padding: .6rem 0;
}

.ap-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--ap-border);
}
.ap-auth-tab {
    flex: 1;
    background: var(--ap-surface);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: .6rem 0;
    font-family: var(--ap-font-ui);
    font-size: .9rem;
    font-weight: 600;
    color: var(--ap-muted);
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.ap-auth-tab--active { color: var(--ap-primary); border-bottom-color: var(--ap-primary); }

.ap-auth-heading {
    font-family: var(--ap-font-ui);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ap-secondary);
    margin: 0 0 1.25rem;
}

.ap-registration-service-notice {
    display: grid;
    gap: .35rem;
    margin: 0 0 1rem;
    padding: .85rem .95rem;
    border: 1px solid #b8d3f0;
    border-radius: 8px;
    background: #eef6ff;
    color: #173a5e;
    font-family: var(--ap-font-ui);
    font-size: .87rem;
    line-height: 1.45;
}

.ap-registration-service-notice strong {
    color: #0e3155;
}

.ap-registration-ack {
    align-items: flex-start;
    margin: 0 0 .95rem;
    font-size: .84rem;
    line-height: 1.35;
    color: var(--ap-secondary);
}

.ap-registration-ack input {
    margin-top: .05rem;
    flex: 0 0 auto;
}

.ap-form-group {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom: .9rem;
}
.ap-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
}
.ap-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
}
.ap-form-group label {
    font-family: var(--ap-font-ui);
    font-size: .82rem;
    font-weight: 600;
    color: var(--ap-secondary);
}

.ap-label-with-info {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    width: fit-content;
    max-width: 100%;
}

.ap-label-with-info .ap-bid-info {
    flex: 0 0 auto;
}

.ap-form-info-pop,
.ap-donation-info-pop {
    top: auto;
    bottom: calc(100% + .5rem);
    left: 0;
    right: auto;
    border: 2px solid var(--ap-primary);
    box-shadow: 0 14px 34px rgba(0,0,0,.24);
    color: var(--ap-secondary);
    font-weight: 600;
    z-index: 60;
}

.ap-form-group input:not([type="checkbox"]):not([type="radio"]) {
    padding: .6rem .85rem;
    border: 1.5px solid var(--ap-border);
    border-radius: var(--ap-radius);
    font-family: var(--ap-font-ui);
    font-size: .95rem;
    color: var(--ap-text);
    background: var(--ap-surface);
    transition: border-color .15s;
    width: 100%;
    box-sizing: border-box;
}
.ap-form-group input:not([type="checkbox"]):not([type="radio"]):focus { outline: none; border-color: var(--ap-primary); }

.ap-category-combobox {
    position: relative;
}

.ap-category-options {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + .25rem);
    max-height: 320px;
    overflow-y: auto;
    padding: .3rem;
    border: 1.5px solid var(--ap-border);
    border-radius: var(--ap-radius);
    background: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
    z-index: 70;
}

.ap-category-option {
    display: block;
    width: 100%;
    padding: .48rem .6rem;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: var(--ap-text);
    font-family: var(--ap-font-ui);
    font-size: .9rem;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
}

.ap-category-option:hover,
.ap-category-option.is-active {
    background: #e8f2ec;
    color: var(--ap-primary-dark);
}

.ap-form-group input[type="checkbox"],
.ap-form-group input[type="radio"] {
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.ap-form-group input.ap-field-error,
.ap-form-group textarea.ap-field-error,
.ap-form-group select.ap-field-error {
    border-color: var(--ap-error) !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, .12);
}
.ap-form-group small { font-family: var(--ap-font-ui); font-size: .75rem; color: var(--ap-muted); }

.ap-submit-notice {
    margin-top: .35rem;
    margin-bottom: 1rem;
    padding: .7rem .85rem;
    border-radius: var(--ap-radius);
    border: 1.5px solid transparent;
    font-family: var(--ap-font-ui);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
}

.ap-submit-notice--error {
    background: #fff3f3;
    border-color: #efb3b3;
    color: var(--ap-error);
}

.ap-submit-notice--info {
    background: #eef6ff;
    border-color: #c7dcff;
    color: #29568f;
}

.ap-submit-notice--success {
    background: #e8f7ee;
    border-color: #b8dfc4;
    color: #1e6e3c;
}

.ap-submit-note {
    margin: .7rem 0 0;
    font-family: var(--ap-font-ui);
    font-size: .82rem;
    color: var(--ap-muted);
    line-height: 1.4;
}

.ap-submit-donation-intro {
    margin: 0 0 1.1rem;
    padding: .85rem .95rem;
    border: 1.5px solid #b8dfc4;
    border-left: 4px solid var(--ap-primary);
    border-radius: var(--ap-radius);
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5ee 100%);
    color: var(--ap-secondary);
    font-family: var(--ap-font-ui);
    font-size: .92rem;
    line-height: 1.45;
}

.ap-submit-donation-intro p {
    margin: 0;
}

.ap-submit-donation-intro p + p {
    margin-top: .5rem;
}

.ap-submit-donation-intro strong {
    color: var(--ap-primary-dark);
}

.ap-submit-success {
    margin-top: .85rem;
    padding: .85rem .95rem;
    border-radius: var(--ap-radius);
    border: 1.5px solid #b8dfc4;
    background: #e8f7ee;
}

.ap-submit-success-title {
    margin: 0 0 .35rem;
    font-family: var(--ap-font-ui);
    font-size: .95rem;
    font-weight: 700;
    color: #1e6e3c;
}

.ap-submit-success-status {
    margin: 0 0 .25rem;
    font-family: var(--ap-font-ui);
    font-size: .9rem;
    font-weight: 700;
    color: #1f3d2d;
}

.ap-submit-success-detail {
    margin: 0;
    font-family: var(--ap-font-ui);
    font-size: .86rem;
    color: #2f4f3d;
    line-height: 1.4;
}

.ap-password-rules {
    margin: .45rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .22rem;
}

.ap-password-rule {
    font-family: var(--ap-font-ui);
    font-size: .76rem;
    color: var(--ap-error);
    display: flex;
    align-items: center;
    gap: .35rem;
    line-height: 1.25;
}

.ap-password-rule::before {
    content: "\2022";
    color: currentColor;
    font-weight: 700;
}

.ap-password-rule.is-met {
    color: #1e6e3c;
}

.ap-password-rule.is-met::before {
    content: "\2713";
}

.ap-form-links {
    margin: .45rem 0 0;
    padding-left: 1.1rem;
}
.ap-form-links a {
    color: var(--ap-primary);
    font-family: var(--ap-font-ui);
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
}
.ap-form-links a:hover { text-decoration: underline; }

/* Post form layout tweaks */
.ap-submit-form .ap-sl-shipping-group .ap-form-links {
    padding-left: 0;
    list-style: none;
    text-align: right;
}

.ap-submit-form .ap-sl-shipping-group .ap-form-links li {
    display: inline-block;
}

.ap-submit-form .ap-form-group {
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    text-align: left !important;
}

.ap-submit-form #ap-sl-starting-bid,
.ap-submit-form #ap-sl-donation-percent,
.ap-submit-form #ap-sl-shipping-cost,
.ap-submit-form #ap-sl-duration {
    align-self: flex-start;
    width: min(100%, 180px);
}

.ap-submit-form #ap-sl-duration {
    min-height: 39px;
    padding: .55rem .75rem;
    border: 1.5px solid var(--ap-border);
    border-radius: var(--ap-radius);
    font-family: var(--ap-font-ui);
    font-size: .95rem;
    color: var(--ap-text);
    background: var(--ap-surface);
}

.ap-submit-form #ap-sl-duration:focus {
    outline: none;
    border-color: var(--ap-primary);
}

.ap-form-notice {
    padding: .55rem .85rem;
    border-radius: var(--ap-radius);
    font-family: var(--ap-font-ui);
    font-size: .85rem;
    margin-bottom: .85rem;
}
.ap-form-notice--error   { background: #fdecea; color: var(--ap-error); }
.ap-form-notice--info    { background: #e8f0fe; color: #1a56b0; }
.ap-form-notice--success { background: #e3f5eb; color: #1e6e3c; }

/* ============================================================
   Account widget
   ============================================================ */
.ap-account-widget {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    position: relative;
    font-family: var(--ap-font-ui);
}
.ap-account-name {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ap-secondary);
}

.ap-account-menu { position: relative; }

.ap-account-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .65rem;
    border: 1px solid #c9dacd;
    border-radius: 999px;
    background: #fff;
    color: var(--ap-secondary);
    font-family: var(--ap-font-ui);
    cursor: pointer;
}
.ap-account-menu-toggle:hover { border-color: var(--ap-primary); }

.ap-account-arrow {
    font-size: .72rem;
    line-height: 1;
    transition: transform .15s ease;
}
.ap-account-menu.is-open .ap-account-arrow { transform: rotate(180deg); }

.ap-account-popup {
    position: absolute;
    top: calc(100% + .45rem);
    right: 0;
    min-width: 170px;
    padding: .65rem .75rem;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    background: #fff;
    box-shadow: 0 12px 26px rgba(0,0,0,.14);
    z-index: 30;
}

.ap-account-summary {
    font-family: var(--ap-font-ui);
    font-size: .82rem;
    color: var(--ap-muted);
    margin: 0 0 .55rem;
}

.ap-account-link {
    display: block;
    margin: 0 0 .4rem;
    color: var(--ap-secondary);
    font-family: var(--ap-font-ui);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}
.ap-account-link:hover { color: var(--ap-primary); text-decoration: underline; }

.ap-account-signout {
    display: inline-block;
    color: var(--ap-primary);
    font-family: var(--ap-font-ui);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}
.ap-account-signout:hover { text-decoration: underline; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .ap-listings-grid          { grid-template-columns: repeat(2, 1fr); }
    .ap-single-listing         { grid-template-columns: 1fr; }
    .ap-listing-images,
    .ap-listing-details,
    .ap-listing-description,
    .ap-bid-history            { grid-column: 1; grid-row: auto; }
}
@media (max-width: 540px) {
    .ap-listings-grid { grid-template-columns: 1fr; }
    .ap-form-row      { grid-template-columns: 1fr; }
    .ap-se-dims-row   { grid-template-columns: 1fr; }
    .ap-bid-input-row { flex-direction: column; }
    .ap-bid-submit    { width: 100%; }
    .ap-live-row      { gap: 1rem; }
    .ap-modal--submit .ap-submit-listing { padding: .9rem .9rem 1.1rem; }
    .ap-modal--listing { padding: .9rem .85rem 1rem; }
    .ap-modal--my-ads { padding: .95rem .8rem .9rem; }
    .ap-faq-body { padding: .9rem .85rem 1rem; }
    .ap-shipping-calc-body { padding: .9rem .85rem 1rem; }
    .ap-my-ads-row {
        grid-template-columns: 64px 1fr;
        gap: .55rem;
        padding: .45rem .5rem;
    }
    .ap-my-ads-thumb-wrap {
        width: 64px;
        height: 50px;
    }
    .ap-auction-scope-tabs {
        display: flex;
        width: 100%;
    }
    .ap-auction-scope-tab {
        flex: 1;
        text-align: center;
        white-space: nowrap;
    }
    .ap-listings-header {
        flex-direction: column;
        align-items: stretch;
    }
    .ap-event-summary {
        flex-direction: column;
    }
    .ap-event-image-wrap {
        flex-basis: auto;
        width: auto;
        min-height: 180px;
        margin: -1rem -1.1rem 0 -1.1rem;
        border-radius: var(--ap-radius) var(--ap-radius) 0 0;
    }
    .ap-event-summary-content {
        flex-direction: column;
    }
    .ap-event-status {
        min-width: 0;
    }
    .ap-listings-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .ap-listings-search {
        flex: 1 1 100%;
        width: 100%;
    }
    .ap-listings-search-input {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }
}

/* ============================================================
   Theme isolation
   Keep host WordPress/theme styles from overriding AuctionPage UI.
   ============================================================ */
.auctionpage-root,
[data-auctionpage-root],
.ap-listings-wrap,
.ap-modal-overlay,
.ap-single-listing-host,
.ap-submit-listing {
    color: var(--ap-text) !important;
    font-family: var(--ap-font-ui) !important;
    line-height: 1.5 !important;
    isolation: auto !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.auctionpage-root *,
[data-auctionpage-root] *,
.ap-listings-wrap *,
.ap-modal-overlay *,
.ap-single-listing-host *,
.ap-submit-listing * {
    box-sizing: border-box !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.ap-listings-wrap button,
.ap-modal-overlay button,
.ap-single-listing-host button,
.ap-submit-listing button,
.ap-listings-wrap input,
.ap-modal-overlay input,
.ap-single-listing-host input,
.ap-submit-listing input,
.ap-listings-wrap textarea,
.ap-modal-overlay textarea,
.ap-single-listing-host textarea,
.ap-submit-listing textarea,
.ap-listings-wrap select,
.ap-modal-overlay select,
.ap-single-listing-host select,
.ap-submit-listing select {
    font-family: var(--ap-font-ui) !important;
    font-size: inherit !important;
    line-height: 1.25 !important;
}

.ap-listings-wrap button,
.ap-modal-overlay button,
.ap-single-listing-host button,
.ap-submit-listing button {
    background-color: #fff !important;
    border-color: var(--ap-border) !important;
    color: var(--ap-secondary) !important;
}

.ap-listings-wrap input:not([type="checkbox"]):not([type="radio"]),
.ap-modal-overlay input:not([type="checkbox"]):not([type="radio"]),
.ap-single-listing-host input:not([type="checkbox"]):not([type="radio"]),
.ap-submit-listing input:not([type="checkbox"]):not([type="radio"]),
.ap-listings-wrap textarea,
.ap-modal-overlay textarea,
.ap-single-listing-host textarea,
.ap-submit-listing textarea,
.ap-listings-wrap select,
.ap-modal-overlay select,
.ap-single-listing-host select,
.ap-submit-listing select {
    appearance: auto !important;
    background: #fff !important;
    border-color: var(--ap-border) !important;
    box-shadow: none !important;
    color: var(--ap-text) !important;
    max-width: 100% !important;
}

.ap-modal-overlay {
    background: rgba(0,0,0,.55) !important;
    position: fixed !important;
    z-index: 2147483000 !important;
}

.ap-listing-modal-overlay { z-index: 2147483010 !important; }
.ap-npo-modal-overlay,
.ap-my-ads-modal-overlay,
.ap-faq-modal-overlay,
.ap-submit-modal-overlay { z-index: 2147483020 !important; }
.ap-auth-modal-overlay,
.ap-account-redirect-modal-overlay,
.ap-seller-message-modal-overlay,
.ap-info-modal-overlay,
.ap-submit-error-overlay {
    z-index: 2147483400 !important;
}

.ap-auth-modal-overlay {
    z-index: 2147483420 !important;
}

.ap-modal,
.ap-listing-card,
.ap-single-listing,
.ap-submit-listing,
.ap-bid-history,
.ap-listing-details,
.ap-listing-description,
.ap-shipping-calc-panel,
.ap-account-popup,
.ap-my-ads-row {
    background-color: var(--ap-surface) !important;
    color: var(--ap-text) !important;
}

.ap-btn,
.ap-card-cta,
.ap-bid-submit,
.ap-shipping-estimate-btn,
.ap-account-menu-toggle,
.ap-modal-close,
.ap-bid-info-btn,
.ap-my-ads-row,
.ap-category-option,
.ap-tag {
    appearance: none !important;
    background-color: #fff !important;
    border-color: var(--ap-border) !important;
    color: var(--ap-secondary) !important;
    cursor: pointer !important;
    font-family: var(--ap-font-ui) !important;
    text-decoration: none !important;
}

.ap-btn,
.ap-btn-primary,
.ap-card-cta,
.ap-bid-submit,
.ap-shipping-estimate-btn,
.ap-active-tag-filter-clear {
    background: var(--ap-primary) !important;
    border-color: var(--ap-primary) !important;
    color: #fff !important;
}

.ap-btn-primary:hover,
.ap-card-cta:hover,
.ap-bid-submit:hover,
.ap-shipping-estimate-btn:hover,
.ap-active-tag-filter-clear:hover,
.ap-active-tag-filter-clear:focus {
    background: var(--ap-primary-dark) !important;
    border-color: var(--ap-primary-dark) !important;
    color: #fff !important;
}

.ap-btn-secondary {
    background: #fff !important;
    border: 2px solid var(--ap-primary) !important;
    color: var(--ap-primary) !important;
}

.ap-btn-secondary:hover {
    background: var(--ap-primary) !important;
    color: #fff !important;
}

.ap-account-menu-toggle,
.ap-auth-tab,
.ap-auction-scope-tab,
.ap-tag {
    background: #fff !important;
    border-color: var(--ap-border) !important;
    color: var(--ap-secondary) !important;
}

.ap-modal-close:hover {
    background: var(--ap-bg) !important;
    color: var(--ap-text) !important;
}

.ap-account-menu-toggle:hover,
.ap-bid-info-btn:hover {
    background: #fff !important;
    border-color: var(--ap-primary) !important;
    color: var(--ap-primary) !important;
}

.ap-tag {
    background: #eef5f0 !important;
    color: var(--ap-primary) !important;
}

.ap-card-tag-link:hover,
.ap-card-tag-link:focus {
    background: var(--ap-primary) !important;
    color: #fff !important;
}

.ap-listings-wrap .ap-supports-line .ap-npo-link,
.ap-modal-overlay .ap-supports-line .ap-npo-link,
.ap-single-listing-host .ap-supports-line .ap-npo-link,
.ap-listings-wrap .ap-message-seller-link,
.ap-modal-overlay .ap-message-seller-link,
.ap-single-listing-host .ap-message-seller-link {
    color: var(--ap-primary-dark) !important;
    cursor: pointer !important;
    font-weight: 800 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
}

.ap-listings-wrap .ap-supports-line .ap-npo-link:hover,
.ap-listings-wrap .ap-supports-line .ap-npo-link:focus,
.ap-modal-overlay .ap-supports-line .ap-npo-link:hover,
.ap-modal-overlay .ap-supports-line .ap-npo-link:focus,
.ap-single-listing-host .ap-supports-line .ap-npo-link:hover,
.ap-single-listing-host .ap-supports-line .ap-npo-link:focus,
.ap-listings-wrap .ap-message-seller-link:hover,
.ap-listings-wrap .ap-message-seller-link:focus,
.ap-modal-overlay .ap-message-seller-link:hover,
.ap-modal-overlay .ap-message-seller-link:focus,
.ap-single-listing-host .ap-message-seller-link:hover,
.ap-single-listing-host .ap-message-seller-link:focus {
    color: var(--ap-primary) !important;
    background: #eef5f0 !important;
    border-radius: 4px !important;
    outline: 2px solid rgba(42, 125, 79, .22) !important;
    outline-offset: 2px !important;
}

.ap-auth-tab--active {
    background: var(--ap-surface) !important;
    border-bottom-color: var(--ap-primary) !important;
    color: var(--ap-primary) !important;
}

.ap-auth-tab.active,
.ap-auth-tab[aria-selected="true"],
.ap-auction-scope-tab.is-active {
    background: var(--ap-primary) !important;
    border-color: var(--ap-primary) !important;
    color: #fff !important;
}

.ap-category-option:hover,
.ap-category-option.is-active {
    background: #e8f2ec !important;
    color: var(--ap-primary-dark) !important;
}

.ap-listings-wrap a,
.ap-modal-overlay a,
.ap-single-listing-host a,
.ap-submit-listing a {
    color: var(--ap-secondary) !important;
    text-decoration: none !important;
}

.ap-listings-wrap a:hover,
.ap-modal-overlay a:hover,
.ap-single-listing-host a:hover,
.ap-submit-listing a:hover {
    color: var(--ap-primary) !important;
    text-decoration: underline !important;
}

.ap-listings-wrap a.ap-card-cta,
.ap-listings-wrap a.ap-btn-primary,
.ap-modal-overlay a.ap-btn-primary,
.ap-single-listing-host a.ap-btn-primary,
.ap-submit-listing a.ap-btn-primary {
    color: #fff !important;
    text-decoration: none !important;
}

.ap-listings-wrap a.ap-btn-secondary,
.ap-modal-overlay a.ap-btn-secondary,
.ap-single-listing-host a.ap-btn-secondary,
.ap-submit-listing a.ap-btn-secondary {
    color: var(--ap-primary) !important;
    text-decoration: none !important;
}

.ap-account-signout {
    color: var(--ap-primary) !important;
}

.ap-bids-table,
.ap-bids-table th,
.ap-bids-table td {
    background: #fff !important;
    border-color: var(--ap-border) !important;
    color: var(--ap-text) !important;
}

.ap-bids-table {
    border-bottom: 1px solid var(--ap-border) !important;
}

.ap-bids-table tbody tr:last-child td {
    border-bottom: 1px solid var(--ap-border) !important;
}

.ap-listings-pagination .ap-pagination-current {
    background: var(--ap-primary) !important;
    border-color: var(--ap-primary) !important;
    color: #fff !important;
}

.ap-listings-pagination .ap-pagination-link {
    appearance: none !important;
    background: #fff !important;
    border: 2px solid var(--ap-primary) !important;
    color: var(--ap-primary) !important;
    cursor: pointer !important;
    font-family: var(--ap-font-ui) !important;
}

.ap-listings-pagination .ap-pagination-link:hover,
.ap-listings-pagination .ap-pagination-link:focus {
    background: var(--ap-primary) !important;
    border-color: var(--ap-primary) !important;
    color: #fff !important;
}

.ap-npo-modal-image-wrap {
    background: #f6faf8 !important;
    border-color: var(--ap-border) !important;
}

.ap-npo-modal-image {
    display: block !important;
    height: auto !important;
    max-height: 190px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    width: 100% !important;
}
