/* Re-Find Marketplace Styles */

.refind-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}
.refind-btn:hover { background: #333; color: #fff; }
.refind-btn-secondary { background: #ddd; color: #1a1a1a; }
.refind-btn-secondary:hover { background: #ccc; }

.refind-error { color: #c0392b; }
.refind-success { color: #27ae60; }

/* Forms */
.refind-form label { font-weight: 600; }
.refind-form input, .refind-form select, .refind-form textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 4px;
    box-sizing: border-box;
}

/* Marketplace filters */
.refind-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    align-items: center;
}
.refind-filters input, .refind-filters select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Grid */
.refind-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.refind-showcase-grid {
    grid-template-columns: repeat(5, minmax(0, 220px));
    max-width: 1180px;
    margin: 0 auto;
    justify-content: center;
}
@media (max-width: 900px) {
    .refind-showcase-grid {
        grid-template-columns: repeat(3, minmax(0, 220px));
    }
}
@media (max-width: 600px) {
    .refind-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 220px));
    }
}
.refind-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.refind-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.refind-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    overflow: hidden;
}
.refind-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.refind-no-image, .refind-no-image-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #eee;
    color: #999;
    font-size: 13px;
}
.refind-no-image-small { aspect-ratio: 1/1; width: 60px; height: 60px; }
.refind-card-info { padding: 10px; }
.refind-card-info h3 { margin: 0 0 4px; font-size: 14px; }
.refind-card-price { font-weight: 700; margin: 0; }
.refind-sold .refind-card-image img { opacity: 0.4; }
.refind-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #1a1a1a;
    color: #fff;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 3px;
}

