@charset "utf-8";
/*****************
* Add Sale flow (/user/add-sale/*) design system.
* Every rule is scoped under .add-sale-page so shared classes
* (.brochure-list-*, .prize-list-*, .address_block, buttons) keep
* their legacy look on all other screens.
*****************/

.add-sale-page {
  max-width: 1200px;
}

/* --- page top --- */
.add-sale-page .back-link {
  font-size: 0.85rem;
  text-decoration: none;
}
.add-sale-page .back-link:before {
  content: "\2190\00a0";
}

.add-sale-page h1 {
  margin: 12px 0 2px 0;
  font-size: 1.5rem;
}

.add-sale-page .page-help {
  color: #5A6B7C;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 4px 0 8px 0;
}

/* --- section headers --- */
.add-sale-page .section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 4px 0;
}
.add-sale-page .section-header h2 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3D5A75;
  white-space: nowrap;
}
.add-sale-page .section-header .count-chip {
  background: #EEF4FA;
  border: 1px solid #C7D8E8;
  color: #3D5A75;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 3px 8px;
}
.add-sale-page .section-header .edit-link {
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #C7D8E8;
  border-radius: 10px;
  padding: 3px 10px;
  background: #FFF;
}
.add-sale-page .section-header .edit-link:hover {
  background: #EEF4FA;
}
.add-sale-page .section-header:after {
  content: "";
  flex: 1;
  border-top: 1px solid #D8DEE6;
}
.add-sale-page .section-header.locked h2,
.add-sale-page .section-header.locked .count-chip {
  color: #6B7784;
}
.add-sale-page .section-header.locked .count-chip {
  background: #F1F3F5;
  border-color: #D8DEE6;
}

.add-sale-page .section-note {
  color: #5A6B7C;
  font-size: 0.85rem;
  margin: 0 0 14px 0;
}

/* --- flat buttons --- */
.add-sale-page button.green-btn,
.add-sale-page input.green-btn,
.add-sale-page a.green-btn,
.add-sale-page button.grey-btn {
  margin: 0;
  padding: 11px 24px;
  border-radius: 6px;
  border: 1px solid;
  box-shadow: none;
  filter: none;
  font-size: 0.9rem;
  font-weight: 700;
}
.add-sale-page button.green-btn,
.add-sale-page input.green-btn,
.add-sale-page a.green-btn {
  background: #2E8B12;
  border-color: #26720F;
  color: #FFF;
}
.add-sale-page button.green-btn:hover,
.add-sale-page input.green-btn:hover,
.add-sale-page a.green-btn:hover {
  background: #26720F;
}
.add-sale-page button.grey-btn {
  background: #FFF;
  border-color: #A9B4C0;
  color: #33475C;
}
.add-sale-page button.grey-btn:hover {
  background: #EEF4FA;
  border-color: #4A7CA8;
}

/* --- sticky continue bar --- */
.add-sale-page .continue-top {
  margin: 10px 0 4px 0;
}
.add-sale-page .continue-row {
  margin: 28px 0;
}
.add-sale-page .continue-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FFF;
  border: 1px solid #D8DEE6;
  border-radius: 8px 8px 0 0;
  border-bottom: none;
  box-shadow: 0 -3px 12px rgba(51, 85, 119, 0.10);
  padding: 12px 16px;
  margin-top: 24px;
}
.add-sale-page .continue-bar .continue-hint {
  font-size: 0.9rem;
  color: #5A6B7C;
}
.add-sale-page .continue-bar .continue-hint.has-selection {
  color: #26720F;
  font-weight: 700;
}
.add-sale-page .continue-bar button.green-btn {
  margin-left: auto;
  padding: 11px 28px;
}

/* --- notices --- */
.add-sale-page .empty-notice {
  border: 1px solid #C7D8E8;
  background: #EEF4FA;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
  max-width: 640px;
  line-height: 1.5;
}
.add-sale-page .helpertxt {
  color: #5A6B7C;
}

/* --- choice cards (radio options presented as cards) --- */
.add-sale-page .choice-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0;
}
.add-sale-page .choice-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #FFF;
  border: 1px solid #D8DEE6;
  border-radius: 8px;
  padding: 14px 16px;
  min-width: 260px;
  max-width: 360px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.add-sale-page .choice-card:hover {
  border-color: #9FB8CE;
  box-shadow: 0 2px 8px rgba(51, 85, 119, 0.12);
}
.add-sale-page .choice-card input[type="radio"] {
  margin-top: 3px;
}
.add-sale-page .choice-card:has(input:checked) {
  background: #F2FAEF;
  border-color: #2E8B12;
  box-shadow: 0 0 0 1px #2E8B12;
}
.add-sale-page .choice-card .choice-title {
  display: block;
  font-weight: 700;
}
.add-sale-page .choice-card .choice-desc {
  display: block;
  color: #5A6B7C;
  font-size: 0.85rem;
  margin-top: 2px;
}

.add-sale-page .sub-heading {
  font-weight: 700;
  color: #33475C;
  margin: 18px 0 8px 0;
}
.add-sale-page .sub-heading a {
  font-weight: 400;
  font-size: 0.85rem;
}

