* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #0b1d2a;
  color: white;
  overflow-x: hidden;
}


/* =========================================================
   MOVING WAVES
========================================================= */

.waves {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      #0b2638 0%,
      #0c3449 50%,
      #071b29 100%
    );
}

.wave {
  position: absolute;
  width: 200%;
  height: 45vh;
  left: -50%;
  border-radius: 45% 55% 0 0;
  opacity: 0.25;
  animation: waveMove linear infinite;
}

.wave-one {
  bottom: -20vh;
  background: rgba(70, 190, 255, 0.28);
  animation-duration: 18s;
}

.wave-two {
  bottom: -25vh;
  background: rgba(30, 150, 220, 0.25);
  animation-duration: 25s;
  animation-direction: reverse;
}

.wave-three {
  bottom: -30vh;
  background: rgba(100, 220, 255, 0.18);
  animation-duration: 32s;
}

@keyframes waveMove {

  0% {
    transform:
      translateX(-8%)
      rotate(0deg);
  }

  50% {
    transform:
      translateX(8%)
      rotate(2deg);
  }

  100% {
    transform:
      translateX(-8%)
      rotate(0deg);
  }

}


/* =========================================================
   PAGE
========================================================= */

.order-page {
  width: min(1150px, calc(100% - 40px));
  margin: 0 auto;
  padding: 45px 0 80px;
}


/* =========================================================
   HEADER
========================================================= */

.order-header {
  text-align: center;
  margin-bottom: 35px;
  position: relative;
}

.order-header h1 {
  margin: 0;
  font-size: 42px;
}

.order-header p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.back-button {
  position: absolute;
  left: 0;
  top: 5px;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.2);
}


/* =========================================================
   ORDER CONTAINER
========================================================= */

.order-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}


/* =========================================================
   SECTIONS
========================================================= */

.order-section {
  background: rgba(8, 24, 36, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.order-section h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.section-description {
  margin: 0 0 25px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}


/* =========================================================
   FORM
========================================================= */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  padding: 13px 14px;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(100, 210, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group select option {
  background: #102b3c;
  color: white;
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.edit-shulker-button {
  width: 100%;
  border: 1px solid rgba(121, 211, 255, 0.7);
  border-radius: 10px;
  padding: 13px 14px;
  color: #071a27;
  background: #4dc8f6;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, filter .2s;
}

.edit-shulker-button:hover { transform: translateY(-1px); filter: brightness(1.08); }


/* =========================================================
   CART ITEMS
========================================================= */

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item-info {
  min-width: 0;
}

.cart-item-title {
  font-weight: 700;
  margin-bottom: 5px;
}

.cart-item-price {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.cart-empty {
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 30px 10px;
}


/* =========================================================
   SUMMARY
========================================================= */

.summary-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 22px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.summary-row span {
  color: rgba(255, 255, 255, 0.65);
}

.summary-row strong {
  font-size: 18px;
}

.buildnitro-discount-row span,
.buildnitro-discount-row strong { color: #c878ff; }

.total-row {
  margin-top: 10px;
}

.total-row strong {
  font-size: 28px;
}


/* =========================================================
   ORDER BUTTON
========================================================= */

.place-order-button {
  width: 100%;
  margin-top: 25px;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: #4ecbff;
  color: #06131c;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.place-order-button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.place-order-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}


/* =========================================================
   MESSAGE
========================================================= */

.order-message {
  min-height: 20px;
  margin: 15px 0 0;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

  .order-container {
    grid-template-columns: 1fr;
  }

  .order-header h1 {
    font-size: 32px;
  }

  .back-button {
    position: static;
    margin-bottom: 20px;
  }

}


@media (max-width: 500px) {

  .order-page {
    width: min(
      calc(100% - 20px),
      1150px
    );

    padding-top: 25px;
  }

  .order-section {
    padding: 22px;
  }

}


/* =========================================================
   MINEOUT AREA V17
========================================================= */
.mineout-area-group {
  margin-top: 22px;
  padding: 18px;
  border: 2px solid #287fa4;
  border-radius: 12px;
  background: rgba(7, 27, 42, .92);
}

.mineout-area-heading > span,
.mineout-area-heading h3,
.mineout-order-size-grid span,
.mineout-order-estimate,
.update-mineout-size {
  font-family: "Minecraft Ten", Arial, sans-serif;
}

.mineout-area-heading > span {
  display: block;
  margin-bottom: 7px;
  color: #68dcff;
  font-size: 12px;
  letter-spacing: .12em;
}

.mineout-area-heading h3 {
  margin: 0;
  color: #effcff;
  font-size: 22px;
}

.mineout-area-heading p {
  margin: 8px 0 15px;
  color: #a8cedf;
}

.mineout-order-size-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mineout-order-size-grid label {
  display: grid;
  gap: 7px;
  margin: 0;
}

.mineout-order-size-grid span {
  color: #7ce5ff;
}

.mineout-order-size-grid input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 2px solid #287fa4;
  border-radius: 8px;
  background: #142b3b;
  color: #fff;
  font-family: "Minecraft Ten", Arial, sans-serif;
  font-size: 16px;
}

.mineout-order-estimate {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid rgba(104, 220, 255, .35);
  border-radius: 8px;
  background: #092033;
  color: #8fbed2;
}

.mineout-order-estimate strong {
  color: #68dcff;
  font-family: "Minecraft Ten", Arial, sans-serif;
}

.update-mineout-size {
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  border: 2px solid #65dcff;
  border-radius: 8px;
  background: #1280af;
  color: #fff;
  cursor: pointer;
}

.mineout-size-message {
  min-height: 18px;
  margin: 8px 0 0;
  color: #ff9fa9;
  font-weight: 800;
}

.order-summary .cart-item-title,
.order-summary .cart-item-price {
  /* Keep the Mineouts order line visually consistent with the Minecraft UI. */
}

@media (max-width: 600px) {
  .mineout-order-size-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mineout-order-size-grid input {
    padding: 10px 8px;
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  #orderMineoutX,
  #orderMineoutY,
  #orderMineoutZ {
    font-size: 16px !important;
  }
}

/* Hide BuildNitro discount completely for users without an active discount */
.buildnitro-discount-row[hidden] {
  display: none !important;
}