.refind-pagination { margin-top: 24px; text-align: center; }
.refind-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #1a1a1a;
}
.refind-pagination .page-numbers.current { background: #1a1a1a; color: #fff; }

/* Dashboard */
.refind-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}
.refind-dashboard-table th, .refind-dashboard-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}
.refind-dash-thumb img, .refind-no-image-small { border-radius: 4px; }
.refind-status {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
}
.refind-status-available { background: #e8f5e9; color: #27ae60; }
.refind-status-reserved { background: #fff8e1; color: #f39c12; }
.refind-status-sold { background: #fdecea; color: #c0392b; }

.refind-link {
    color: #1a1a1a;
    text-decoration: underline;
    font-size: 13px;
    margin-right: 8px;
}
.refind-link-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}
.refind-link-danger { color: #c0392b; }

/* Single listing */
.refind-single-listing { margin-bottom: 24px; }
.refind-single-price { font-size: 28px; font-weight: 700; margin: 0; }
.refind-attributes { list-style: none; padding: 0; margin: 12px 0; }
.refind-attributes li { padding: 4px 0; border-bottom: 1px solid #f0f0f0; }
.refind-seller { color: #666; font-size: 14px; }
.refind-single-action { margin-top: 20px; }
.refind-badge-large {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
}

/* Auth pages */
.refind-auth-wrap { max-width: 420px; margin: 0 auto; }
.refind-auth-wrap h2 { margin-bottom: 20px; }

/* ===== Dashboard ===== */
body:has(.refind-dashboard) {
    overflow-x: hidden;
}
.refind-dashboard,
.refind-dashboard * {
    font-family: 'Figtree', sans-serif;
}
.refind-dashboard {
    box-sizing: border-box;
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow-x: hidden;
}

/* Greeting header with photo background */
.refind-dash-header {
    position: relative;
    margin-bottom: 0;
    padding: 48px 48px 64px;
    min-height: 320px;
    background-color: #e0e0e0;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    box-sizing: border-box;
}
.refind-dash-header-inner { position: relative; z-index: 1; }
.refind-dash-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 10px;
}
.refind-dash-header h2 {
    margin: 0;
    font-size: 56px;
    font-weight: 600;
    color: #fff;
}
.refind-dash-header p { margin: 0; font-size: 15px; color: #fff; }
.refind-dash-header p a { color: #fff; font-weight: 600; }

/* Notification bell, inline with the greeting heading */
.refind-dash-bell {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
}

/* Tabs */
.refind-dash-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    background: transparent;
    border-bottom: none;
    margin-bottom: 0;
}
.refind-tab {
    padding: 14px 22px;
    text-decoration: none;
    color: #0077b6;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.refind-tab:hover { color: #0077b6; background: rgba(0, 119, 182, 0.08); }
.refind-tab-active,
.refind-tab-active:hover {
    background: transparent;
    color: #0077b6;
    font-weight: 700;
    border-bottom: 3px solid #0077b6;
    margin-bottom: -2px;
}

/* Content area */
.refind-dash-content {
    background: #ffffff;
    padding: 28px 48px;
}

/* Listing rows (My Listings tab) */
.refind-listing-rows { display: flex; flex-direction: column; }
.refind-listing-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 2px solid #e0e0e0;
}
.refind-listing-row:last-child { border-bottom: none; }

.refind-listing-photo {
    flex: 0 0 110px;
    width: 110px;
    height: 110px;
    background: #e0e0e0;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    border-radius: 2px;
    overflow: hidden;
}
.refind-listing-photo img { width: 100%; height: 100%; object-fit: cover; }

.refind-listing-info { flex: 1 1 auto; min-width: 0; }
.refind-listing-name {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    text-decoration: none;
}
.refind-listing-name:hover { text-decoration: underline; }
.refind-listing-price { margin-top: 6px; font-size: 20px; font-weight: 800; color: #1a1a1a; }
.refind-listing-price-strike { text-decoration: line-through; margin-right: 10px; opacity: 0.7; }

.refind-listing-meta {
    flex: 0 0 auto;
    min-width: 130px;
    text-align: right;
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.7;
}
.refind-sold-label { font-size: 26px; font-weight: 800; color: #1a1a1a; }

.refind-listing-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 110px;
}
.refind-listing-actions form { display: block; }
.refind-listing-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background: #0077b6;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
}
.refind-listing-btn:hover { background: #005f8f; color: #fff; }

/* "+ New listing" button, scoped to the dashboard only */
.refind-dashboard .refind-btn-add {
    background: #0077b6;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
}
.refind-dashboard .refind-btn-add:hover { background: #005f8f; }

/* Unread badge */
.refind-unread-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    padding: 1px 6px;
    margin-left: 4px;
    font-weight: 700;
}

/* Messaging */
.refind-contact-seller { margin-top: 32px; padding-top: 24px; border-top: 1px solid #eee; }
.refind-messages-wrap { display: flex; gap: 0; border: 1px solid #eee; border-radius: 6px; overflow: hidden; min-height: 400px; }

.refind-thread-list { width: 220px; min-width: 220px; border-right: 1px solid #eee; background: #fafafa; overflow-y: auto; }
.refind-thread-item {
    display: block;
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 13px;
    position: relative;
}
.refind-thread-item:hover { background: #f0f0f0; }
.refind-thread-active { background: #fff; font-weight: 700; }
.refind-thread-item strong { display: flex; align-items: center; gap: 6px; }
.refind-thread-item-presence { width: 7px; height: 7px; min-width: 7px; border-radius: 50%; background: #ccc; }
.refind-thread-item-presence.refind-online { background: #27ae60; }
.refind-thread-listing { display: block; color: #999; font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.refind-thread-panel { flex: 1; display: flex; flex-direction: column; padding: 16px; }
.refind-thread-header { margin-bottom: 12px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.refind-thread-header a { color: #1a1a1a; }
.refind-presence { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 12px; color: #888; }
.refind-presence-dot { width: 8px; height: 8px; border-radius: 50%; background: #ccc; }
.refind-presence-dot.refind-online { background: #27ae60; }
.refind-presence-dot.refind-offline { background: #ccc; }

.refind-thread-messages { flex: 1; overflow-y: auto; margin-bottom: 8px; display: flex; flex-direction: column; gap: 8px; }
.refind-msg-bubble { max-width: 75%; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.refind-msg-bubble small { display: block; font-size: 11px; color: #999; margin-top: 4px; }
.refind-msg-bubble p { margin: 0; }
.refind-msg-mine { background: #1a1a1a; color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.refind-msg-mine small { color: #aaa; }
.refind-msg-theirs { background: #f0f0f0; color: #1a1a1a; align-self: flex-start; border-bottom-left-radius: 3px; }

.refind-typing-indicator { display: none; align-items: center; gap: 6px; padding: 0 4px 8px; color: #999; font-size: 12px; }
.refind-typing-indicator span { width: 6px; height: 6px; border-radius: 50%; background: #bbb; display: inline-block; animation: refind-typing-bounce 1.2s infinite ease-in-out; }
.refind-typing-indicator span:nth-child(2) { animation-delay: .15s; }
.refind-typing-indicator span:nth-child(3) { animation-delay: .3s; }
@keyframes refind-typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.refind-reply-form textarea { padding: 8px; border: 1px solid #ccc; border-radius: 4px; resize: vertical; }

/* Price breakdown */
.refind-price-breakdown { background: #f9f9f9; border: 1px solid #eee; border-radius: 6px; padding: 12px 16px; margin: 12px 0; }
.refind-price-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.refind-price-row:not(:last-child) { border-bottom: 1px solid #eee; }
.refind-price-total { font-weight: 700; font-size: 16px; padding-top: 8px; }

/* Modal */
.refind-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}
.refind-modal-box {
    background: #fff; border-radius: 8px; padding: 28px;
    width: 90%; max-width: 520px; max-height: 90vh;
    overflow-y: auto; position: relative;
}
.refind-modal-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; font-size: 22px;
    cursor: pointer; color: #666; line-height: 1;
}
.refind-modal-box h3 { margin: 0 0 20px; }

.refind-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
.refind-modal-actions .refind-listing-btn { display: inline-block; width: auto; }
.refind-modal-cancel {
    background: #e0e0e0 !important;
    color: #1a1a1a !important;
}
.refind-modal-cancel:hover { background: #cfcfcf !important; }

/* Delivery options */
.refind-delivery-options { display: flex; gap: 12px; margin-bottom: 20px; }
.refind-delivery-option {
    flex: 1; border: 2px solid #eee; border-radius: 6px;
    padding: 12px; cursor: pointer; text-align: center; font-size: 14px;
}
.refind-delivery-option input { margin-right: 6px; }
.refind-delivery-fields { margin-bottom: 16px; }
.refind-delivery-fields input { padding: 8px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }

/* Paketomat list */
#refind-paketomat-list { max-height: 220px; overflow-y: auto; border: 1px solid #eee; border-radius: 4px; margin-top: 8px; }
.refind-shop-item { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; cursor: pointer; font-size: 13px; }
.refind-shop-item:hover { background: #f5f5f5; }
.refind-shop-selected { background: #e8f5e9; }
#refind-selected-shop { margin-top: 8px; font-size: 13px; }

/* Search bar */
.refind-search-bar { display:flex; gap:8px; }
.refind-search-input { flex:1; padding:10px 14px; border:2px solid #1a1a1a; border-radius:4px; font-size:15px; }
.refind-search-btn { padding:10px 20px; background:#1a1a1a; color:#fff; border:none; border-radius:4px; cursor:pointer; font-size:15px; }
.refind-search-btn:hover { background:#333; }

/* Card wrap + heart */
.refind-card-wrap { position:relative; }
.refind-heart-btn {
    position:absolute; top:8px; right:8px; z-index:2;
    background:rgba(255,255,255,0.9); border:none; border-radius:50%;
    width:32px; height:32px; font-size:18px; line-height:32px; text-align:center;
    cursor:pointer; color:#999; transition:color 0.2s, transform 0.15s;
    text-decoration:none; display:block;
}
.refind-heart-btn:hover { transform:scale(1.15); color:#e74c3c; }
.refind-hearted { color:#e74c3c !important; }

/* Seller profile */
.refind-profile { max-width:900px; }
.refind-profile-header { display:flex; gap:20px; align-items:flex-start; margin-bottom:32px; padding-bottom:24px; border-bottom:1px solid #eee; }
.refind-profile-avatar img { border-radius:50%; }
.refind-profile-info h2 { margin:0 0 8px; }
.refind-profile-meta { color:#666; font-size:14px; }
.refind-stars { color:#f39c12; letter-spacing:2px; }

/* Reviews */
.refind-reviews { display:flex; flex-direction:column; gap:16px; margin-top:12px; }
.refind-review-item { border:1px solid #eee; border-radius:6px; padding:16px; }
.refind-review-header { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.refind-review-header img { border-radius:50%; }
.refind-review-comment { margin:8px 0; }
.refind-review-listing { color:#999; margin:0; }
.refind-review-done { background:#f9f9f9; padding:10px; border-radius:4px; }

/* Star picker */
.refind-star-picker { display:flex; flex-direction:row-reverse; justify-content:flex-end; gap:4px; margin-bottom:12px; }
.refind-star-picker input { display:none; }
.refind-star-picker label { font-size:28px; color:#ddd; cursor:pointer; }
.refind-star-picker input:checked ~ label,
.refind-star-picker label:hover,
.refind-star-picker label:hover ~ label { color:#f39c12; }

/* Wallet */
.refind-wallet { max-width:600px; }
.refind-wallet-balance { background:#1a1a1a; color:#fff; border-radius:8px; padding:24px; margin-bottom:24px; display:flex; justify-content:space-between; align-items:center; }
.refind-wallet-label { font-size:14px; opacity:0.8; }
.refind-wallet-amount { font-size:32px; font-weight:700; }
.refind-wallet-tab-balance { font-size:12px; background:#eee; padding:2px 6px; border-radius:3px; margin-left:4px; }
.refind-wallet-note { color:#999; font-size:13px; }
.refind-credit { color:#27ae60; font-weight:600; }
.refind-debit  { color:#e74c3c; font-weight:600; }
.refind-withdraw-form { background:#f9f9f9; border-radius:6px; padding:20px; margin-bottom:24px; }

/* Order cards in purchases tab */
.refind-order-card { border:1px solid #eee; border-radius:6px; padding:16px; margin-bottom:16px; }
.refind-order-top { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:12px; }
.refind-tracking { font-size:13px; color:#666; margin:8px 0; }
.refind-tracking a { margin-left:8px; }
.refind-review-section { margin-top:16px; padding-top:16px; border-top:1px solid #f0f0f0; }
.refind-review-section h4 { margin:0 0 12px; }

/* Language switcher */
.refind-lang-switcher { display:flex; gap:8px; align-items:center; }
.refind-lang-option { text-decoration:none; color:#666; font-size:13px; padding:4px 8px; border-radius:4px; }
.refind-lang-option:hover { background:#f0f0f0; color:#1a1a1a; }
.refind-lang-active { font-weight:700; color:#1a1a1a; background:#f0f0f0; }

/* =====================================================================
   NOTIFICATIONS — bell + dropdown
   ===================================================================== */
.refind-notif-bell-wrap { position:relative; display:inline-flex; align-items:center; vertical-align:middle; margin-left:0; }
.refind-notif-bell { background:none; border:none; cursor:pointer; padding:0; line-height:1; position:relative; display:inline-flex; align-items:center; justify-content:center; }
.refind-notif-bell-icon { width:40px; height:40px; display:block; object-fit:contain; }
.refind-notif-count {
    position:absolute; top:-6px; right:-8px;
    background:#e74c3c; color:#fff; border-radius:10px;
    font-size:11px; font-weight:700; min-width:18px; height:18px;
    display:flex; align-items:center; justify-content:center;
    padding:0 4px; pointer-events:none;
}
.refind-notif-dropdown {
    position:absolute; right:0; top:calc(100% + 8px);
    width:320px; background:#fff; border:1px solid #e0e0e0;
    border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.12);
    z-index:9999; overflow:hidden;
}
.refind-notif-dropdown-header { padding:12px 16px; font-weight:700; font-size:13px; border-bottom:1px solid #f0f0f0; background:#fafafa; }
.refind-notif-list { max-height:360px; overflow-y:auto; }
.refind-notif-item {
    display:flex; flex-direction:column; gap:2px;
    padding:12px 16px; border-bottom:1px solid #f7f7f7;
    text-decoration:none; color:inherit; transition:background .15s;
}
.refind-notif-item:hover { background:#f9f9f9; }
.refind-notif-unread { background:#f0f7ff; }
.refind-notif-text { font-size:13px; line-height:1.4; }
.refind-notif-time { font-size:11px; color:#999; }
.refind-notif-empty { padding:20px 16px; color:#999; font-size:13px; margin:0; }

/* =====================================================================
   OFFER MODAL (single listing page)
   ===================================================================== */
.refind-modal {
    position:fixed; inset:0; background:rgba(0,0,0,.5);
    display:flex; align-items:center; justify-content:center; z-index:9998;
}
.refind-modal-box {
    background:#fff; border-radius:10px; padding:28px 32px;
    width:100%; max-width:420px; position:relative; box-shadow:0 16px 48px rgba(0,0,0,.18);
}
.refind-modal-close {
    position:absolute; top:12px; right:16px; background:none; border:none;
    font-size:22px; cursor:pointer; color:#999; line-height:1;
}
.refind-modal-close:hover { color:#1a1a1a; }
.refind-modal-box h3 { margin:0 0 16px; font-size:18px; }
.refind-modal-box input, .refind-modal-box textarea {
    width:100%; box-sizing:border-box; padding:10px 12px;
    border:1px solid #ddd; border-radius:6px; font-size:14px;
}
.refind-modal-box input:focus, .refind-modal-box textarea:focus { border-color:#1a1a1a; outline:none; }

/* Offer widget below buy button */
.refind-offer-widget-wrap { margin-top:12px; }
.refind-offer-box { background:#f9f9f9; border:1px solid #eee; border-radius:6px; padding:14px 16px; margin-top:8px; font-size:14px; }
.refind-offer-accepted { background:#f0fff4; border-color:#b7ebc8; }

/* =====================================================================
   OFFER BUBBLE — appears inline inside the Messages thread, styled
   distinctly from normal text bubbles (centered "system card" look
   instead of a left/right aligned chat bubble).
   ===================================================================== */
.refind-msg-offer {
    align-self: center;
    width: 100%;
    max-width: 90%;
    background: linear-gradient(135deg, #fffaf0, #fffdf9);
    border: 1px solid #f0d9a6;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.refind-msg-offer.refind-msg-offer-accepted  { background:#f0fff4; border-color:#b7ebc8; }
.refind-msg-offer.refind-msg-offer-declined,
.refind-msg-offer.refind-msg-offer-cancelled,
.refind-msg-offer.refind-msg-offer-countered { background:#fafafa; border-color:#eee; opacity:.65; }

.refind-offer-head { display:flex; justify-content:space-between; align-items:center; font-weight:700; gap:12px; }
.refind-offer-note { font-size:13px; color:#555; margin:8px 0 0; font-style:italic; }
.refind-msg-offer small { display:block; margin-top:8px; font-size:11px; color:#999; }

.refind-status { display:inline-block; font-weight:700; font-size:15px; white-space:nowrap; }
.refind-status-pending  { color:#e67e22; }
.refind-status-accepted { color:#27ae60; }
.refind-status-declined { color:#e74c3c; }
.refind-status-cancelled{ color:#999; }
.refind-status-countered{ color:#999; }

.refind-offer-waiting { color:#999; font-size:13px; margin:8px 0 0; }
.refind-offer-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:10px; }
.refind-offer-counter-form { display:flex; gap:8px; flex-wrap:wrap; align-items:center; width:100%; margin-top:8px; }
.refind-offer-counter-amount { padding:8px 10px; border:1px solid #ddd; border-radius:5px; font-size:13px; width:130px; }
.refind-offer-msg { font-size:13px; margin:4px 0 0; }

.refind-link-danger { color:#e74c3c; font-size:12px; }
.refind-unread-badge-offer { background:#e67e22; }
.refind-link-btn { background:none; border:none; cursor:pointer; padding:0; font-family:inherit; }

/* =====================================================================
   SEARCH SORT DROPDOWN
   ===================================================================== */
.refind-filters select, .refind-filters input[type="number"] {
    border:1px solid #ddd; border-radius:5px; padding:7px 10px;
    font-size:13px; background:#fff; min-width:120px;
}
.refind-filters { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:20px; }

/* =====================================================================
   MISC
   ===================================================================== */
.refind-error  { color:#e74c3c; font-size:13px; }
.refind-success{ color:#27ae60; font-size:13px; }

/* ============================================================
   Shipping: Carrier tabs + pickup point list (v0.8)
   ============================================================ */

.refind-carrier-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.refind-carrier-tab {
    padding: 6px 14px;
    border: 2px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.15s, background 0.15s;
}

.refind-carrier-tab:hover {
    border-color: #aaa;
}

.refind-carrier-tab.refind-tab-active {
    border-color: #222;
    background: #222;
    color: #fff;
}

/* Pickup point list items */
.refind-shop-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    line-height: 1.4;
    transition: background 0.1s;
}

.refind-shop-item:last-child {
    border-bottom: none;
}

.refind-shop-item:hover {
    background: #f8f8f8;
}

.refind-shop-item.refind-shop-selected {
    background: #eaf8ee;
    border-left: 3px solid #27ae60;
}

.refind-shop-badge {
    font-size: 11px;
    font-weight: 700;
    background: #f0f0f0;
    border-radius: 4px;
    padding: 1px 5px;
    margin-right: 4px;
}

/* Tracking status in dashboard/orders */
.refind-tracking-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.refind-tracking-badge.booked        { background: #e8f0fe; color: #1a56db; }
.refind-tracking-badge.in_transit    { background: #fef3c7; color: #92400e; }
.refind-tracking-badge.ready_pickup  { background: #ecfdf5; color: #065f46; }
.refind-tracking-badge.delivered     { background: #d1fae5; color: #064e3b; }
.refind-tracking-badge.error         { background: #fee2e2; color: #991b1b; }

/* ============================================================
   Shipping rates widget
   ============================================================ */

.refind-rates-section {
    margin-bottom: 16px;
}

.refind-rates-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.refind-rate-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.refind-rates-loading {
    color: #999;
    font-size: 13px;
    animation: refind-pulse 1.5s ease-in-out infinite;
}

@keyframes refind-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.refind-rate-option {
    display: grid;
    grid-template-columns: 90px 1fr auto auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: border-color 0.15s, background 0.15s;
}

.refind-rate-option:hover {
    border-color: #bbb;
    background: #fafafa;
}

.refind-rate-option.refind-rate-selected {
    border-color: #27ae60;
    background: #f0fff5;
}

.refind-rate-carrier {
    font-weight: 700;
    font-size: 12px;
}

.refind-rate-service {
    color: #444;
}

.refind-rate-eta {
    color: #888;
    font-size: 12px;
}

.refind-rate-price {
    font-weight: 700;
    font-size: 15px;
    color: #111;
    white-space: nowrap;
}

.refind-rate-est {
    font-size: 10px;
    color: #aaa;
    font-weight: 400;
}

/* ============================================================
   Saved addresses
   ============================================================ */

.refind-saved-addresses {
    margin-bottom: 12px;
}

.refind-saved-addr-btn {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 5px 12px;
    border: 1.5px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.12s;
}

.refind-saved-addr-btn:hover,
.refind-saved-addr-btn.active {
    border-color: #27ae60;
    background: #f0fff5;
}

/* Addresses dashboard tab */
.refind-addresses-wrap {
    max-width: 600px;
}

.refind-address-country-pref {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 4px;
}

.refind-address-card {
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #fff;
}

.refind-address-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.refind-address-country-badge {
    font-size: 11px;
    background: #f0f0f0;
    border-radius: 4px;
    padding: 2px 6px;
    color: #555;
}

.refind-address-detail {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 8px;
}

.refind-addr-delete {
    font-size: 12px;
    color: #c0392b;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* ============================================================
   QR + shipping block in order cards
   ============================================================ */

.refind-shipping-block {
    margin-top: 10px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.refind-shipping-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.refind-shipping-info {
    flex: 1;
    font-size: 13px;
}

.refind-carrier-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 7px;
    margin-right: 4px;
    color: #fff;
}

.refind-carrier-badge.refind-carrier-dpd       { background: #e30613; }
.refind-carrier-badge.refind-carrier-omniva    { background: #f7941d; }
.refind-carrier-badge.refind-carrier-lpexpress { background: #c8a400; color: #fff; }

.refind-qr-block {
    text-align: center;
    flex-shrink: 0;
}

.refind-qr-img {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 4px;
    background: #fff;
    display: block;
}

.refind-qr-label {
    font-size: 10px;
    color: #999;
    margin-top: 3px;
}

.refind-btn-sm {
    font-size: 12px !important;
    padding: 5px 12px !important;
}

.refind-btn-link {
    background: none;
    border: none;
    color: #c0392b;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
}
