@charset "utf-8";

/* ----------------- GLOBAL RESET / BASE ----------------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  color: #444;
}

html {
  -moz-appearance: textfield;
}

body,
html {
  width: 100%;
  background: #F5F5F5;
  font-size: 16px;
}

img {
  display: block;
}

a {
  text-decoration: none;
  color: blue;
}

/* ----------------- HEADER ----------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #222;
  height: 60px;
  z-index: 1000;
  color: #BBB;
  padding: 0 1rem;

  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo-wrap {
  display: flex;
  align-items: center;
}

.logo img {
  width: 50px;
}

.header-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.header-title p {
  color: #EEE;
  font-size: 1rem;
  font-weight: 600;
}

/* Push content down below fixed header */
main {
  padding-top: 70px;
}

/* ----------------- UPLOAD BLOCK ----------------- */

.pet-image-section {
  max-width: 600px;
  margin: 1.5rem auto;
  text-align: center;
}

.image-wrapper {
  display: inline-block;
  max-width: 600px;
  width: 90%;
  border: 1px solid #000;
  border-radius: 15px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: auto;
}

.upload-error {
  margin-top: 0.5rem;
  min-height: 1.2em;
  color: #c00;
  font-size: 0.9rem;
}

/* Filename display under error */
.upload-filename {
  margin-top: 0.25rem;
  min-height: 1.2em;
  font-size: 0.85rem;
  color: #666;
}

.upload-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.file-label {
  display: inline-block;
  cursor: pointer;
}

/* ----------------- BUTTONS ----------------- */

.btn-primary,
.upload-form button {
  background: #444;
  color: #DDD;
  border: none;
  padding: 0.6rem 1.75rem;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
}

.btn-primary:hover,
.upload-form button:hover {
  background: #333;
  color: #FFF;
}

/* ----------------- FORM LAYOUT ----------------- */

.order-form-section {
  max-width: 600px;
  margin: 1rem auto 3rem auto;
  padding: 0 1rem 2rem 1rem;
}

.form-block {
  margin-top: 1.5rem;
}

.section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.subheading {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.pay-help-text {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #444;
  min-height: 1.2em;
}

.field-group {
  margin-top: 0.75rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Shipping-specific fields: hidden by default (Pickup) */
.shipping-only {
  display: none;
}

.text-input {
  border: 1px solid #999;
  background: white;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  width: 100%;
  font-size: 1rem;
}

/* ----------------- CHOICE BUTTONS ----------------- */

.choice-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.choice-btn {
  border: 1px solid #999;
  border-radius: 10px;
  background: #fff;
  padding: 0.6rem 0.75rem;
  min-width: 120px;
  cursor: pointer;
  text-align: center;
}

.choice-btn.selected {
  background: #fff9cc;
  border-color: #ccb200;
}

/* Disabled choice (out of stock) */
.choice-btn.disabled {
  background: #eee;
  color: #aaa;
  border-color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.7;
}

/* Bigger text in ALL choice buttons */
.choice-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

/* Larger text for Pay Method buttons */
.pay-btn {
  font-size: 1.15rem;
  font-weight: 700;
}

.choice-price {
  font-size: 1rem;
  font-weight: 600;
}

.choice-detail {
  font-size: 0.9rem;
}

/* Explicit centering for pant style row */
.style-row {
  display: flex !important;
  justify-content: center !important;
}

/* ----------------- PANT & TOP SIZE BUTTONS ----------------- */
/* 5 columns ALWAYS, desktop + mobile */

.size-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.25rem;
  width: 100%;
}

.size-row .choice-btn {
  min-width: 0;
  padding: 0.45rem 0.25rem;
}

/* ----------------- OPTIONAL TOP ----------------- */

.top-size-block.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.checkbox-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Bigger checkbox with right margin before label */
.checkbox-row input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  transform: scale(2);
  transform-origin: center;
  margin-right: 0.75rem;
}

/* ----------------- SUMMARY BOXES ----------------- */

.summary-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0.25rem;
}

.summary-box {
  border: 1px solid #999;
  border-radius: 10px;
  padding: 0.5rem 0.25rem;
  flex: 1 1 25%;
  min-width: 0;
  text-align: center;
}

.summary-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.summary-value {
  font-size: 1rem;
  font-weight: 700;
}

/* ----------------- FOOTER ----------------- */

.footer {
  background: #222;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

/* Make sure footer text is light */
.footer,
.footer * {
  color: #BBB !important;
}

/* ----------------- RESPONSIVE TWEAKS ----------------- */

@media (max-width: 600px) {
  .choice-btn {
    padding: 0.5rem 0.6rem;
  }

  .choice-title {
    font-size: 1.05rem;
  }

  .choice-price {
    font-size: 1rem;
  }

  .choice-detail {
    font-size: 0.9rem;
  }

  .size-row .choice-title {
    font-size: 0.95rem;
  }

  .size-row .choice-detail {
    font-size: 0.8rem;
  }
}

@media (min-width: 820px) {
  .header {
    height: 70px;
  }
  main {
    padding-top: 80px;
  }
}
