/* ==========================================
   GLOBAL CLEANUP (REMOVE WOO UI)
   ========================================== */

body.woocommerce-order-received .site-header,
body.woocommerce-order-received .site-footer,
body.woocommerce-order-received .entry-header,
body.woocommerce-order-received .post-title,
body.woocommerce-order-received .entry-title,
body.woocommerce-order-received .woocommerce-notices-wrapper {
  display: none !important;
}

body.woocommerce-order-received,
body.woocommerce-order-received .site-content,
body.woocommerce-order-received .entry-content {
  background: #fff !important;
  min-height: 100vh;
}

body.woocommerce-order-received .woocommerce-order,
body.woocommerce-order-received .woocommerce-thankyou-order-details,
body.woocommerce-order-received .woocommerce-customer-details {
  display: none !important;
}


/* ==========================================
   PROCESSING PAGE (ORDER PAY)
   ========================================== */

body.woocommerce-order-pay {
  background: #f7f7f7;
  overflow: hidden;
}

.krumpld-processing {
  position: fixed;
  inset: 0;
  background: #f7f7f7;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 20px;
}

.kp-header {
  position: absolute;
  top: 24px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #111;
}

.kp-message h1 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}

.kp-message p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.kp-loader {
  width: 24px;
  height: 24px;
  margin: 32px auto;
  border: 2px solid #e5e5e5;
  border-top: 2px solid #111;
  border-radius: 50%;
  animation: kp-spin 0.8s linear infinite;
}

@keyframes kp-spin {
  to {
    transform: rotate(360deg);
  }
}

.kp-subtext {
  font-size: 13px;
  color: #888;
}


/* ==========================================
   SUCCESS PAGE
   ========================================== */

.kp-success {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 20px 80px;
}


/* ==========================================
   LABEL
   ========================================== */

.kp-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #888;
  margin-bottom: 16px;
}


/* ==========================================
   TITLE
   ========================================== */

.kp-title {
  font-size: 34px;
  font-weight: 500;
  color: #111;
  margin-bottom: 14px;
}


/* ==========================================
   SUBTEXT
   ========================================== */

.kp-subtext {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 56px;
}


/* ==========================================
   SECTION BLOCKS
   ========================================== */

.kp-block {
  margin-bottom: 48px;
}

.kp-block-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #888;
  margin-bottom: 16px;
}


/* ==========================================
   ROW SYSTEM
   ========================================== */

.kp-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.kp-row span:first-child {
  font-size: 14px;
  color: #777;
}

.kp-row span:last-child {
  font-size: 14px;
  color: #111;
  text-align: right;
}


/* ==========================================
   TOTAL
   ========================================== */

.kp-total {
  margin-top: 16px;
  font-weight: 500;
}


/* ==========================================
   DELIVERY CONTROL
   ========================================== */

.kp-delivery {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.kp-delivery-label,
.kp-delivery-dates {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .kp-delivery {
    display: inline;
  }

  .kp-delivery-label::after {
    content: " ";
  }
}


/* ==========================================
   ITEMS
   ========================================== */

.kp-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-bottom: 24px;
}

.kp-item-left {
  display: flex;
  flex-direction: column;
}

.kp-item-name {
  font-size: 15px;
  color: #111;
  margin-bottom: 6px;
  line-height: 1.5;
}

.kp-item-meta {
  font-size: 13px;
  color: #777;
}

.kp-price {
  font-size: 15px;
  color: #111;
  text-align: right;
  white-space: nowrap;
}


/* ==========================================
   ADDRESS
   ========================================== */

.kp-address {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}


/* ==========================================
   EMAIL
   ========================================== */

.kp-email {
  font-size: 13px;
  color: #777;
  margin-top: 40px;
  margin-bottom: 50px;
}


/* ==========================================
   MANAGE YOUR ORDER
   ========================================== */

.kp-account-section {
  border-top: 1px solid #e5e5e5;
  padding-top: 48px;
  margin-top: 48px;
  margin-bottom: 48px;
}

.kp-account-heading {
  margin-bottom: 24px;
}

.kp-account-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #888;
  margin: 0 0 14px;
}

.kp-account-intro {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}


/* ==========================================
   ACCOUNT ACTION CARDS
   ========================================== */

