﻿/* NN SHIPMENTS - ticket 13
   The two blocks the buyer reads after a purchase: where each parcel is,
   and the promise that covers a mistake. Same quiet rows as the delivery
   block above them, so the order page reads as one column. */

.nn-ship,
.nn-returns {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid var(--color-sand, #E7E0D6);
}

.nn-ship__title,
.nn-returns__title {
  margin: 0 0 .75rem;
  font-size: var(--type-label-sm-size, 11px);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-stone, #A79D91);
}

.nn-ship__parcel {
  padding: .75rem 0;
  border-top: 1px solid var(--color-sand, #E7E0D6);
}

.nn-ship__parcel:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.nn-ship__label {
  margin: 0;
  font-size: var(--type-label-sm-size, 11px);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-stone, #A79D91);
}

.nn-ship__courier {
  margin: .15rem 0 0;
  font-size: var(--type-body-size, 14px);
  line-height: 1.5;
  color: var(--color-charcoal, #20201F);
}

.nn-ship__code {
  margin: .1rem 0 0;
  font-size: var(--type-body-size, 14px);
  line-height: 1.5;
  color: var(--color-charcoal, #20201F);
  word-break: break-word;
}

.nn-ship__code a {
  color: var(--color-charcoal, #20201F);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.nn-ship__date,
.nn-ship__note {
  margin: .15rem 0 0;
  font-size: var(--type-body-sm-size, 12px);
  line-height: 1.55;
  color: var(--color-stone, #A79D91);
}

.nn-ship__note {
  margin-top: .85rem;
  color: var(--color-charcoal, #20201F);
}

.nn-returns__line {
  margin: 0 0 .5rem;
  font-size: var(--type-body-sm-size, 12px);
  line-height: 1.55;
  color: var(--color-charcoal, #20201F);
}

.nn-returns__link {
  margin: .75rem 0 0;
  font-size: var(--type-body-sm-size, 12px);
}

.nn-returns__link a {
  color: var(--color-charcoal, #20201F);
  text-decoration: underline;
  text-underline-offset: .18em;
}

/* The shop's own order screen: a plain block under the order details. */
.nn-admin-ship {
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid #E7E0D6;
}

.nn-admin-ship h3 {
  margin: 0 0 .5rem;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #A79D91;
}

.nn-admin-ship p {
  margin: 0 0 .5rem;
  font-size: 13px;
  line-height: 1.5;
}

.nn-admin-ship textarea {
  width: 100%;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: .75rem;
}

@media (max-width: 600px) {
  .nn-ship,
  .nn-returns {
    padding: 1rem;
  }
}

/* The order table paints its cell links charcoal; a button sitting in a
   cell (the courier plugin's Track action) must keep its ivory label or it
   reads as an empty black box. */
.woocommerce-account table.shop_table td a.button,
.woocommerce-account table.shop_table td a.woocommerce-button {
  color: var(--color-ivory, #FBF8F3);
}

.woocommerce-account table.shop_table td a.button:hover,
.woocommerce-account table.shop_table td a.woocommerce-button:hover {
  color: var(--color-charcoal, #20201F);
}

/* The returns block's title is a sentence, not a label: it keeps the
   heading's own case. */
.nn-returns__title {
  font-size: var(--type-label-md-size, 12px);
  letter-spacing: .04em;
  text-transform: none;
  color: var(--color-charcoal, #20201F);
}

/* Two buttons in one actions cell need a gap; the courier plugin adds its
   Track action beside the shop plugin's own button. */
.woocommerce-account table.shop_table td a.button + a.ast_track,
.woocommerce-account table.shop_table td a.button + a.ast_multi_track {
  margin-left: .4rem;
}

/* The account's "tracking appears here once your parcel is on its way" line
   is only true while no parcel has a code; with a Track button on the list
   it would contradict what the buyer sees. */
.woocommerce-account table.shop_table:has(a.ast_track) ~ .nn-account-note,
.woocommerce-account table.shop_table:has(a.ast_multi_track) ~ .nn-account-note {
  display: none;
}

/* A refunded order prints the old total struck through beside the new one;
   the two need air between them or they read as one number. */
.woocommerce-account .woocommerce-order-details del,
.woocommerce-account .woocommerce-table--order-details del {
  margin-right: .45rem;
  color: var(--color-stone, #A79D91);
  text-decoration: line-through;
}

.woocommerce-account .woocommerce-order-details ins,
.woocommerce-account .woocommerce-table--order-details ins {
  text-decoration: none;
}
