/* ==========================================================================
   Roids24 — cart page
   Loaded on the cart page only. Tokens come from main.css.
   ========================================================================== */

.r24-page--cart { padding-top: 28px; padding-bottom: 80px; }

.r24-cart .woocommerce-notices-wrapper:not(:empty) { margin-top: 20px; }
.r24-cart .woocommerce-message, .r24-cart .woocommerce-info, .r24-cart .woocommerce-error { margin: 0; }
.r24-cart .woocommerce-notices-wrapper > * + * { margin-top: 8px; }
.r24-cart .restore-item { margin-left: 4px; font-weight: 600; }

.r24-cart__layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; margin-top: 28px; }
.r24-cart__items { flex: 999 1 600px; min-width: 0; }
.r24-cart-form { display: flex; flex-direction: column; gap: 24px; }
.r24-cart__aside { flex: 1 1 360px; max-width: 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* --------------------------------------------------------------------------
   Shipment boxes
   ----------------------------------------------------------------------- */

.r24-ship { border: 1px solid var(--r24-border); border-radius: var(--r24-r-panel); overflow: hidden; }
.r24-ship__head {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
	padding: 16px 20px;
	background: var(--r24-image-well); border-bottom: 1px solid var(--r24-border);
}
.r24-ship__id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.r24-ship__icon {
	width: 36px; height: 36px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--r24-border); border-radius: 18px;
	background: #fff; color: var(--r24-ink);
}
.r24-ship--us-domestic .r24-ship__icon { border-color: transparent; background: var(--r24-accent-tint); color: var(--r24-accent-deep); }
.r24-ship__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.r24-ship__title { font-size: 16px; line-height: 22px; font-weight: 700; letter-spacing: 0; }
.r24-ship__sub { font-size: 13px; color: var(--r24-text-2); }
.r24-ship__tag {
	height: 28px; padding: 0 10px;
	display: inline-flex; align-items: center; gap: 6px;
	border: 1px solid var(--r24-border); border-radius: 6px;
	background: #fff;
	font-size: 12px; font-weight: 600; color: var(--r24-text);
}

/* --------------------------------------------------------------------------
   Cart line
   ----------------------------------------------------------------------- */

.r24-lines { margin: 0; padding: 0; list-style: none; }
.r24-line { display: flex; gap: 20px; padding: 20px; }
.r24-line + .r24-line { border-top: 1px solid var(--r24-border); }

