/* Omezit zobrazení původních veřejných historie příhozů šablony a pluginu.
 * Woo záložky vypínáme serverově; případné samostatné moduly třetích stran
 * je potřeba ověřit na skutečném detailu (CSS samo nechrání citlivé údaje). */
body.single-product .auction-history,
body.single-product .auction_history,
body.single-product .auction-history-table,
body.single-product .woocommerce-auction-history,
body.single-product .auction-bid-history,
body.single-product .bid-history,
body.single-product .ibid-auction-history,
body.single-product .auction-history-container,
body.single-product .auction-bidder-name,
body.single-product .auction-winner-name,
body.single-product .auction-current-bidder,
body.single-product .auction-bidder,
body.single-product .auction-winner{display:none!important}
.ap-job-result .ap-public-lowest{padding:12px 16px;background:#f0f8f3;border-radius:9px}
.ap-public-lowest strong{display:block;font-size:1.08rem}
.ap-public-lowest small{display:block;color:#4c6775;line-height:1.5;margin-top:6px}
.ap-award-status{border-left:4px solid #288a55;padding:8px 14px;background:#f4f9f6}
.ap-award-form{display:grid;gap:10px;margin:16px 0;padding:16px;border:1px solid #d6e4e8;border-radius:10px;background:#f7fafb}
.ap-award-form label{display:block;font-weight:700}
.ap-award-form select,.ap-award-form textarea{display:block;width:100%;max-width:700px;padding:10px;border:1px solid #b9c9d1;border-radius:6px;background:#fff}
.ap-award-hint{font-size:.91rem;color:#496272;line-height:1.6}
.ap-award-form.ap-award-secondary{background:#fff9ee}
.ap-award-form.ap-award-danger{border-color:#eed6d6;background:#fff7f7}
.ap-award-form.ap-award-danger button{background:#a63a3a}
.ap-guest-create-intro{max-width:860px;margin:30px auto;padding:28px;border-radius:14px;background:#eff8f2;color:#16374a}
.ap-guest-create-intro h2{color:#16374a}
.ap-guest-create-intro p:last-child{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.ap-guest-register{display:inline-block;padding:12px 18px;background:#258c50;color:#fff;text-decoration:none;border-radius:8px;font-weight:700}
.ap-guest-register:hover{background:#1d7140;color:#fff}
.ap-award-audit{border-top:1px solid #e2e9ea;margin-top:24px;padding:14px 0}
.ap-award-audit summary{font-weight:750;cursor:pointer}
.ap-award-audit ol{margin:12px 0 0;padding-left:20px;font-size:.9rem;color:#4b5d69;line-height:1.6}
.ap-review-criteria{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:.86rem;color:#536b76}
.ap-review-criteria span{background:#eaf3f5;border-radius:6px;padding:5px 8px}

/* 0.5.9.6 – výsledek výběru musí být viditelný na stránce vyhodnocení. */
.ap-award-notice{padding:13px 16px;border-radius:8px;margin:12px 0 18px;font-weight:650;line-height:1.6}
.ap-award-notice-ok,.ap-selected-supplier{border:1px solid #9ed0ac;background:#ecf8ef;color:#164c2b;padding:12px 16px;border-radius:8px}
.ap-award-notice-error{border:1px solid #e9b7b7;background:#fff0f0;color:#802424}
.ap-award-reason-help{font-size:.9rem;color:#35536b;margin:0!important}
.ap-award-reason-help.ap-reason-required{color:#984220;font-weight:650}

/* 0.6.0.1 – neutrální obrázek jen pro poptávku bez vlastní fotografie.
   Skutečně nahrané fotografie zůstávají beze změny. */
body.single-product .woocommerce-product-gallery__image.ap-request-photo-empty,
body.single-product .ap-request-photo-empty{
  box-sizing:border-box;min-height:270px;max-width:100%;display:flex!important;flex-direction:column;
  align-items:center;justify-content:center;gap:14px;padding:35px 22px;
  border:1px solid #e0e8ed;border-radius:12px;background:#f2f6f8;
  color:#65808e;text-align:center;line-height:1.4;
}
body.single-product .ap-request-photo-empty svg{width:58px;height:58px;flex:none;opacity:.85;}
body.single-product .ap-request-photo-empty span{font-size:14px;font-weight:600;}
@media(max-width:650px){body.single-product .ap-request-photo-empty{min-height:190px;padding:24px 15px;}}

/* 0.6.0.2 – nezávislé na vlastní galerií iBid; nemění uživatelské fotografie. */
body.single-product.ap-request-no-photo .woocommerce-product-gallery,
body.single-product.ap-request-no-photo .product .images,
body.single-product.ap-request-no-photo .product > .images,
body.single-product.ap-request-no-photo .woocommerce-product-gallery--without-images {display:none!important}
body.single-product .ap-request-no-photo-card {
  box-sizing:border-box;float:left;clear:none;width:47%;min-height:315px;margin:0 3% 28px 0;
  background:#f1f5f7;border:1px solid #e2e9ec;border-radius:12px;
  display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;
  color:#607e8b;font-size:14px;font-weight:650;text-align:center;padding:28px;
}
body.single-product .ap-request-no-photo-card svg{width:62px;height:62px}
body.single-product .ap-related-category-jobs, body.single-product .ap-related-requester-jobs {clear:both;}
body.single-product .ap-related-cards {grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:16px;}
body.single-product .ap-related-cards .ap-home-auction-image{height:150px;}
body.single-product .ap-related-cards .ap-home-auction-card{min-width:0;}
@media(max-width:900px){body.single-product .ap-related-cards{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:680px){
  body.single-product .ap-request-no-photo-card{width:100%;float:none;margin:0 0 22px;min-height:200px;}
  body.single-product .ap-related-cards{grid-template-columns:1fr;gap:12px;}
  body.single-product .ap-related-cards .ap-home-auction-image{height:200px;}
}


/* 0.6.0.4 – schovat irelevantní badge typu 'No reserve / Bez rezervace' na detailu reverzní poptávky. */
body.ap-request-auction.single-product .woocommerce-product-gallery .onsale,
body.ap-request-auction.single-product .product .images .onsale,
body.ap-request-auction.single-product .product span.onsale,
body.ap-request-auction.single-product [class*="reserve" i],
body.ap-request-auction.single-product [class*="ribbon" i][class*="auction" i],
body.ap-request-auction.single-product [class*="badge" i][class*="auction" i]{display:none!important}
