/**
 * Buy-discount gift card brand pages (/buy-discount-{store}-gift-card).
 * Loaded after page-inline styles so layout matches the brand-page mock.
 */
.sell_giftcard.cs-bgc-store-page {
  --bgc-navy: #0b1730;
  --bgc-ink: #0a1324;
  --bgc-muted: #5b6b7a;
  --bgc-blue: #1677ff;
  --bgc-blue-hover: #0d5ad6;
  --bgc-green: #16a34a;
  --bgc-card: #ffffff;
  --bgc-line: #e6eef8;
  --bgc-soft: #eef6ff;
  background: #f4f7f9;
  color: var(--bgc-ink);
}

.sell_giftcard.cs-bgc-store-page .container {
  max-width: 1200px;
}

/* Breadcrumbs sit with the H1, left-aligned */
.sell_giftcard.cs-bgc-store-page .cs-bgc-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 2px;
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--bgc-muted);
  justify-content: flex-start !important;
  text-align: left;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-crumbs a {
  color: var(--bgc-muted);
  text-decoration: none;
  font-weight: 500;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-crumbs a:hover,
.sell_giftcard.cs-bgc-store-page .cs-bgc-crumbs a:focus {
  color: var(--bgc-blue);
  text-decoration: underline;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-crumbs .i,
.sell_giftcard.cs-bgc-store-page .cs-bgc-crumbs .sep {
  padding: 0 6px;
  opacity: 0.55;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-crumbs .current {
  color: var(--bgc-ink);
  font-weight: 600;
}

.sell_giftcard.cs-bgc-store-page h1.section_tile,
.sell_giftcard.cs-bgc-store-page .cs-bgc-h1 {
  margin: 0 0 14px !important;
  padding: 0 !important;
  max-width: none !important;
  color: var(--bgc-navy) !important;
  font-size: 32px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  text-align: left !important;
}

.sell_giftcard.cs-bgc-store-page .right-side-code,
.sell_giftcard.cs-bgc-store-page .right-side-code h1,
.sell_giftcard.cs-bgc-store-page .right-side-code p {
  text-align: left;
}

.sell_giftcard.cs-bgc-store-page .cs-bgc-intro,
.sell_giftcard.cs-bgc-store-page p.section_description.cs-bgc-intro {
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 0 18px !important;
  margin: 0 0 8px !important;
  font-size: 16px;
  line-height: 1.55;
  color: #394b57;
  font-weight: 400;
}

/* Trust bar */
.sell_giftcard.cs-bgc-store-page .cs-bgc-trustbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 12px 0 16px;
  border-top: 0;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-trustbar__item {
  flex: 1 1 160px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 140px;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-trustbar__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8f1ff;
  color: var(--bgc-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-trustbar__text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--bgc-ink);
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-trustbar__text span {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--bgc-muted);
  font-weight: 400;
}

/* Left store card */
.sell_giftcard.cs-bgc-store-page .left-side-code {
  align-items: stretch;
}
.sell_giftcard.cs-bgc-store-page .img-cover.cs-bgc-store-card {
  background: #fff;
  border: 1px solid var(--bgc-line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(11, 23, 48, 0.08);
  padding: 18px 16px 16px;
  text-align: center;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-store-card .checkboxes_box.infocenter {
  margin: 0;
  padding: 0;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-store-card .checkboxes_box h5 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  color: var(--bgc-ink);
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-store-card .checkboxes_box a {
  color: var(--bgc-blue);
  font-weight: 600;
  font-size: 14px;
  word-break: break-all;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-sell-cta {
  margin: 14px 0 8px !important;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-sell-cta center {
  display: block;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-sell-cta .btn.btn-solid-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  background: var(--bgc-blue) !important;
  border: 0;
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.28);
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-sell-cta .btn.btn-solid-blue:hover,
.sell_giftcard.cs-bgc-store-page .cs-bgc-sell-cta .btn.btn-solid-blue:focus {
  background: var(--bgc-blue-hover) !important;
  color: #fff !important;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-store-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--bgc-line);
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-store-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 6px 2px;
  background: transparent;
  border: 0;
  color: var(--bgc-blue);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-store-link:hover,
.sell_giftcard.cs-bgc-store-page .cs-bgc-store-link:focus {
  color: var(--bgc-blue-hover);
  text-decoration: none;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-store-link .fa {
  font-size: 12px;
  opacity: 0.85;
}

/* Sell-us band: light blue, white CTA */
.sell_giftcard.cs-bgc-store-page .coupon_code_box.cs-bgc-sell-band {
  background: var(--bgc-soft);
  border: 1px solid #d7e8ff;
  border-radius: 12px;
  overflow: hidden;
}
.sell_giftcard.cs-bgc-store-page .coupon_code_box.cs-bgc-sell-band .per_off {
  color: var(--bgc-blue);
}
.sell_giftcard.cs-bgc-store-page .coupon_code_box.cs-bgc-sell-band .offer_text_title {
  color: var(--bgc-ink);
  font-size: 18px;
  font-weight: 800;
}
.sell_giftcard.cs-bgc-store-page .coupon_code_box.cs-bgc-sell-band .offer_desc {
  color: var(--bgc-muted);
  font-size: 14px;
  margin: 0;
}
.sell_giftcard.cs-bgc-store-page .coupon_code_box.cs-bgc-sell-band .btn.btn-ylw,
body.cs-nav-v2 .sell_giftcard.cs-bgc-store-page .coupon_code_box.cs-bgc-sell-band a.btn.btn-ylw {
  background: #fff !important;
  color: var(--bgc-blue) !important;
  border: 1px solid #c9ddff !important;
  border-radius: 10px !important;
  font-weight: 700;
  min-height: 42px;
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.08) !important;
}
.sell_giftcard.cs-bgc-store-page .coupon_code_box.cs-bgc-sell-band .btn.btn-ylw:hover,
.sell_giftcard.cs-bgc-store-page .coupon_code_box.cs-bgc-sell-band .btn.btn-ylw:focus,
body.cs-nav-v2 .sell_giftcard.cs-bgc-store-page .coupon_code_box.cs-bgc-sell-band a.btn.btn-ylw:hover,
body.cs-nav-v2 .sell_giftcard.cs-bgc-store-page .coupon_code_box.cs-bgc-sell-band a.btn.btn-ylw:focus {
  background: #fff !important;
  color: var(--bgc-blue-hover) !important;
  border-color: var(--bgc-blue) !important;
}

/* Filter removed */
.sell_giftcard.cs-bgc-store-page .filter-header-sec,
.sell_giftcard.cs-bgc-store-page #min-max-alert {
  display: none !important;
}

/* Listing table */
.sell_giftcard.cs-bgc-store-page #giftcard-table {
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 10px;
}
.sell_giftcard.cs-bgc-store-page #giftcard-table thead,
.sell_giftcard.cs-bgc-store-page table.dataTable thead {
  background: var(--bgc-navy) !important;
}
.sell_giftcard.cs-bgc-store-page #giftcard-table thead th,
.sell_giftcard.cs-bgc-store-page #giftcard-table thead td,
.sell_giftcard.cs-bgc-store-page table.dataTable thead th,
.sell_giftcard.cs-bgc-store-page table.dataTable thead td {
  background: var(--bgc-navy) !important;
  color: #fff !important;
  border-color: #16304f !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.sell_giftcard.cs-bgc-store-page #giftcard-table thead th:nth-child(2),
.sell_giftcard.cs-bgc-store-page #giftcard-table tbody td:nth-child(2),
.sell_giftcard.cs-bgc-store-page #giftcard-table thead th:nth-child(3),
.sell_giftcard.cs-bgc-store-page #giftcard-table tbody td:nth-child(3),
.sell_giftcard.cs-bgc-store-page #giftcard-table thead th:nth-child(4),
.sell_giftcard.cs-bgc-store-page #giftcard-table tbody td:nth-child(4),
.sell_giftcard.cs-bgc-store-page #giftcard-table thead th:nth-child(5),
.sell_giftcard.cs-bgc-store-page #giftcard-table tbody td:nth-child(5) {
  width: auto;
}
.sell_giftcard.cs-bgc-store-page #giftcard-table tbody td {
  background: #fff !important;
  border-bottom: 1px solid var(--bgc-line) !important;
  color: var(--bgc-ink);
  font-size: 14px;
}
.sell_giftcard.cs-bgc-store-page .user-datatable td {
  background: #fff !important;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-your-price {
  color: var(--bgc-blue);
  font-weight: 800;
  font-size: 15px;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-you-save {
  color: var(--bgc-green);
  font-weight: 700;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-in-stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--bgc-green);
  font-weight: 600;
  white-space: nowrap;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-in-stock .fa {
  font-size: 14px;
}
.sell_giftcard.cs-bgc-store-page .buy_now_btn,
.sell_giftcard.cs-bgc-store-page .btn.btn-primary.buy_now_btn {
  color: var(--bgc-blue) !important;
  border: 1.5px solid var(--bgc-blue) !important;
  background: #fff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 8px;
  min-height: 38px;
  box-shadow: none;
}
.sell_giftcard.cs-bgc-store-page .buy_now_btn:hover,
.sell_giftcard.cs-bgc-store-page .buy_now_btn:focus,
.sell_giftcard.cs-bgc-store-page .btn.btn-primary.buy_now_btn:hover {
  color: #fff !important;
  background: var(--bgc-blue) !important;
  border-color: var(--bgc-blue) !important;
}
.sell_giftcard.cs-bgc-store-page table.dataTable thead .sorting,
.sell_giftcard.cs-bgc-store-page table.dataTable thead .sorting_asc,
.sell_giftcard.cs-bgc-store-page table.dataTable thead .sorting_desc,
.sell_giftcard.cs-bgc-store-page table.dataTable thead .sorting_disabled {
  border-color: #16304f;
}

/* Carousel arrows toward mock (white circles) */
.sell_giftcard.cs-bgc-store-page .giftcards .swiper-button-prev,
.sell_giftcard.cs-bgc-store-page .giftcards .swiper-button-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(11, 23, 48, 0.14);
}
.sell_giftcard.cs-bgc-store-page h2.section_tile.promo-code-title {
  color: var(--bgc-navy);
  font-weight: 800;
}

/* ~3 line-breaks between listing table and See More carousel */
.sell_giftcard.cs-bgc-store-page .cs-bgc-see-more {
  margin-top: 3.75rem;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-see-more h2.promo-code-title {
  margin-top: 0 !important;
}

.sell_giftcard.cs-bgc-store-page section.margintop {
  padding-bottom: 0;
  margin-bottom: 0;
}
.sell_giftcard.cs-bgc-store-page .gc-inventory-explainer,
.sell_giftcard.cs-bgc-store-page .gc-inventory-explainer.gc-inventory-explainer--hub {
  margin-bottom: 0;
}
/* Keep the default extension-install-promo head/foot cushion so the light
   page shell (#f4f7f9) shows as buffers above/below the navy card. Do not
   full-bleed dark here — that collapses mid-page section spacing. */
.sell_giftcard.cs-bgc-store-page .cs-ext-dl {
  padding: 56px 0 40px;
  margin: 0;
  background: transparent;
}
.sell_giftcard.cs-bgc-store-page .cs-buy-gc-about {
  padding: 36px 0 40px;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-signup-banner {
  margin-top: 0;
  background: var(--csf-bg, var(--cs-theme-deep, #050a14));
}

@media only screen and (max-width: 991px) {
  .sell_giftcard.cs-bgc-store-page h1.section_tile,
  .sell_giftcard.cs-bgc-store-page .cs-bgc-h1 {
    font-size: 26px !important;
    text-align: left !important;
  }
  .sell_giftcard.cs-bgc-store-page .cs-bgc-trustbar {
    gap: 14px 10px;
  }
}

@media only screen and (max-width: 767px) {
  .sell_giftcard.cs-bgc-store-page .cs-bgc-crumbs {
    font-size: 12px;
    justify-content: flex-start !important;
    padding: 0;
  }
  .sell_giftcard.cs-bgc-store-page h1.section_tile,
  .sell_giftcard.cs-bgc-store-page .cs-bgc-h1 {
    font-size: 22px !important;
    text-align: left !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
  }
  .sell_giftcard.cs-bgc-store-page .cs-bgc-intro {
    font-size: 15px;
    padding: 0 0 12px !important;
  }
  .sell_giftcard.cs-bgc-store-page .img-cover.cs-bgc-store-card {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 8px;
    text-align: left;
    padding: 12px;
  }
  .sell_giftcard.cs-bgc-store-page .cs-bgc-store-card figure {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .sell_giftcard.cs-bgc-store-page .cs-bgc-store-card .checkboxes_box.infocenter {
    grid-column: 2;
    grid-row: 1;
    text-align: left !important;
  }
  .sell_giftcard.cs-bgc-store-page .cs-bgc-store-card .checkboxes_box h5 {
    text-align: left;
    font-size: 18px;
  }
  .sell_giftcard.cs-bgc-store-page .cs-bgc-sell-cta,
  .sell_giftcard.cs-bgc-store-page:has(.coupon_code_box .btn.btn-ylw) .img-cover > .cashback_btn.cs-bgc-sell-cta {
    grid-column: 1 / -1;
    grid-row: auto;
    margin: 4px 0 0 !important;
    display: block !important;
  }
  .sell_giftcard.cs-bgc-store-page .cs-bgc-sell-cta .btn.btn-solid-blue {
    width: 100% !important;
  }
  .sell_giftcard.cs-bgc-store-page .cs-bgc-store-links {
    grid-column: 1 / -1;
    margin-top: 4px;
  }
  .sell_giftcard.cs-bgc-store-page .cs-bgc-trustbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 8px;
    padding: 4px 0 12px;
  }
  .sell_giftcard.cs-bgc-store-page .cs-bgc-trustbar__item {
    min-width: 0;
    flex: none;
  }
  .sell_giftcard.cs-bgc-store-page #giftcard-table thead th,
  .sell_giftcard.cs-bgc-store-page #giftcard-table tbody td {
    white-space: nowrap;
  }
}

/* Phone card rows: bind by cell content, not the old 5-column nth-child map */
@media only screen and (max-width: 575px) {
  .sell_giftcard.cs-bgc-store-page #giftcard-table tbody td {
    white-space: normal;
  }
  .sell_giftcard.cs-bgc-store-page #giftcard-table tbody td:has(.gc-card-value-cell) {
    display: block !important;
    grid-column: 1 / -1;
    font-weight: 700;
    font-size: 15px;
  }
  .sell_giftcard.cs-bgc-store-page #giftcard-table tbody td:has(.discount-off-chip) {
    grid-column: 1;
  }
  .sell_giftcard.cs-bgc-store-page #giftcard-table tbody td:has(.cs-bgc-your-price) {
    grid-column: 2;
    text-align: right !important;
  }
  .sell_giftcard.cs-bgc-store-page #giftcard-table tbody td:has(.cs-bgc-you-save) {
    grid-column: 1;
  }
  .sell_giftcard.cs-bgc-store-page #giftcard-table tbody td:has(.cs-bgc-in-stock) {
    grid-column: 2;
    text-align: right !important;
  }
  .sell_giftcard.cs-bgc-store-page #giftcard-table tbody td:last-child {
    grid-column: 1 / -1;
    padding-top: 6px !important;
  }
  .sell_giftcard.cs-bgc-store-page #giftcard-table tbody td:last-child .buy_now_btn,
  .sell_giftcard.cs-bgc-store-page .buy_now_btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
  }
}

@media only screen and (max-width: 414px) {
  .sell_giftcard.cs-bgc-store-page .cs-bgc-trustbar {
    grid-template-columns: 1fr;
  }
  .sell_giftcard.cs-bgc-store-page .buy_now_btn {
    min-width: 44px;
  }
}

/* All-stores listing: label each card by retailer; no single-store lock-in */
.sell_giftcard.cs-bgc-store-page .gc-card-value-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 2px;
}
.sell_giftcard.cs-bgc-store-page .gc-card-store-label {
  display: block;
  max-width: 180px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--bgc-blue);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sell_giftcard.cs-bgc-store-page .gc-card-store-label:hover,