.r24-line__img {
	width: 112px; height: 112px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	border-radius: var(--r24-r-option);
	background: var(--r24-image-well);
	overflow: hidden;
}
.r24-line__photo { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.r24-pkg--line { width: 34px; height: 50px; }
.r24-pkg--line.r24-pkg--wide { width: 54px; height: 36px; }
.r24-pkg--line.r24-pkg--square { width: 46px; height: 46px; }
.r24-pkg--line .r24-pkg__band { font-size: 0; }
.r24-pkg--line .r24-pkg__lines { display: none; }

.r24-line__body { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.r24-line__info { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.r24-line__brand { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--r24-muted); }
.r24-line__name { font-size: 17px; line-height: 23px; font-weight: 600; color: var(--r24-ink); overflow-wrap: anywhere; }
a.r24-line__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.r24-line__meta { font-size: 14px; color: var(--r24-text-2); overflow-wrap: anywhere; }
.r24-line__note { font-size: 13px; color: var(--r24-muted); }

.r24-tier {
	align-self: flex-start;
	min-height: 26px; margin-top: 6px; padding: 4px 9px;
	display: inline-flex; align-items: center; gap: 6px;
	border-radius: 6px;
	font-size: 12px; font-weight: 600; line-height: 1.4;
}
.r24-tier .r24-icon { flex-shrink: 0; }
.r24-tier--applied { background: var(--r24-accent-tint); color: var(--r24-accent-deep); }
.r24-tier--hint { background: var(--r24-surface); color: var(--r24-text); }

.r24-line__actions { display: flex; gap: 16px; margin-top: 8px; }
.r24-tbtn {
	min-height: 32px; padding: 0;
	border: 0; background: none;
	font-size: 13px; font-weight: 500; color: var(--r24-text-2);
	text-decoration: underline; text-underline-offset: 3px;
}
.r24-tbtn:hover { color: var(--r24-ink); }
.r24-tbtn--md { min-height: 44px; font-size: 14px; }

.r24-line__right { display: flex; align-items: flex-start; gap: 24px; }

.r24-qty {
	height: 44px;
	display: flex; align-items: center;
	border: 1px solid var(--r24-border-strong); border-radius: var(--r24-r-option);
	overflow: hidden;
	background: #fff;
}
.r24-qty__btn {
	width: 40px; height: 42px; padding: 0;
	display: flex; align-items: center; justify-content: center;
	border: 0; background: #fff; color: var(--r24-ink);
}
.r24-qty__btn:hover:not(:disabled) { background: var(--r24-surface); }
.r24-qty__btn:disabled { color: var(--r24-border-strong); cursor: default; }
.r24-qty__input {
	width: 36px; height: 42px; padding: 0;
	border: 0; background: transparent;
	text-align: center; font-size: 15px; font-weight: 600; color: var(--r24-ink);
	-moz-appearance: textfield; appearance: textfield;
}
.r24-qty__input::-webkit-outer-spin-button, .r24-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.r24-qty__input:focus-visible { outline: 2px solid var(--r24-ink); outline-offset: -2px; }
.r24-qty--fixed { padding: 0 18px; }
.r24-qty__val { font-size: 15px; font-weight: 600; }

.r24-line__price { min-width: 96px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.r24-line__total { font-size: 18px; font-weight: 700; color: var(--r24-ink); }
.r24-line__was { font-size: 13px; color: var(--r24-muted); text-decoration: line-through; }
.r24-line__each { font-size: 12px; color: var(--r24-muted); }

.r24-cart__actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.r24-cart__continue { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; }
.r24-cart__continue:hover { text-decoration: underline; text-underline-offset: 3px; }

/* While cart.js waits for the server. */
.r24-cart.is-busy .r24-summary { opacity: .55; transition: opacity .15s ease; }
.r24-cart.is-busy [data-r24-checkout] { pointer-events: none; }

/* --------------------------------------------------------------------------
   Order summary
   ----------------------------------------------------------------------- */

.r24-summary.cart_totals {
	width: auto; max-width: none;
	display: flex; flex-direction: column; gap: 16px;
	padding: 24px;
	border: 1px solid var(--r24-border); border-radius: var(--r24-r-panel);
	background: #fff;
	box-shadow: 0 12px 28px rgba(22, 24, 29, .06);
}
.r24-summary__title { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; }

.r24-summary__rows { display: flex; flex-direction: column; gap: 12px; margin: 0; font-size: 15px; }
.r24-summary__rows dd { margin: 0; }
.r24-summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.r24-summary__row dt { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--r24-text-2); }
.r24-summary__row dd { font-weight: 600; white-space: nowrap; }
.r24-summary__row--save dt, .r24-summary__row--save dd { color: var(--r24-accent-deep); }
.r24-summary__remove { font-size: 13px; font-weight: 500; color: var(--r24-text-2); text-decoration: underline; text-underline-offset: 3px; }
.r24-summary__remove:hover { color: var(--r24-ink); }

.r24-summary__ship { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--r24-divider); }
.r24-summary__ship dt { color: var(--r24-text-2); }
.r24-summary__ship dd { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--r24-text-2); }
.r24-summary__shipname { color: var(--r24-text); }

.r24-summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--r24-border); }
.r24-summary__total dt { font-size: 17px; font-weight: 700; color: var(--r24-ink); }
.r24-summary__total dd { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }

