
:root{
  --orange:#c65100;
  --green:#70a16c;
  --blue:#35477e;
  --bg:#f5f5f5;
  --width:1175px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{
  font-family:Arial,Helvetica,sans-serif;
  color:#111;
  background-color:#f4f4f4;
  background-image:
    linear-gradient(90deg,rgba(220,220,220,.32) 1px,transparent 1px),
    linear-gradient(rgba(220,220,220,.32) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.75) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.75) 1px,transparent 1px);
  background-size:28px 28px,28px 28px,14px 14px,14px 14px;
  background-position:0 0,0 0,7px 7px,7px 7px;
}
button,input{font:inherit}
.site-shell{width:min(var(--width),calc(100% - 52px));margin:auto;padding-top:34px}
.top-header{height:118px;display:flex;align-items:flex-start;justify-content:space-between}
.site-logo img{width:90px;height:90px;display:block}
.header-actions{display:flex;gap:6px;margin-top:31px}
.currency,.cart-button{height:42px;border-radius:5px;padding:0 15px;font-size:16px}
.currency{background:white;border:1px solid #d2d2d2}
.cart-button{background:#6c79a5;color:#fff;border:1px solid #64729e;font-weight:700}
.caret{display:inline-block;margin-left:5px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:7px solid #fff;vertical-align:middle}
.caret.dark{border-top-color:#222}

.main-nav{
  min-height:153px;background:var(--orange);border-radius:4px;
  display:flex;flex-wrap:wrap;align-content:flex-start;
  padding:13px 20px 10px;position:relative;z-index:50;
}
.nav-link{
  border:0;background:transparent;color:white;text-decoration:none;font-size:18px;font-weight:700;
  min-height:63px;padding:0 18px;display:inline-flex;align-items:center;cursor:pointer;white-space:nowrap
}
.nav-item{position:relative}
.dropdown-menu{
  display:none;position:absolute;left:4px;top:51px;min-width:198px;background:white;border:1px solid #cfcfcf;
  border-radius:0 0 4px 4px;padding:6px 0;box-shadow:0 2px 4px rgba(0,0,0,.2);z-index:100
}
.dropdown-menu::before{
  content:"";position:absolute;left:18px;top:-12px;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:12px solid white
}
.dropdown-menu a{display:block;padding:7px 24px;font-size:18px;color:#1d1d1d;text-decoration:none;line-height:1.08}
.dropdown-menu a:hover{background:#f2f2f2}
.dropdown:hover .dropdown-menu,.dropdown:focus-within .dropdown-menu{display:block}
.wide-menu{min-width:350px}

.content-grid{
  display:grid;grid-template-columns:minmax(0,2.15fr) minmax(320px,1fr);gap:38px;margin-top:25px
}
.panel{
  background:#fff;border:1px solid #dedede;border-radius:4px;overflow:hidden;margin-bottom:38px
}
.panel-title{
  height:51px;background:var(--green);color:#fff;display:flex;align-items:center;padding:0 19px;font-size:18px;font-weight:700
}
.panel-body{padding:25px 19px}
.notice{padding:20px 18px;font-size:23px;border-bottom:1px solid #e8e8e8}
.sale-banner{font-size:37px;font-weight:700;color:#2c6bb0;padding:23px 20px 12px;background:#fff}

.welcome{font-size:17px;line-height:1.55;padding:42px 35px 30px}
.welcome h1{text-align:center;color:#f16a5b;font-size:38px;font-weight:400;margin:4px 0 18px}
.welcome h2{text-align:center;color:#2da65e;font-size:31px;margin:18px 0}
.welcome h3{font-size:18px;margin:24px 0 7px}
.welcome p{margin:0 0 8px}
.support-alert{color:red;font-weight:700}.support-alert span{color:#000}

.payments-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center;max-width:700px;margin:10px auto 30px}
.paypal-mark{font-size:58px;font-weight:900;color:#0a79c9;font-style:italic}
.paypal-mark span{font-size:44px;color:#003087;letter-spacing:-3px}
.stripe-box{border:2px solid #bbb;border-radius:6px;padding:6px 12px;text-align:center}
.stripe-box>strong{display:block;font-size:28px;color:#999;margin-bottom:7px}
.stripe-box div{display:flex;gap:7px;justify-content:center}.stripe-box b{padding:8px 10px;background:#2853a3;color:white;border-radius:2px;font-size:11px}
.xsolla-mark{display:flex;justify-content:space-around;font-size:44px;font-weight:900}.xsolla-mark span:nth-child(1){color:#f26b3a}.xsolla-mark span:nth-child(2){color:#ffc62e}.xsolla-mark span:nth-child(3){color:#9a51a8}.xsolla-mark span:nth-child(4){color:#9fd236}.xsolla-mark span:nth-child(5){color:#48bfd0}
.paysafe-mark{font-size:32px;color:#00a6d4;font-weight:700}.paysafe-mark small{display:block;font-size:14px;margin-left:80px}

.featured{padding:24px 38px}.featured-img{width:220px;height:220px;display:block;margin:0 auto 12px}
.featured-meta{display:flex;justify-content:space-between;align-items:end;gap:15px}.featured-meta strong,.featured-meta span{display:block;font-size:14px}.featured-meta span{margin-top:4px}
.buy-button{min-width:70px;height:37px;border:0;border-radius:3px;background:var(--blue);color:#fff;cursor:pointer}
.support-box{font-size:18px;line-height:1.42;padding:28px 20px}
.donor-box{min-height:150px;display:flex;align-items:center;gap:36px;padding:18px 25px}
.pixel-skin{width:42px;height:96px;background:linear-gradient(#171717 0 24%,#d6aa8f 24% 30%,#24140f 30% 68%,#1a1a31 68%);box-shadow:-10px 31px 0 -2px #2a160f,10px 31px 0 -2px #2a160f}
.donor-copy{flex:1;text-align:center}.donor-name{font-size:23px;margin-bottom:12px}.donor-note{font-size:14px}
.recent-list{padding:10px 18px}.recent-item{display:flex;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid #e8e8e8}.recent-item strong,.recent-item span{display:block;font-size:14px}
.tiny-head{width:34px;height:34px;border:1px solid #222}.tiny-head.red{background:linear-gradient(#f11 0 45%,#111 45%)}.tiny-head.brown{background:#6b4528}.tiny-head.skin{background:linear-gradient(#111 0 30%,#efc1a7 30%)}

.product-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 22px;padding:35px 18px}
.catalog-card img{width:100%;max-width:220px;aspect-ratio:1;object-fit:contain;display:block;margin:0 auto 10px}
.catalog-bottom{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}
.catalog-bottom strong,.catalog-bottom span{display:block;font-size:14px}.catalog-bottom span{margin-top:4px}

.list-wrap{padding:20px}
.list-row{display:grid;grid-template-columns:1fr 150px 86px;align-items:center;gap:10px;padding:10px 18px;border-top:1px solid #ddd;background:#fafafa;font-size:18px}
.list-row:nth-child(even){background:#fff}.list-row:first-child{border-top:1px solid #ddd}.list-price{text-align:left}

.ruby-intro .panel-body{font-size:15px;line-height:1.45}.ruby-intro p{margin:0 0 18px}.red{color:red}
.ruby-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 28px;padding:42px 30px}
.ruby-card{position:relative;min-height:300px;padding:0 0 8px}.ruby-card.best{border:2px solid #ffd2d2;border-radius:8px;padding:16px;box-shadow:0 0 18px rgba(255,80,80,.16)}
.ruby-card img{width:100%;height:175px;object-fit:contain}.ruby-card strong{display:block;font-size:14px;margin-top:6px}.ruby-card p{font-size:12px;line-height:1.35;min-height:53px}.ruby-card p b{color:#ff3131}.ruby-price{display:block;font-size:12px;margin:10px 0 12px}.best-pill{position:absolute;right:8px;top:8px;background:#ff4d4d;color:#fff;padding:7px 11px;border-radius:18px;font-size:12px;font-weight:700}

.footer{min-height:120px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;font-size:18px}.powered{background:rgba(255,255,255,.55);padding:20px 18px}
.cart-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.55);display:grid;place-items:center;z-index:500}.cart-modal-backdrop[hidden]{display:none}.cart-modal{width:min(460px,calc(100% - 30px));background:white;border-radius:5px;padding:24px;position:relative}.close-modal{position:absolute;right:10px;top:8px;border:0;background:transparent;font-size:25px}.cart-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #ddd}.cart-total{display:flex;justify-content:space-between;margin-top:17px}

@media(max-width:1000px){
  .site-shell{width:min(100% - 24px,var(--width))}
  .nav-link{padding:0 12px;font-size:16px}
  .content-grid{grid-template-columns:minmax(0,1.8fr) minmax(290px,1fr);gap:20px}
}
@media(max-width:820px){
  .top-header{height:100px}.site-logo img{width:72px;height:72px}.header-actions{margin-top:18px}
  .main-nav{min-height:auto;flex-wrap:nowrap;overflow-x:auto;padding:8px 10px}.nav-link{min-height:52px}
  .content-grid{display:block}.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:14px}.sidebar .panel{margin-bottom:0}
  .product-card-grid,.ruby-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .site-shell{width:calc(100% - 12px);padding-top:10px}.top-header{height:80px}.site-logo img{width:58px;height:58px}
  .currency,.cart-button{height:36px;padding:0 9px;font-size:12px}.header-actions{margin-top:7px}
  .main-nav{border-radius:0}.nav-link{font-size:14px;padding:0 10px}
  .content-grid{margin-top:12px}.panel{margin-bottom:14px}.panel-title{height:45px;font-size:16px}
  .welcome{font-size:15px;padding:22px 16px}.welcome h1{font-size:27px}.welcome h2{font-size:24px}
  .payments-grid{grid-template-columns:1fr}.sidebar{display:block}.sidebar .panel{margin-bottom:14px}
  .product-card-grid,.ruby-grid{grid-template-columns:1fr}.list-row{grid-template-columns:1fr 85px 70px;font-size:14px;padding:9px}
  .notice{font-size:17px}.sale-banner{font-size:27px}
}


/* ============================================================
   V5 — SCALE / PROPORTION MATCH TO THE REAL BUYCRAFT SCREENSHOT
   ============================================================ */

:root {
  --width: 948px;
}

body {
  font-size: 14px;
}

.site-shell {
  width: min(var(--width), calc(100% - 28px));
  padding-top: 18px;
}

.top-header {
  height: 128px;
}

.site-logo img {
  width: 86px;
  height: 86px;
}

.header-actions {
  margin-top: 31px;
}

.currency,
.cart-button {
  height: 42px;
  font-size: 14px;
  padding: 0 13px;
}

/* Real store nav is compact rather than oversized. */
.main-nav {
  min-height: 153px;
  padding: 12px 20px 9px;
}

.nav-link {
  font-size: 14px;
  min-height: 63px;
  padding: 0 15px;
}

/* Real two-column proportions: approx. 615px + 292px with ~30px gap */
.content-grid {
  grid-template-columns: minmax(0, 615px) minmax(0, 292px);
  gap: 31px;
  margin-top: 24px;
}

.main-column,
.sidebar {
  min-width: 0;
}

.panel {
  margin-bottom: 31px;
  border-color: #dedede;
}

.panel-title {
  height: 41px;
  padding: 0 15px;
  font-size: 14px;
}

.panel-body {
  padding: 18px 15px;
}

/* HOME */
.welcome {
  padding: 35px 14px 26px;
  font-size: 14px;
  line-height: 1.55;
}

.welcome h1 {
  font-size: 29px;
  line-height: 1.12;
  margin: 3px 0 14px;
}

.welcome h2 {
  font-size: 25px;
  margin: 12px 0 9px;
}

.welcome h3 {
  font-size: 14px;
  margin: 19px 0 6px;
}

.welcome p {
  margin-bottom: 7px;
}

.payment-methods-wrap {
  display: flex;
  justify-content: center;
  margin: 18px auto 10px;
  width: 100%;
}

.payment-methods-img {
  display: block;
  width: 565px;
  max-width: 100%;
  height: auto;
}

/* Hide old synthetic payment styles if old markup gets cached/mixed */
.payments-grid {
  display: none !important;
}

/* SIDEBAR */
.featured {
  padding: 18px 36px 17px;
}

.featured-img {
  width: 185px;
  height: 171px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.featured-real {
  image-rendering: auto;
}

.featured-meta {
  gap: 12px;
}

.featured-meta strong,
.featured-meta span {
  font-size: 12px;
}

.featured-meta span {
  margin-top: 3px;
}

.buy-button {
  min-width: 61px;
  height: 31px;
  font-size: 12px;
}

.support-box {
  font-size: 14px;
  line-height: 1.45;
  padding: 22px 15px 17px;
}

.support-box p {
  margin-top: 0;
}

.donor-box {
  min-height: 133px;
  gap: 25px;
  padding: 16px 21px;
}

.top-donor-img {
  width: 60px;
  height: 100px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: 0 0 60px;
}

.pixel-skin {
  display: none !important;
}

.donor-name {
  font-size: 18px;
  margin-bottom: 10px;
}

.donor-note {
  font-size: 12px;
}

.recent-list {
  padding: 8px 13px 12px;
}

.recent-item {
  padding: 6px 0;
}

.recent-item strong,
.recent-item span {
  font-size: 11px;
}

/* CATEGORY SCALE */
.category-layout .panel-title {
  height: 51px;
  font-size: 16px;
}

.notice {
  padding: 18px 18px;
  font-size: 21px;
}

.product-card-grid {
  gap: 25px 20px;
  padding: 31px 18px 37px;
}

.catalog-card img {
  max-width: 195px;
  margin-bottom: 8px;
}

.catalog-bottom strong,
.catalog-bottom span {
  font-size: 12px;
}

.catalog-bottom .buy-button {
  min-width: 70px;
  height: 37px;
  font-size: 12px;
}

.list-wrap {
  padding: 20px 18px;
}

.list-row {
  grid-template-columns: 1fr 135px 70px;
  padding: 10px 18px;
  font-size: 14px;
}

.sale-banner {
  font-size: 31px;
  padding: 22px 18px 12px;
}

.ruby-intro .panel-body {
  font-size: 12px;
}

.ruby-grid {
  gap: 28px 25px;
  padding: 34px 28px;
}

.ruby-card img {
  height: 150px;
}

.ruby-card strong {
  font-size: 12px;
}

.ruby-card p,
.ruby-price {
  font-size: 10px;
}

.footer {
  min-height: 96px;
  font-size: 14px;
}

/* Desktop only: keep exact real-site proportions. */
@media (min-width: 821px) {
  .content-grid {
    justify-content: space-between;
  }
}

/* Tablet/mobile retain responsiveness instead of overflowing */
@media (max-width: 820px) {
  :root {
    --width: 948px;
  }

  .site-shell {
    width: min(100% - 18px, var(--width));
  }

  .content-grid {
    display: block;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
  }

  .featured-img {
    width: 175px;
    height: 162px;
  }

  .payment-methods-img {
    width: min(565px, 100%);
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: calc(100% - 10px);
    padding-top: 8px;
  }

  .top-header {
    height: 78px;
  }

  .site-logo img {
    width: 58px;
    height: 58px;
  }

  .main-nav {
    min-height: auto;
  }

  .welcome {
    padding: 22px 14px;
  }

  .welcome h1 {
    font-size: 25px;
  }

  .welcome h2 {
    font-size: 22px;
  }

  .sidebar {
    display: block;
  }

  .product-card-grid,
  .ruby-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   V6 — REAL ART + USERNAME GATE + OLD BUYCRAFT PRODUCT SPACING
   ============================================================ */

.site-logo img {
  object-fit: contain;
}

/* Username gate shown before store categories */
.username-gate {
  margin-bottom: 26px;
}

.username-gate .panel-body {
  padding: 25px 18px 27px;
}

.username-form {
  display: flex;
  width: 100%;
}

.username-form input {
  flex: 1;
  min-width: 0;
  height: 58px;
  border: 1px solid #cfcfcf;
  border-radius: 6px 0 0 6px;
  background: white;
  padding: 0 14px;
  font-size: 18px;
  outline: none;
}

.username-form button {
  width: 132px;
  height: 58px;
  border: 0;
  border-radius: 0 7px 7px 0;
  background: var(--green);
  color: white;
  font-size: 22px;
  cursor: pointer;
}

/* Product grids: closer to the real store screenshots */
.product-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 26px;
  padding: 32px 18px 36px;
}

.catalog-card {
  min-width: 0;
}

.catalog-card img {
  width: 100%;
  max-width: 215px;
  height: 205px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
  mix-blend-mode: multiply;
}

.catalog-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  gap: 10px;
  align-items: center;
}

.catalog-bottom strong {
  font-size: 14px;
  line-height: 1.15;
}

.catalog-bottom span {
  font-size: 12px;
  margin-top: 4px;
}

.catalog-bottom .buy-button {
  width: 70px;
  min-width: 70px;
  height: 37px;
  font-size: 12px;
}

/* Prison long grid should feel like the real 3-column page */
.category-layout .main-column .panel {
  overflow: visible;
}

.category-layout .notice {
  background: white;
  line-height: 1.25;
}

/* Crates */
.catalog-card img[src*="politics-crate"],
.catalog-card img[src*="shop-crate"] {
  height: 185px;
  max-width: 225px;
}

/* Survival / Global rank images */
.catalog-card img[src*="legend"],
.catalog-card img[src*="elite"],
.catalog-card img[src*="super"],
.catalog-card img[src*="mafia"],
.catalog-card img[src*="brute"],
.catalog-card img[src*="savage"],
.catalog-card img[src*="thug"],
.catalog-card img[src*="goon"],
.catalog-card img[src*="plus"],
.catalog-card img[src*="doubleplus"] {
  height: 205px;
}

/* Ruby page with the real screenshot art */
.ruby-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 48px 34px;
  padding: 36px 26px 28px;
}

.ruby-card {
  min-height: 330px;
}

.ruby-card img {
  width: 100%;
  height: 175px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.ruby-card strong {
  font-size: 13px;
  margin-top: 9px;
}

.ruby-card p {
  font-size: 11px;
  line-height: 1.38;
  min-height: 58px;
  color: #444;
}

.ruby-price {
  font-size: 11px;
}

.ruby-card.best {
  padding: 14px;
  box-shadow: 0 0 22px rgba(255,70,70,.25);
}

.best-pill {
  right: 10px;
  top: 12px;
  z-index: 2;
}

/* Hide synthetic SVG assets if any stale HTML somehow references them */
img[src*="/icons/"] {
  image-rendering: auto;
}

@media (max-width: 820px) {
  .product-card-grid,
  .ruby-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .username-form input {
    height: 52px;
  }

  .username-form button {
    width: 108px;
    height: 52px;
    font-size: 17px;
  }

  .product-card-grid,
  .ruby-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   V7 — fix sidebar image + real art crops + no clipped prices
   ============================================================ */

.featured-sidebar-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  image-rendering: auto;
}

/* Product cards: increase vertical room and prevent any clipping/duplication issues */
.product-card-grid {
  gap: 34px 28px;
  padding: 28px 18px 34px;
}

.catalog-card {
  display: block;
  min-height: 310px;
  overflow: visible;
}

.catalog-card img {
  width: 100%;
  max-width: 215px;
  height: 185px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
  mix-blend-mode: multiply;
}

.catalog-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: center;
}

.catalog-bottom > div {
  min-width: 0;
}

.catalog-bottom strong {
  display: block;
  font-size: 13px;
  line-height: 1.15;
  white-space: normal;
  overflow: visible;
}

.catalog-bottom span {
  display: block;
  font-size: 11px;
  line-height: 1.25;
  margin-top: 4px;
  overflow: visible;
}

.catalog-bottom .buy-button {
  align-self: center;
}

.notice {
  padding-bottom: 22px;
}

/* Make sure large category grids don't hide the bottom text */
.category-layout .panel {
  overflow: hidden;
}

/* Rubies: make text area slightly tighter and cleaner */
.ruby-card {
  min-height: 345px;
}

.ruby-card img {
  height: 165px;
}

.ruby-card strong {
  line-height: 1.2;
}

.ruby-card p {
  min-height: 62px;
}

/* Username gate proportions similar to reference */
.username-form input {
  height: 54px;
  font-size: 16px;
}

.username-form button {
  height: 54px;
  width: 128px;
  font-size: 18px;
}

@media (max-width: 560px) {
  .catalog-card {
    min-height: auto;
  }
}


/* ============================================================
   V8 — USE THE EXACT FOUR USER-SUPPLIED RANK PICTURES
   ============================================================ */

/* Global rank art */
.catalog-card img[src*="legend-v8"],
.catalog-card img[src*="elite-v8"],
.catalog-card img[src*="super-v8"] {
  height: 185px;
  max-width: 245px;
  object-fit: contain;
  mix-blend-mode: normal;
  margin-bottom: 12px;
}

/* Survival Lifetime + Monthly */
.catalog-card img[src*="survival-plus-v8"],
.catalog-card img[src*="survival-doubleplus-v8"] {
  height: 225px;
  max-width: 255px;
  object-fit: contain;
  mix-blend-mode: normal;
  margin-bottom: 8px;
}

/* Survival Rank Upgrades */
.catalog-card img[src*="survival-upgrade-doubleplus-v8"],
.catalog-card img[src*="survival-tripleplus-v8"] {
  height: 235px;
  max-width: 265px;
  object-fit: contain;
  mix-blend-mode: normal;
  margin-bottom: 8px;
}

/* Give the Survival rank pages the same roomy Buycraft look */
.product-card-grid {
  align-items: start;
}

.catalog-card {
  min-height: 0;
}

.catalog-bottom {
  margin-top: 2px;
}

@media (min-width: 821px) {
  /* Survival pages only have two items, so don't stretch them awkwardly */
  .product-card-grid:has(img[src*="survival-plus-v8"]),
  .product-card-grid:has(img[src*="survival-upgrade-doubleplus-v8"]) {
    grid-template-columns: repeat(2, 255px);
    justify-content: start;
    column-gap: 35px;
  }
}


/* ============================================================
   V9 — exact uploaded top-left M logo
   ============================================================ */
.site-logo img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
  image-rendering: auto;
}

@media (max-width: 560px) {
  .site-logo img {
    width: 58px;
    height: 58px;
  }
}


/* ============================================================
   V10 — Buycraft-style cart dropdown + checkout page
   ============================================================ */

.header-actions {
  align-items: flex-start;
}

.logout-button {
  height: 36px;
  border: 1px solid #d43e35;
  border-radius: 4px;
  background: #df483f;
  color: white;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cart-control {
  position: relative;
}

.cart-button {
  position: relative;
  padding-right: 28px;
}

.cart-button.has-items {
  background: #377ce5;
  border-color: #2f70d3;
}

.cart-caret {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 0;
  height: 0;
  transform: translateY(-35%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid white;
}

.cart-dropdown {
  position: absolute;
  right: 0;
  top: 41px;
  width: 325px;
  background: white;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
  z-index: 1000;
  color: #111;
}

.cart-dropdown[hidden] {
  display: none;
}

.cart-dropdown-items {
  padding: 9px 18px 0;
}

.cart-dropdown-row {
  display: grid;
  grid-template-columns: 1fr auto 18px;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  border-bottom: 1px solid #d7d7d7;
  font-size: 12px;
}

.cart-dropdown-name {
  color: #314a8f;
}

.cart-dropdown-price {
  white-space: nowrap;
  color: #314a8f;
}

.cart-remove {
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}

.cart-dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 18px 20px;
}

.cart-dropdown-total {
  color: #314a8f;
  font-size: 12px;
}

.cart-checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  min-width: 85px;
  padding: 0 13px;
  border: 1px solid #4c884b;
  border-radius: 4px;
  background: #67a363;
  color: white;
  text-decoration: none;
  font-size: 13px;
}

.cart-empty-dropdown {
  padding: 18px;
  color: #777;
  font-size: 12px;
}

/* CHECKOUT */
.checkout-main {
  margin-top: 20px;
}

.checkout-panel {
  background: white;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 30px;
}

.checkout-panel-title {
  height: 41px;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 700;
}

.checkout-panel-title strong {
  font-size: 12px;
}

.checkout-body {
  padding: 22px 15px 30px;
}

.checkout-table-head,
.checkout-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 90px 118px;
  align-items: center;
}

.checkout-table-head {
  min-height: 44px;
  padding: 0 8px;
  border-bottom: 2px solid #d8d8d8;
  font-size: 12px;
  font-weight: 700;
}

.checkout-item-row {
  min-height: 68px;
  padding: 0 8px;
  background: #fafafa;
  border-bottom: 1px solid #ededed;
  font-size: 12px;
}

.checkout-item-qty input {
  width: 36px;
  height: 30px;
  border: 1px solid #c8c8c8;
  border-radius: 3px;
  text-align: center;
}

.checkout-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.checkout-item-actions button {
  width: 31px;
  height: 30px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 700;
}

.checkout-refresh {
  background: white;
  border: 1px solid #ccc;
  color: #2c3743;
}

.checkout-info {
  background: #35477e;
  border: 1px solid #35477e;
  color: white;
}

.checkout-remove {
  background: #df483f;
  border: 1px solid #df483f;
  color: white;
}

.checkout-empty {
  padding: 26px 8px;
  background: #fafafa;
  color: #777;
}

.checkout-section {
  margin-top: 26px;
}

.checkout-section h2 {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  font-size: 18px;
  font-weight: 400;
}

.coupon-row {
  display: flex;
  width: 520px;
  max-width: 100%;
}

.coupon-row input {
  flex: 1;
  height: 35px;
  border: 1px solid #c9c9c9;
  border-radius: 4px 0 0 4px;
  padding: 0 12px;
  font-size: 12px;
}

.coupon-row button {
  height: 35px;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: #3e7ee8;
  color: white;
  padding: 0 13px;
  cursor: pointer;
  font-size: 12px;
}

.coupon-message,
.purchase-message {
  min-height: 18px;
  margin-top: 8px;
  color: #b23a32;
  font-size: 11px;
}

.payment-method-row {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}

.payment-icon-placeholder {
  color: #6ea173;
  font-size: 15px;
}

.purchase-row {
  display: grid;
  grid-template-columns: 1fr 282px;
  gap: 20px;
  align-items: center;
}

.terms-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}

.purchase-button {
  height: 35px;
  border: 1px solid #4d8d4d;
  border-radius: 4px;
  background: #67a363;
  color: white;
  cursor: pointer;
  font-size: 12px;
}

@media (max-width: 720px) {
  .cart-dropdown {
    width: min(325px, calc(100vw - 22px));
  }

  .checkout-table-head {
    display: none;
  }

  .checkout-item-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 14px 8px;
  }

  .checkout-item-price,
  .checkout-item-qty,
  .checkout-item-actions {
    grid-column: 2;
  }

  .purchase-row {
    grid-template-columns: 1fr;
  }

  .purchase-button {
    width: 100%;
  }
}