.sell_giftcard.cs-bgc-store-page .gc-card-store-label:focus {
  color: var(--bgc-blue-hover);
  text-decoration: underline;
}
.sell_giftcard.cs-bgc-store-page.cs-bgc-store-page--all .cs-bgc-intro a {
  color: var(--bgc-blue);
  font-weight: 600;
}

/* Inventory table: full container width (same as /buy-gift-cards/all col-lg-12) */
.sell_giftcard.cs-bgc-store-page .cs-bgc-inventory-full {
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-inventory-full .table-responsive,
.sell_giftcard.cs-bgc-store-page .cs-bgc-inventory-full .dataTables_wrapper {
  width: 100% !important;
  max-width: 100%;
}
.sell_giftcard.cs-bgc-store-page #giftcard-table td.dataTables_empty {
  text-align: center;
  padding: 28px 20px 32px;
  background: #fff !important;
}
.sell_giftcard.cs-bgc-store-page .gc-empty-stock {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.sell_giftcard.cs-bgc-store-page .gc-empty-stock .gc-empty-title {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #5c6f75;
  margin: 0 0 10px;
}
.sell_giftcard.cs-bgc-store-page .gc-empty-stock .gc-empty-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #5c6f75;
}
.sell_giftcard.cs-bgc-store-page .gc-empty-stock .gc-empty-cta {
  margin: 18px 0 0;
}
.sell_giftcard.cs-bgc-store-page .gc-empty-stock .gc-empty-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--bgc-blue);
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.28);
}
.sell_giftcard.cs-bgc-store-page .gc-empty-stock .gc-empty-cta-btn:hover,
.sell_giftcard.cs-bgc-store-page .gc-empty-stock .gc-empty-cta-btn:focus {
  background: var(--bgc-blue-hover);
  color: #fff !important;
  text-decoration: none !important;
}

@media only screen and (max-width: 575px) {
  .sell_giftcard.cs-bgc-store-page .gc-card-store-label {
    max-width: 100%;
    white-space: normal;
  }
  .sell_giftcard.cs-bgc-store-page .gc-empty-stock .gc-empty-cta-btn {
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    padding: 12px 16px;
  }
}