.kp-account-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kp-account-card {
  display: flex;
  align-items: center;
  gap: 20px;

  width: 100%;
  min-height: 84px;

  padding: 20px 24px;
  box-sizing: border-box;

  /* Subtle box only. No filled card background. */
  border: 1px solid #d9d6d0;
  background: transparent;

  color: #111;
  text-decoration: none;

  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.kp-account-card:hover {
  border-color: #111;
  background: rgba(255, 255, 255, 0.18);
  color: #111;
}

.kp-account-card:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}


/* ==========================================
   ACCOUNT CARD ICON
   ========================================== */

/*
 * Minimal monochrome icon.
 *
 * The previous filled black/orange icon blocks
 * are intentionally removed.
 */

.kp-account-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  color: #111;

  border: 0;

  font-size: 20px;
  line-height: 1;
}


/*
 * If the icon is an SVG, keep it monochrome.
 */

.kp-account-icon svg {
  width: 24px;
  height: 24px;

  display: block;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}


/* ==========================================
   ACCOUNT CARD CONTENT
   ========================================== */

.kp-account-content {
  min-width: 0;
  flex: 1;
}

.kp-account-card-title {
  display: block;

  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;

  color: #111;
  margin-bottom: 5px;
}

.kp-account-card-meta {
  display: block;

  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: #777;
}


/* ==========================================
   ACCOUNT CARD ARROW
   ========================================== */

.kp-account-arrow {
  flex: 0 0 auto;

  font-size: 20px;
  line-height: 1;

  color: #f36b3d;

  transition: transform 0.2s ease;
}

.kp-account-card:hover .kp-account-arrow {
  transform: translateX(3px);
}


/* ==========================================
   CONTINUE SHOPPING (button variant)
   ========================================== */

/*
 * .kp-btn is a SHARED class used elsewhere in the
 * theme (e.g. page-payment-failed.php) and is also
 * forced to a filled black/white button globally in
 * style.css via `body .kp-btn { ... !important }`.
 * Left unchanged here on purpose — do not restyle
 * this class for a single page, it will affect every
 * other button that reuses it.
 */

.kp-btn {
  display: inline-block;

  background: #111;
  color: #fff;

  padding: 14px 28px;

  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.04em;

  transition: opacity 0.2s ease;
}

.kp-btn:hover {
  opacity: 0.85;
  color: #fff;
}

.kp-btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}


/* ==========================================
   CONTINUE SHOPPING (plain text link variant)
   Used ONLY on the thank-you page. A dedicated
   class so it can never collide with .kp-btn's
   global !important rules in style.css.
   ========================================== */

.kp-continue-link,
.kp-continue-link:link,
.kp-continue-link:visited,
.kp-continue-link:hover,
.kp-continue-link:active {
  display: inline-block;

  background: transparent;
  color: #1a1a1a;

  padding: 4px 0;

  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.04em;

  transition: opacity 0.2s ease;
}

.kp-continue-link:hover {
  opacity: 0.65;
}

.kp-continue-link:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 3px;
  color: #1a1a1a;
}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 640px) {

  .kp-success {
    padding: 64px 16px;
  }

  .kp-title {
    font-size: 26px;
  }

  .kp-row {
    grid-template-columns: 100px 1fr;
  }

  .kp-item {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .kp-item-left {
    max-width: 85%;
  }

  .kp-price {
    text-align: right;
    white-space: nowrap;
  }

  .kp-item-name {
    word-break: break-word;
  }


  /* ========================================
     ACCOUNT SECTION
     ======================================== */

  .kp-account-section {
    padding-top: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .kp-account-options {
    gap: 12px;
  }

  .kp-account-card {
    min-height: 76px;
    padding: 16px;
    gap: 14px;
  }

  .kp-account-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;

    font-size: 18px;
  }

  .kp-account-icon svg {
    width: 22px;
    height: 22px;
  }

  .kp-account-card-title {
    font-size: 14px;
  }

  .kp-account-card-meta {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .kp-account-arrow {
    font-size: 18px;
  }

  .kp-btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .kp-continue-link {
    /* Stays a plain text link on mobile too — no full-width button block */
    display: inline-block;
    width: auto;
    text-align: left;
  }
}