/* ============================================================
   AUCTION DETAIL VIEW — cbv- prefix, pure table layout
   Designed for 590px usable width (box-content-mid 608px - 2*8px padding)
============================================================ */

/* Box */
.cbv-box {
    background: linear-gradient(to bottom, #f0e8cc, #e4d8b0);
    border: 1px solid #b8a060;
    border-top: none;
    padding: 12px 14px;
    width: 100%;
    box-sizing: border-box;
}
.cbv-box:first-of-type { border-top: 1px solid #b8a060; }

.cbv-page-title {
    font-size: 16px; font-weight: 700; color: #2a1a08;
    text-align: center; padding: 8px 12px;
    background: linear-gradient(to bottom, #d4c090, #b8a060);
    border: 2px solid #8a6a30; border-radius: 4px 4px 0 0;
    font-family: 'Palatino Linotype', Palatino, serif;
    box-sizing: border-box; width: 100%;
}
.cbv-back { margin: 5px 0 8px 0; font-size: 12px; }
.cbv-back a { color: #1a5a9a; }

/* Title bar inside box */
.cbv-title {
    font-size: 15px; font-weight: 700; color: #5a3a10;
    text-align: center; margin: 0 0 10px 0;
    padding-bottom: 6px; border-bottom: 1px solid rgba(0,0,0,0.1);
    font-family: 'Palatino Linotype', Palatino, serif;
}

/* Name + meta */
.cbv-nameline { display: block; margin-bottom: 3px; }
.cbv-name { font-size: 15px; font-weight: 700; color: #1a4a8a; }
.cbv-badge {
    font-size: 11px; font-weight: 700; color: #1a7a2a;
    background: rgba(0,200,50,.1); border: 1px solid #2aaa3a;
    border-radius: 3px; padding: 1px 7px; margin-left: 6px;
}
.cbv-meta { font-size: 12px; color: #5a4020; margin-bottom: 10px; }
.cbv-meta strong { color: #2a1a08; }

/* Overview table */
.cbv-overview-table { width: 100%; border-collapse: collapse; }
.cbv-outfit-cell {
    width: 130px; vertical-align: top;
    padding-right: 10px;
}
.cbv-outfit-img {
    width: 80px; height: 80px;
    image-rendering: pixelated; display: block;
    margin-bottom: 4px;
}
.cbv-equip-grid {
    display: grid;
    grid-template-columns: repeat(3, 32px);
    gap: 2px;
    width: 100px;
}
.cbv-slot {
    width: 32px; height: 32px;
    background: rgba(0,0,0,.18); border: 1px solid rgba(0,0,0,.25);
    border-radius: 2px; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.cbv-slot img { width: 28px; height: 28px; image-rendering: pixelated; }
.cbv-slot-empty { background: rgba(0,0,0,.08); border-color: rgba(0,0,0,.12); }
.cbv-slot-invis { background: transparent !important; border-color: transparent !important; }
.cbv-cnt {
    position: absolute; bottom: 0; right: 1px;
    font-size: 8px; font-weight: 700; color: #fff;
    text-shadow: 1px 1px 0 #000; line-height: 1;
}

/* Stats table */
.cbv-stats-cell { vertical-align: top; }
.cbv-stats { width: 100%; border-collapse: collapse; }
.cbv-stats td {
    padding: 4px 8px; border-bottom: 1px solid rgba(0,0,0,.07);
    font-size: 12px; color: #3a2810;
}
.cbv-stats td:first-child { font-weight: 600; color: #5a4020; }
.cbv-stats td:last-child { text-align: right; font-weight: 600; }
.cbv-stats tr:last-child td { border-bottom: none; }
.cbv-red  { color: #cc2222; font-weight: 700; }
.cbv-grey { color: #888; font-style: italic; }

/* Disclaimer */
.cbv-disclaimer {
    background: #f9e8e8; border: 1px solid #d88080;
    border-radius: 3px; padding: 8px 12px;
    font-size: 12px; color: #5a2020; line-height: 1.6;
    margin: 8px 0; box-sizing: border-box;
}

/* Messages */
.cbv-msg-ok {
    background: rgba(0,180,0,.1); border: 1px solid #0a8a0a;
    border-radius: 3px; padding: 7px 12px; color: #0a5a0a;
    font-size: 13px; margin: 6px 0;
}
.cbv-msg-err {
    background: rgba(180,0,0,.1); border: 1px solid #cc2222;
    border-radius: 3px; padding: 7px 12px; color: #8a1a1a;
    font-size: 13px; margin: 6px 0;
}

/* Bid inputs */
.cbv-pts { font-size: 13px; color: #5a4020; }
.cbv-pts strong { color: #1a1a1a; }
.cbv-input {
    padding: 6px 10px; border: 1px solid #b09070;
    background: #faf3e0; border-radius: 3px;
    font-size: 13px; color: #3d2b10; width: 120px;
}
.cbv-buynow-info {
    font-size: 13px; color: #3a2810;
    background: rgba(255,255,255,.4); border: 1px solid #c8b880;
    border-radius: 3px; padding: 8px 12px; margin-bottom: 8px;
}
.cbv-buynow-info strong { color: #8a5010; }

/* Buttons */
.cbv-btn-dark {
    padding: 7px 20px;
    background: linear-gradient(to bottom, #3a3a4a, #22222e);
    border: 1px solid #111; border-radius: 3px;
    color: #e8e8f0; font-size: 13px; font-weight: 700;
    cursor: pointer; text-decoration: none; display: inline-block;
    margin-right: 6px;
}
.cbv-btn-dark:hover { background: linear-gradient(to bottom, #4a4a5a, #32323e); }
.cbv-btn-back {
    padding: 7px 20px;
    background: linear-gradient(to bottom, #3a3a4a, #22222e);
    border: 1px solid #111; border-radius: 3px;
    color: #e8e8f0; font-size: 13px; font-weight: 700;
    cursor: pointer; text-decoration: none; display: inline-block;
}
.cbv-btn-back:hover { color: #fff; background: linear-gradient(to bottom, #4a4a5a, #32323e); }
.cbv-btn-reclaim {
    padding: 6px 16px;
    background: linear-gradient(to bottom, #7a3a1a, #5a2a0a);
    border: 1px solid #3a1a00; border-radius: 3px;
    color: #ffe0c0; font-size: 13px; font-weight: 700; cursor: pointer;
}

/* Appearance */
.cbv-appear-row { display: flex; flex-wrap: wrap; gap: 4px; }
.cbv-appear-cell {
    width: 64px; height: 84px;
    background: rgba(255,255,255,.25); border: 1px solid rgba(0,0,0,.12);
    border-radius: 2px; display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.cbv-appear-cell img { width: 64px; height: 84px; image-rendering: pixelated; }
.cbv-shader-info { font-size: 12px; color: #5a4020; margin: 8px 0 0 0; }

/* Skills — full width table, all 7 in one row */
.cbv-skills-table { width: 100%; border-collapse: collapse; }
.cbv-skill-cell {
    text-align: center; padding: 6px 4px;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 3px;
    width: 14%;
}
.cbv-skill-img { width: 36px; height: 36px; display: block; margin: 0 auto 4px; image-rendering: pixelated; }
.cbv-skill-name { font-size: 10px; font-weight: 700; color: #6a4a20; text-transform: uppercase; letter-spacing: .3px; }
.cbv-skill-val  { font-size: 18px; font-weight: 700; color: #1a1a1a; line-height: 1.1; }

/* Quests */
.cbv-quest-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cbv-qr:nth-child(odd) { background: rgba(255,255,255,.18); }
.cbv-qn {
    padding: 3px 6px; font-size: 11px; color: #3a2810;
    width: 43%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    border-right: 1px solid rgba(0,0,0,.05);
}
.cbv-qi {
    padding: 3px 4px; font-size: 13px; font-weight: 700;
    text-align: center; width: 7%;
    border-right: 1px solid rgba(0,0,0,.05);
}
.cbv-qi:last-child { border-right: none; }
.cbv-ok   { color: #1a7a2a; }
.cbv-fail { color: #cc2222; }

/* Items */
.cbv-items-label { font-size: 12px; font-weight: 700; color: #5a3a10; margin: 8px 0 4px 0; }
.cbv-items-row { display: flex; flex-wrap: wrap; gap: 3px; }
.cbv-item {
    width: 36px; height: 36px;
    background: rgba(0,0,0,.15); border: 1px solid rgba(0,0,0,.25);
    border-radius: 2px; position: relative; display: flex;
    align-items: center; justify-content: center;
}
.cbv-item img { width: 32px; height: 32px; image-rendering: pixelated; }
.cbv-icnt {
    position: absolute; bottom: 0; right: 1px;
    font-size: 9px; font-weight: 700; color: #fff;
    text-shadow: 1px 1px 0 #000; line-height: 1;
}

/* ── Bid / Buy Now boxes ── */
.cb-disclaimer {
    background: #f9e8e8; border: 1px solid #d88080;
    border-radius: 3px; padding: 8px 12px;
    font-size: 12px; color: #5a2020; line-height: 1.6;
    margin: 8px 0;
}
.cb-pts-line { font-size: 13px; color: #5a4020; margin: 0 0 8px 0; }
.cb-pts-line strong { color: #1a1a1a; }
.cb-offer-h {
    font-size: 15px; font-weight: 700; color: #3a2810;
    margin: 0 0 8px 0;
    font-family: 'Palatino Linotype', Palatino, serif;
}
.cb-offer-box, .cb-buynow-box {
    background: rgba(255,255,255,0.25);
    border: 1px solid #c0a870; border-radius: 4px;
    padding: 12px 14px; margin-top: 10px;
}
.cb-offer-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cb-offer-form label { font-size: 13px; font-weight: 600; color: #5a4020; }
.cb-offer-inp {
    padding: 6px 10px; border: 1px solid #b09070;
    background: #faf3e0; border-radius: 3px;
    font-size: 13px; color: #3d2b10; width: 130px;
}
.cb-offer-sub, .cb-buynow-sub {
    padding: 7px 20px;
    background: linear-gradient(to bottom, #3a3a4a, #22222e);
    border: 1px solid #111; border-radius: 3px;
    color: #e8e8f0; font-size: 13px; font-weight: 700; cursor: pointer;
}
.cb-offer-sub:hover, .cb-buynow-sub:hover { background: linear-gradient(to bottom, #4a4a5a, #32323e); }
.cb-back-sub {
    padding: 7px 20px; margin-left: 8px;
    background: linear-gradient(to bottom, #3a3a4a, #22222e);
    border: 1px solid #111; border-radius: 3px;
    color: #e8e8f0; font-size: 13px; font-weight: 700;
    text-decoration: none; display: inline-block;
}
.cb-back-sub:hover { color: #fff; background: linear-gradient(to bottom, #4a4a5a, #32323e); }
.cb-buynow-line { font-size: 13px; color: #3a2810; margin: 0 0 10px 0; }
.cb-buynow-line strong { color: #8a5010; font-size: 14px; }
.cb-offer-need { font-size: 12px; color: #8a1a1a; margin: 4px 0; }

/* Cancel auction button */
.cb-cancel-btn {
    padding: 6px 16px;
    background: linear-gradient(to bottom, #7a2a2a, #5a1a1a);
    border: 1px solid #3a0a0a;
    border-radius: 3px;
    color: #ffe0c0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
}
.cb-cancel-btn:hover {
    background: linear-gradient(to bottom, #8a3a3a, #6a2a2a);
}