/* AgroLatvija parcel-locker checkout UI — scoped to .op-ui so it never leaks
   into the rest of the WoodMart checkout. Accent = brand green #174735. */

.op-ui {
  --op-accent: #174735;
  --op-accent-100: #e3ece8;
  --op-accent-700: #123a2b;
  --op-accent-900: #0b241b;
  --op-text: #201e1d;
  --op-bg: #ffffff;
  --op-divider: rgba(32, 30, 29, 0.4);
  --op-neutral-100: #f6f6f5;
  --op-neutral-600: #7d7979;
  --op-neutral-700: #605d5d;
  margin: 18px 0 6px;
}

.op-card { /* no box: bare tile grid */ }

/* Tile grid */
.op-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: stretch;
}
.op-tile {
  position: relative;
  cursor: pointer;
  background: var(--op-bg);
  border: 1px solid var(--op-divider);
  padding: 16px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
  transition: border-color 0.12s ease;
}
.op-tile:hover { border-color: var(--op-text); }
.op-tile:focus-visible { outline: 2px solid var(--op-accent); outline-offset: 2px; }
.op-tile-ring { position: absolute; inset: 0; border: 2px solid var(--op-accent); pointer-events: none; }
.op-tile-check {
  position: absolute; top: 0; right: 0; width: 20px; height: 20px;
  background: var(--op-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.op-tile-ic { color: var(--op-accent); }
.op-tile-ic svg { display: block; }
.op-tile-name { font-weight: 600; font-size: 12px; line-height: 1.2; }
.op-tile-price { margin-top: auto; font-weight: 700; font-size: 13px; color: var(--op-accent-700); }

/* Info panel */
.op-info {
  display: flex; gap: 9px; margin-top: 12px; padding: 12px 13px;
  background: var(--op-accent-100); border-left: 2px solid var(--op-accent);
}
.op-info .op-ic { flex: none; color: var(--op-accent-700); margin-top: 1px; display: inline-flex; }
.op-info-text { font-size: 12.5px; color: var(--op-accent-900); line-height: 1.45; }

/* Locker box */
.op-locker-box {
  margin-top: 12px; border: 1px solid var(--op-divider);
  background: var(--op-neutral-100); padding: 15px;
}
.op-locker-label {
  display: flex; align-items: center; gap: 7px; margin-bottom: 9px;
  font-size: 11.5px; color: var(--op-neutral-700);
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700;
}
.op-locker-label .op-ic { color: var(--op-accent); display: inline-flex; }
.op-locker-select-wrap { position: relative; }
.op-chev {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--op-neutral-600);
}
.op-chev svg { display: block; }

/* Raw <select> fallback (before selectWoo enhances it) */
.op-pickup-select.input {
  width: 100%; min-height: 38px; padding: 8px 36px 8px 10px;
  -webkit-appearance: none; appearance: none;
  background: var(--op-bg); border: 1px solid var(--op-divider); border-radius: 0;
  font-size: 14px; color: var(--op-text);
}

/* selectWoo widget → square corners to match the artifact */
.op-locker-box .select2-container--default .select2-selection--single {
  min-height: 38px; border: 1px solid var(--op-divider); border-radius: 0;
  background: var(--op-bg);
}
.op-locker-box .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 36px; padding-left: 10px;
}
.op-locker-box .select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px; }

/* Takeover: hide WooCommerce's native shipping-method list */
body.op-takeover ul#shipping_method,
body.op-takeover #shipping_method,
body.op-takeover tr.woocommerce-shipping-totals.shipping,
body.op-takeover .woocommerce-shipping-totals.shipping {
  display: none !important;
}

/* Narrow viewports */
@media (max-width: 400px) {
  .op-grid { grid-template-columns: repeat(2, 1fr); }
}