/* --- form tables (label/input rows kept as tables for the toggle JS) --- */
.add-sale-page table.form-table {
  border-spacing: 0 6px;
}
.add-sale-page table.form-table > tbody > tr > td,
.add-sale-page table.form-table > tr > td {
  padding: 5px 14px 5px 0;
  line-height: 1.4;
}
.add-sale-page table.form-table td.bold {
  color: #33475C;
  width: 1%;
  white-space: nowrap;
}

/* --- brochure / prize card grids --- */
.add-sale-page .brochure-list-container,
.add-sale-page .prize-list-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
  margin-bottom: 10px;
}
.add-sale-page .prize-list-container {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.add-sale-page .brochure-list-image,
.add-sale-page .prize-list-image {
  float: none;
  width: auto;
  height: auto;
  margin: 0;
  position: relative;
  display: flex;
  gap: 14px;
  background: #FFF;
  border: 1px solid #D8DEE6;
  border-radius: 8px;
  padding: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.add-sale-page .prize-list-image {
  flex-direction: column;
  gap: 0;
}
.add-sale-page .brochure-list-image:not(.locked):hover,
.add-sale-page .prize-list-image:hover {
  border-color: #9FB8CE;
  box-shadow: 0 2px 8px rgba(51, 85, 119, 0.12);
}
.add-sale-page .brochure-list-image.selected,
.add-sale-page .prize-list-image.selected {
  background: #F2FAEF;
  border: 1px solid #2E8B12;
  box-shadow: 0 0 0 1px #2E8B12;
}
.add-sale-page .brochure-list-image.selected:after,
.add-sale-page .prize-list-image.selected:after {
  content: "\2713";
  position: absolute;
  top: -9px;
  right: -9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2E8B12;
  color: #FFF;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.add-sale-page .prize-list-image strong {
  margin-bottom: 12px;
}
.add-sale-page .prize-list-image button {
  margin-top: auto;
  align-self: flex-start;
}

.add-sale-page .brochure-card-cover {
  flex: 0 0 130px;
}
.add-sale-page .brochure-list-image img {
  width: 100%;
  display: block;
  border: 1px solid #E3E7EC;
  border-radius: 4px;
}
.add-sale-page .brochure-card-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow-wrap: anywhere;
}
.add-sale-page .brochure-card-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}
.add-sale-page .brochure-card-type {
  color: #5A6B7C;
  font-size: 0.8rem;
  margin: 3px 0 12px 0;
}
.add-sale-page .brochure-card-ps {
  margin-bottom: 12px;
}
.add-sale-page .brochure-card-ps label,
.add-sale-page .field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5A6B7C;
  margin-bottom: 3px;
}
.add-sale-page .brochure-card-ps .ps-name {
  font-size: 0.9rem;
}
.add-sale-page .select-profit_structure {
  max-width: 100%;
  width: 210px;
  border: 1px solid #C3CCD6;
}
.add-sale-page .brochure-card-details button.grey-btn,
.add-sale-page .brochure-card-details button.green-btn {
  margin-top: auto;
  padding: 9px 16px;
  font-size: 0.85rem;
}

.add-sale-page .brochure-list-image.locked {
  background: #F6F7F9;
}
.add-sale-page .brochure-list-image.locked .brochure-card-cover {
  flex-basis: 90px;
}

/* --- address tiles --- */
.add-sale-page .address_block {
  float: left;
  min-width: 220px;
  max-width: 320px;
  margin: 0 12px 12px 0;
  background: #FFF;
  border: 1px solid #D8DEE6;
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.add-sale-page .address_block:hover {
  border-color: #9FB8CE;
  box-shadow: 0 2px 8px rgba(51, 85, 119, 0.12);
}
.add-sale-page .address_block:has(input:checked) {
  background: #F2FAEF;
  border-color: #2E8B12;
  box-shadow: 0 0 0 1px #2E8B12;
}
.add-sale-page .address_block .address-header {
  color: #33475C;
}
.add-sale-page .address_block .address-body {
  color: #5A6B7C;
  line-height: 1.4;
  margin: 4px 0 8px 0;
}

/* --- review screen tables --- */
.add-sale-page table.review-table {
  border-spacing: 0;
  margin: 4px 0 8px 0;
}
.add-sale-page table.review-table > tbody > tr > td,
.add-sale-page table.review-table > tr > td {
  padding: 6px 20px 6px 0;
  line-height: 1.4;
  border-bottom: 1px solid #EEF1F4;
  vertical-align: top;
}
.add-sale-page table.review-table td:first-child {
  color: #5A6B7C;
  font-size: 0.85rem;
  min-width: 190px;
}

.add-sale-page ul.review-list {
  margin: 8px 0;
  padding-left: 22px;
  line-height: 1.6;
}

/* --- accessibility & mobile --- */
.add-sale-page button:focus-visible,
.add-sale-page input:focus-visible,
.add-sale-page select:focus-visible,
.add-sale-page textarea:focus-visible {
  outline: 2px solid #4A7CA8;
  outline-offset: 2px;
}

@media screen and (max-width: 640px) {
  .add-sale-page .brochure-list-container,
  .add-sale-page .prize-list-container {
    grid-template-columns: 1fr;
  }
  .add-sale-page .brochure-card-cover {
    flex-basis: 100px;
  }
  .add-sale-page .choice-card {
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  .add-sale-page .continue-bar {
    flex-wrap: wrap;
  }
  .add-sale-page table.form-table td.bold {
    width: auto;
    white-space: normal;
  }
}
