/* ============================================================
   iDeliverWorldwide — WooCommerce pages
   (bag drawer, notices, cart, checkout, sign-in, account, tracking)
   ============================================================ */

/* ---------- Bag drawer (mini cart) ---------- */
.drawer .widget_shopping_cart_content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drawer .drawer-body { flex: 1; }
.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.woocommerce-mini-cart .line { position: relative; }
.woocommerce-mini-cart .thumb, .woocommerce-mini-cart img.thumb { width: 84px; height: 84px; }
.line-meta dl.variation { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0 6px; }
.line-meta dl.variation dt { font-weight: 700; color: var(--ink-2); }
.line-meta dl.variation dd { margin: 0; }
.line-meta dl.variation p { margin: 0; }
.line .quantity { font-size: .88rem; font-weight: 700; }
.drawer .chip-del { font-size: .74rem; }
.blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; }

/* ---------- Notices ---------- */
.idw-notices:empty { display: none; }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
  list-style: none; margin: 14px 0; padding: 14px 16px 14px 46px; border-radius: 14px; position: relative;
  background: #fff; border: 1.5px solid var(--line); font-size: .94rem; color: var(--ink);
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { position: absolute; left: 16px; top: 13px; font-size: 1.05rem; }
.woocommerce-message { border-color: #111; background: #fffbea; }
.woocommerce-message::before { content: "✓"; font-weight: 800; }
.woocommerce-info { border-color: var(--gold); background: #fff8dc; }
.woocommerce-info::before { content: "i"; font-weight: 800; font-family: Georgia, serif; }
.woocommerce-error { border-color: #d93025; background: #fff4f3; }
.woocommerce-error::before { content: "!"; color: #d93025; font-weight: 800; }
.woocommerce-error li { margin: 2px 0; }
.woocommerce-message .button, .woocommerce-info .button { float: right; margin-left: 10px; }
.woocommerce-notice--success { border-color: #111; background: #fffbea; }

/* ---------- Generic WooCommerce buttons + inputs ---------- */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woo-page .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 999px; border: 0; background: #111; color: #fff; font: 700 .95rem var(--ff); cursor: pointer; text-decoration: none;
}
.woocommerce .button:hover, .woo-page .button:hover { background: #000; color: var(--gold); }
.woocommerce .button.alt, .woocommerce #place_order, .woocommerce .checkout-button {
  background: var(--gold) !important; color: #111 !important; box-shadow: 0 4px 0 #111; min-height: 54px; font-size: 1.05rem; width: 100%;
}
.woocommerce .button.alt:hover, .woocommerce #place_order:hover, .woocommerce .checkout-button:hover { background: #ffd23f !important; }
.woocommerce .button:disabled, .woocommerce .button.disabled { opacity: .5; }
.woocommerce form .form-row { margin: 0 0 14px; padding: 0; }
.woocommerce form .form-row label { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 6px; color: var(--ink-2); }
.woocommerce form .form-row .required { color: #c62828; text-decoration: none; border: 0; }
.woocommerce form .form-row .optional { color: var(--muted); font-weight: 500; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce .woocommerce-input-wrapper input, .woo-page input.input-text, .woo-page select, .woo-page textarea, .auth input.input-text,
.track_order input.input-text {
  width: 100%; min-height: 50px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 14px; font-size: 1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.woocommerce form .form-row textarea { min-height: 96px; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus, .woocommerce form .form-row select:focus, .auth input.input-text:focus {
  outline: 0; border-color: #111; box-shadow: 0 0 0 4px rgba(253, 196, 27, .45);
}
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #d93025; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; }
@media (min-width: 640px) {
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 6px); float: left; }
  .woocommerce form .form-row-last { float: right; }
  .woocommerce form .form-row-wide, .woocommerce form .form-row.notes { clear: both; }
}
.woocommerce form::after, .woocommerce-shipping-fields__field-wrapper::after, .woocommerce-billing-fields__field-wrapper::after { content: ""; display: table; clear: both; }
.select2-container .select2-selection--single { height: 50px !important; border: 1.5px solid var(--line) !important; border-radius: 12px !important; }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 48px !important; padding-left: 14px !important; }
.select2-container .select2-selection--single .select2-selection__arrow { height: 48px !important; right: 8px !important; }
.select2-dropdown { border-color: var(--line) !important; border-radius: 12px !important; overflow: hidden; }
.select2-results__option--highlighted[aria-selected], .select2-results__option--highlighted[data-selected] { background: #111 !important; color: var(--gold) !important; }

/* ---------- Tables (cart, order details) ---------- */
.woocommerce table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: .94rem; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.woocommerce table.shop_table tr:last-child td, .woocommerce table.shop_table tr:last-child th { border-bottom: 0; }
.woocommerce table.shop_table thead th { background: #111; color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.woocommerce table.shop_table img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.woocommerce table.shop_table .thumb-pv { width: 72px; height: 72px; }
.woocommerce table.shop_table .product-remove a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: #111 !important; font-size: 1.1rem; text-decoration: none; }
.woocommerce table.shop_table .product-name a { font-weight: 700; }
.woocommerce table.shop_table dl.variation { margin: 4px 0 0; font-size: .82rem; color: var(--muted); display: grid; grid-template-columns: auto 1fr; gap: 0 6px; }
.woocommerce table.shop_table dl.variation dt { font-weight: 700; color: var(--ink-2); }
.woocommerce table.shop_table dl.variation dd { margin: 0; }
.woocommerce table.shop_table dl.variation p { margin: 0; }
.woocommerce .quantity .qty { width: 72px; min-height: 42px; border: 1.5px solid var(--line); border-radius: 999px; text-align: center; font-weight: 700; }
.woocommerce .cart .actions { text-align: right; }
.woocommerce .cart .actions .coupon { display: flex; gap: 8px; float: left; }
.woocommerce .cart .actions .coupon .input-text { min-height: 46px; border-radius: 999px; padding: 0 14px; border: 1.5px solid var(--line); }
.woocommerce .cart-collaterals { margin-top: 24px; }
.woocommerce .cart_totals { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.woocommerce .cart_totals h2 { font-size: 1.3rem; }
.woocommerce .cart_totals table.shop_table { border: 0; border-radius: 0; }
.woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; }
.woocommerce-shipping-methods li { margin: 2px 0; }
.idw-ngn-row th, .idw-ngn-row td { background: #fffbea; }
.idw-ngn-row strong { font-size: 1.1rem; }
.idw-ngn-note { display: block; font-size: .76rem; color: var(--muted); font-weight: 500; margin-top: 2px; }
.order-total .idw-money { font-size: 1.15rem; }

@media (max-width: 767px) {
  .woocommerce table.shop_table_responsive thead { display: none; }
  .woocommerce table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--line); }
  .woocommerce table.shop_table_responsive tr td { display: flex; justify-content: space-between; gap: 10px; text-align: right; border: 0; padding: 8px 14px; }
  .woocommerce table.shop_table_responsive tr td::before { content: attr(data-title); font-weight: 700; text-align: left; }
  .woocommerce table.shop_table_responsive tr td.product-remove::before, .woocommerce table.shop_table_responsive tr td.product-thumbnail::before, .woocommerce table.shop_table_responsive tr td.actions::before { display: none; }
  .woocommerce table.shop_table_responsive tr td.product-thumbnail { justify-content: center; }
  .woocommerce .cart .actions .coupon { float: none; margin-bottom: 10px; }
  .woocommerce .cart .actions .button { width: 100%; }
}

/* ---------- Checkout ---------- */
.woocommerce-checkout .woocommerce { max-width: 1100px; }
form.checkout { display: grid; gap: 20px; }
@media (min-width: 960px) {
  form.checkout { grid-template-columns: 1.25fr 1fr; align-items: start; }
  form.checkout > .col2-set { grid-column: 1; }
  form.checkout > #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; }
  form.checkout > #order_review { grid-column: 2; grid-row: 1; position: sticky; top: 84px; margin-top: 44px; }
}
form.checkout .col2-set { display: grid; gap: 20px; }
form.checkout .col2-set .col-1, form.checkout .col2-set .col-2 { width: 100% !important; float: none !important; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 16px; }
.woocommerce-billing-fields > h3, #order_review_heading, .co-h { font-family: var(--ff-head); font-size: 1.3rem; display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.woocommerce-billing-fields > h3::before { content: "1"; }
.woocommerce-billing-fields > h3::before, .co-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #111; font-size: .95rem; font-weight: 800; flex: none; }
.co-sub { margin: -6px 0 12px; }
#order_review { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
#order_review table.shop_table { border: 0; border-radius: 0; }
#order_review table.shop_table thead th { background: transparent; color: var(--muted); }
#order_review .product-name { font-weight: 600; }
.woocommerce-checkout-payment { margin-top: 12px; }
.woocommerce-checkout-payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.woocommerce-checkout-payment ul.payment_methods li { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.woocommerce-checkout-payment ul.payment_methods li img { max-height: 24px; display: inline-block; vertical-align: middle; margin-left: 6px; }
.woocommerce-checkout-payment .payment_box { background: var(--soft); border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: .88rem; }
.woocommerce-privacy-policy-text { font-size: .8rem; color: var(--muted); }
.woocommerce-terms-and-conditions-wrapper { margin: 10px 0; }
.woocommerce form.checkout_coupon { background: #fff; border: 1.5px dashed var(--line); border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.woocommerce-form-coupon-toggle .woocommerce-info { margin-top: 0; }

/* Address suggestions (Google) */
.addr-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; border: 1.5px solid #111; border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; margin-top: 4px; }
.addr-suggest button { display: grid; width: 100%; text-align: left; border: 0; background: #fff; padding: 10px 14px; border-bottom: 1px solid var(--line); gap: 1px; }
.addr-suggest button:hover, .addr-suggest button.on { background: #fff8dc; }
.addr-suggest small { color: var(--muted); font-size: .8rem; }
.addr-foot { display: flex; justify-content: space-between; gap: 8px; padding: 8px 14px; font-size: .74rem; color: var(--muted); background: var(--soft); }
.addr-foot .g { font-weight: 700; }

/* ---------- Sign in / create account ---------- */
.auth { max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px 18px; box-shadow: var(--shadow); }
.auth h2 { font-size: 1.5rem; margin-bottom: 4px; }
.auth form { margin-top: 14px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.auth-tabs button { border: 0; background: transparent; border-radius: 999px; min-height: 42px; font-weight: 700; color: var(--muted); }
.auth-tabs button.on { background: #111; color: var(--gold); }
.auth-why { display: flex; gap: 10px; align-items: flex-start; background: #fff8dc; border: 1.5px solid var(--gold); border-radius: 14px; padding: 12px; margin-bottom: 16px; font-size: .9rem; }
.auth-why p { margin: 0; }
.auth-why span { font-size: 1.2rem; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .88rem; }
.auth-row label { display: inline-flex !important; gap: 6px; align-items: center; font-weight: 500 !important; margin: 0 !important; }
.auth-row .lost { text-decoration: underline; }
.auth .btn-block, .auth button[type=submit] { width: 100%; margin-top: 6px; }
.auth-switch { text-align: center; margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.auth-switch .link-btn { font-weight: 700; color: #111; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
.auth small.muted { display: block; margin-top: 4px; font-size: .78rem; }
.auth .woocommerce-privacy-policy-text p { font-size: .78rem; color: var(--muted); }
.auth .field-row::after { content: ""; display: table; clear: both; }
@media (min-width: 900px) { .auth { padding: 28px; } }

/* ---------- My account ---------- */
.woocommerce-account .woocommerce { display: grid; gap: 20px; }
@media (min-width: 900px) { .woocommerce-account.logged-in .woocommerce { grid-template-columns: 240px 1fr; align-items: start; } }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; display: flex; gap: 4px; overflow-x: auto; }
@media (min-width: 900px) { .woocommerce-MyAccount-navigation ul { flex-direction: column; } }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 12px; font-weight: 600; white-space: nowrap; }
.woocommerce-MyAccount-navigation .is-active a { background: #111; color: var(--gold); }
.woocommerce-MyAccount-content { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; min-width: 0; }
.woocommerce-MyAccount-content mark { background: var(--gold); padding: 0 4px; border-radius: 4px; }
.woocommerce-orders-table .button { min-height: 36px; padding: 0 12px; font-size: .82rem; }
.woocommerce-Addresses { display: grid; gap: 16px; }
.woocommerce-Address-title h3 { font-size: 1.1rem; }

/* ---------- Tracking ---------- */
.track-wrap { max-width: 720px; display: grid; gap: 16px; }
.track_order { margin: 0; }
.track_order p:first-child { color: var(--muted); }
.track_order .form-row-first, .track_order .form-row-last { width: 100% !important; float: none !important; }
.track-panel { margin: 16px 0; }
.track-panel h2 { font-size: 1.3rem; }
.track-panel .order-no { display: inline-grid; grid-template-columns: auto auto; gap: 0 10px; border-color: #111; }
.track-panel .order-no small { font-size: .7rem; color: var(--muted); grid-column: 1 / -1; text-transform: uppercase; letter-spacing: .1em; }
.track-panel .order-no span { font-size: .8rem; font-weight: 500; color: var(--muted); align-self: center; }
.tl li.done::before { background: #111; }
.tl li.done .dot { background: #111; border-color: #111; color: var(--gold); }
.tl li.done .dot::after { content: "✓"; font-weight: 800; }
.tl li.now .dot { border-color: #111; background: var(--gold); }
.track-msg { background: var(--soft); border-radius: 14px; padding: 14px; }
.my-orders h2 { font-size: 1.2rem; }
.my-order { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.my-order:last-child { border-bottom: 0; }
.my-order span { color: var(--muted); }
.my-order .st { margin-left: auto; color: #111; background: var(--soft); padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.my-order .st-completed { background: #111; color: var(--gold); }
.my-order .st-processing, .my-order .st-idw-making, .my-order .st-idw-shipped, .my-order .st-idw-out { background: var(--gold); }
.woocommerce-order-details, .woocommerce-customer-details { margin-top: 20px; }
.woocommerce-order-overview { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.woocommerce-order-overview li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: .8rem; color: var(--muted); }
.woocommerce-order-overview li strong { display: block; color: #111; font-size: 1rem; }
.woocommerce-thankyou-order-received { font-family: var(--ff-head); font-size: 1.4rem; font-weight: 800; border: 0 !important; background: var(--gold) !important; padding: 16px 18px !important; }
.woocommerce-thankyou-order-received::before { display: none; }

/* ---------- Help page ---------- */
.help-wrap { max-width: 820px; }
.help-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 26px; }
.help-card { display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.help-card span { font-size: 1.5rem; }
.help-card small { color: var(--muted); }
.help-card:hover { border-color: #111; }
.del-table { display: grid; gap: 8px; margin-bottom: 6px; }
.del-table div { display: flex; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.help-wrap h2 { margin-top: 26px; }

/* ---------- Shop extras ---------- */
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select { height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; padding: 0 12px; font-size: .86rem; font-weight: 600; max-width: 100%; }
.filter-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-row .count { margin-right: auto; }
.pager { margin-top: 24px; }
.woocommerce-pagination ul { list-style: none; display: flex; gap: 6px; justify-content: center; padding: 0; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; }
.woocommerce-pagination .current { background: #111; color: var(--gold); border-color: #111; }
ul.products { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { ul.products { grid-template-columns: repeat(4, 1fr); } }
.idw-li { list-style: none; }

/* ---------- Product page extras ---------- */
.pdp-short p { margin: 0 0 10px; }
.woo-addtocart .variations select { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 12px; }
#reviews .commentlist { list-style: none; padding: 0; }
#reviews .comment_container { display: flex; gap: 10px; }
#reviews .comment_container img { border-radius: 50%; width: 40px; height: 40px; }
#reviews .star-rating { color: #111; }
.stars a { color: #111; }
.prose { max-width: 760px; }
.prose img { border-radius: 14px; height: auto; }