.r24-coupon { display: flex; flex-direction: column; gap: 6px; }
.r24-coupon__label { font-size: 13px; font-weight: 600; }
.r24-coupon__row { display: flex; gap: 8px; }
.r24-coupon__input {
	flex: 1; min-width: 0; height: 44px; padding: 0 12px;
	border: 1px solid var(--r24-border-strong); border-radius: var(--r24-r-control);
	font-size: 14px;
}
.r24-coupon__input::placeholder { color: var(--r24-muted); }
.r24-coupon__btn {
	height: 44px; padding: 0 16px;
	border: 1px solid var(--r24-ink); border-radius: var(--r24-r-control);
	background: #fff;
	font-size: 14px; font-weight: 600; color: var(--r24-ink);
	transition: background-color .18s ease, color .18s ease;
}
.r24-coupon__btn:hover { background: var(--r24-ink); color: #fff; }
.r24-coupon__msgs { display: flex; flex-direction: column; gap: 4px; }
.r24-coupon__msg { margin: 0; font-size: 13px; line-height: 19px; }
.r24-coupon__msg.is-error { color: #B42318; }
.r24-coupon__msg.is-success { color: var(--r24-accent-deep); }
.r24-coupon__msg.is-notice { color: var(--r24-text-2); }

.r24-summary__cta.wc-proceed-to-checkout { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.r24-checkout.checkout-button {
	width: 100%; height: 56px;
	display: flex; align-items: center; justify-content: center; gap: 10px;
	border: 0; border-radius: var(--r24-r-option);
	background: var(--r24-accent); color: #fff;
	font-size: 16px; font-weight: 700;
	transition: background-color .18s ease;
}
.r24-checkout.checkout-button:hover { background: var(--r24-accent-deep); color: #fff; }

.r24-summary__note { margin: 0; font-size: 13px; line-height: 19px; color: var(--r24-muted); text-align: center; }

.r24-paybadges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.r24-paybadges li {
	height: 28px; padding: 0 10px;
	display: flex; align-items: center;
	border: 1px solid var(--r24-border); border-radius: 6px;
	font-size: 12px; color: var(--r24-text-2);
}

/* --------------------------------------------------------------------------
   Empty state
   ----------------------------------------------------------------------- */

.r24-cart-empty {
	display: flex; flex-direction: column; align-items: center; gap: 12px;
	margin-top: 32px; padding: 64px 24px;
	border: 1px dashed var(--r24-border-strong); border-radius: var(--r24-r-panel);
	text-align: center;
}
.r24-cart-empty__icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 32px; background: var(--r24-surface); color: var(--r24-ink); }
.r24-cart-empty__title { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: 0; }
.r24-cart-empty__text { margin: 0; font-size: 15px; color: var(--r24-text-2); }
.r24-cart-empty__btn { height: 48px; margin-top: 8px; padding: 0 22px; border-radius: var(--r24-r-option); font-size: 15px; }

/* --------------------------------------------------------------------------
   Phones
   ----------------------------------------------------------------------- */

@media (max-width: 760px) {
	.r24-page--cart { padding-top: 16px; padding-bottom: 96px; }


	.r24-cart__layout { gap: 24px; margin-top: 20px; }
	.r24-cart__aside { flex-basis: 100%; max-width: none; }

	.r24-ship__head { padding: 14px 16px; }
	.r24-ship__tag { margin-left: 48px; }

	.r24-line { gap: 14px; padding: 16px; }
	.r24-line__img { width: 72px; height: 72px; }
	.r24-pkg--line { transform: scale(.7); }
	.r24-line__info { flex-basis: 100%; }
	.r24-line__right { flex: 1 1 100%; justify-content: space-between; gap: 12px; }
	.r24-line__price { min-width: 0; }

	.r24-summary.cart_totals { padding: 20px; }

	.r24-cart-empty { margin-top: 24px; padding: 48px 20px; }
}
