/* ==========================================================================
   Labyrinth Games — WooCommerce Cart page theme
   Enqueue this AFTER your theme + WooCommerce stylesheets.
   ========================================================================== */

:root {
	--lg-bg:            #0c0c0e;
	--lg-card-bg:       #181818;
	--lg-card-border:   rgba(255, 255, 255, 0.1);
	--lg-input-bg:      #1f1f22;
	--lg-text:          #ffffff;
	--lg-text-muted:    #c1c1c1;
    --lg-color-steps:   #6b6b6b;
	--lg-yellow:        #ffd43b;
	--lg-yellow-hover:  #ffd83d;
	--lg-green:         #17c04f;
	--lg-red:           #EE3A3A;
	--lg-radius:        10px;
	--lg-radius-sm:     8px;
}

/* Page background (remove if your theme already sets a dark page bg) */

.cart-title {
    font-size: 60px;
    line-height: 103%;
    letter-spacing: 0.02em;
    font-family: BebasNeue, sans-serif;
    font-weight: 700;
    margin-bottom: 50px;
    margin-top: 120px;
}

.lg-cart-wrapper * {
	box-sizing: border-box;
}

.lg-cart-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 56px;
	margin: 0 auto;
	color: var(--lg-text);
	font-family: inherit;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: space-between;
}

@media (max-width: 1200px) {

}

@media (max-width: 991px) {
    .lg-cart-wrapper {
        flex-direction: column;
        gap: 32px;
        padding-top: 30px;
    }
    .cart-title {
        font-size: 32px;
        margin-top: 78px;
        margin-bottom: 30px;
    }
}


/* ---------------------------------------------------------------------- */
/* Cards                                                                   */
/* ---------------------------------------------------------------------- */

.lg-cart-main {
	flex: 1 1 auto;
	min-width: 0;
    padding: 30px;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    max-width: 1164px;
}

.lg-card {
	background: var(--lg-card-bg);
	border: 1px solid var(--lg-card-border);
    border-radius: 0 0 var(--lg-radius) var(--lg-radius);
    border-top: none;
}

.lg-card + .lg-card,
.lg-card + .lg-cart-collaterals,
.lg-cart-collaterals .lg-card + .lg-card {
	margin-top: 24px;
}

@media (max-width: 1200px) {
    .lg-cart-main {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 991px) {
    .lg-cart-main {
        padding: 20px;
    }
}

/* Outer wrapper: items card + coupon card sit in one bordered container
   visually like the screenshot. If you'd rather have three separate
   floating cards, just delete this rule. */
.lg-cart-form {
	display: block;
	background: var(--lg-card-bg);
    border-radius: var(--lg-radius) var(--lg-radius) 0 0;
	overflow: hidden;
}

.lg-cart-form .lg-card {
	border: none;
	border-radius: 0;
}

.lg-cart-form .lg-card--coupon {
    margin-top: 20px;
    border: 1px solid var(--lg-card-border);
    border-radius: 10px 10px 0 0;
    border-bottom: none;
    padding-bottom: 0;
}

.lg-cart-collaterals {
	margin-top: 0;
}

@media(max-width: 991px) {
    .lg-cart-form .lg-card--coupon {
        margin-top: 14px;
        padding: 14px 14px 0;
    }
}

/* ---------------------------------------------------------------------- */
/* Items table head                                                        */
/* ---------------------------------------------------------------------- */

.lg-cart-head {
    display: grid;
    grid-template-columns: 2.3fr 1fr 1fr 0.4fr;
    padding-right: 28px;
	align-items: center;
	color: var(--lg-text-muted);
	font-size: 16px;
	padding-bottom: 20px;
    line-height: 136%;
    font-weight: 300;
    font-family: SFUIText;
}

.lg-col-info  { flex: 1 1 auto; }
.lg-col-qty   { flex: 0 0 160px; text-align: center; }
.lg-col-price { flex: 0 0 210px; text-align: center; }

@media (max-width: 991px) {
	.lg-cart-head { display: none; }
}

/* ---------------------------------------------------------------------- */
/* Cart item row                                                           */
/* ---------------------------------------------------------------------- */

.lg-cart-items {
	display: flex;
	flex-direction: column;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.lg-cart-item {
    display: grid;
    grid-template-columns: 2.3fr 1fr 1fr 0.4fr;
	align-items: center;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--lg-card-border);
	position: relative;
}

.lg-cart-item.cart_item a.lg-cart-item__remove {
    justify-self: end;
    width: 48px;
    height: 48px;
    padding: 12px;
    border-radius: 10px;
}

.lg-cart-item.cart_item a.lg-cart-item__remove svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lg-cart-item.cart_item a.lg-cart-item__remove:hover {
    background-color: var(--lg-red);
}

.lg-cart-item:first-child {
    padding-top: 0;
}

.lg-cart-item:last-child {
    padding-bottom: 0;
}

.lg-cart-items .lg-cart-item:last-child {
	border-bottom: none;
}

.lg-cart-item__info {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1 1 auto;
	min-width: 0;
}

.lg-cart-item__thumb {
    width: 200px;
    height: 120px;
}

.lg-cart-item__thumb img {
    width: 100%;
    height: 100%;
	object-fit: cover;
	border-radius: var(--lg-radius-sm);
	display: block;
}

.lg-cart-item__details {
	min-width: 0;
}

.lg-cart-item__name,
.lg-cart-item__name a {
	color: var(--lg-text);
	font-size: 20px;
	font-weight: 400;
	text-decoration: none;
    display: flex;
    gap: 6px;
    font-family: SFUIText;
}

.lg-cart-item__meta {
	color: var(--lg-text-muted);
    font-weight: 300;
    font-size: 16px;
    line-height: 136%;
    font-family: SFUIText;
	margin-top: 8px;
}

.lg-cart-item__meta dl.variation {
	margin: 0;
}

.lg-cart-item__meta .variation-Recipient::before,
.lg-cart-item__meta dt {
	display: inline;
	font-weight: 400;
}

.lg-cart-item__meta dt,
.lg-cart-item__meta dd {
	display: inline;
	margin: 0;
	padding: 0;
}

.lg-cart-item__meta dd p {
	display: inline;
	margin: 0;
}

.lg-cart-item__meta dd::after {
	content: "";
	display: block;
}

.lg-cart-item__edit {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--lg-text-muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.lg-cart-item__edit:hover {
	color: var(--lg-text);
	border-bottom-color: var(--lg-text-muted);
}

.lg-cart-item__qty {
	flex: 0 0 160px;
	display: flex;
	justify-content: center;
}

.lg-cart-item__price {
	flex: 0 0 120px;
	text-align: center;
	color: var(--lg-yellow);
	font-size: 22px;
	font-weight: 600;
    font-family: SFUIText;
}

.lg-cart-item__remove {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-left: 8px;
	border-radius: 50%;
	color: var(--lg-red);
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
	transition: background-color .15s ease;
}

.lg-cart-item__remove:hover {
	background: rgba(229, 72, 77, .12);
}

.lg-cart-item__remove:hover svg path {
    fill: var(--lg-text-muted);
}

@media (max-width: 991px) {
	.lg-cart-item {
		flex-wrap: wrap;
	}
	.lg-cart-item__qty,
	.lg-cart-item__price {
		flex: 1 1 auto;
		text-align: left;
		justify-content: flex-start;
	}
    .lg-cart-items {
        padding: 14px;
    }
    .lg-cart-item {
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
        gap: 19px 16px;
        padding: 14px 0;
    }
    .lg-cart-item__info {
        gap: 10px;
        grid-column: span 3;
    }
    .lg-cart-item__thumb {
        width: 106px;
        height: 63px;
    }
    .lg-cart-item__name, .lg-cart-item__name a {
        font-size: 15px;
        display: block;
    }
    .lg-cart-item__name .woocommerce-Price-amount, .lg-cart-item__name a .woocommerce-Price-amount {
        margin-left: 4px;
    }
    .lg-cart-item__meta {
        font-size: 12px;
    }
    .lg-cart-item__price {
        font-size: 16px;
    }
    .lg-cart-item.cart_item a.lg-cart-item__remove {
        width: 31px;
        height: 31px;
        padding: 7px;
    }
}

/* ---------------------------------------------------------------------- */
/* Quantity stepper ( -  2  + )                                            */
/* enhanced via assets/js/lg-cart.js, degrades to a plain number input     */
/* ---------------------------------------------------------------------- */

.quantity {
	display: inline-flex;
	align-items: center;
	/*background: var(--lg-input-bg);*/
	/*border: 1px solid var(--lg-card-border);*/
	/*border-radius: var(--lg-radius-sm);*/
	overflow: hidden;
}

.quantity .qty {
	width: 44px;
	text-align: center;
	background: transparent;
	border: none;
	color: var(--lg-text-muted);
	font-size: 16px;
	padding: 8px 0;
	-moz-appearance: textfield;
}

.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.quantity .lg-qty-btn {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--lg-input-bg);
	border: none;
	color: var(--lg-text);
	font-size: 16px;
	cursor: pointer;
	transition: background-color .15s ease;
}

.quantity .lg-qty-btn:hover {
	background: #29292d;
}

.quantity .lg-qty-btn:disabled {
	opacity: .4;
	cursor: not-allowed;
}

@media(max-width: 991px) {
    .quantity .qty {
        font-size: 14px;
    }
}

/* Hide the native "Update cart" button — quantity changes auto-submit
   via assets/js/lg-cart.js. Remove this rule if you disable that script. */
.lg-btn-update-cart {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------------- */
/* Coupon box                                                              */
/* ---------------------------------------------------------------------- */

.lg-card--coupon {
	padding: 24px;
}

.lg-coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
}

.lg-coupon__input {
	flex: 0 1 303px;
	background: var(--lg-input-bg);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: var(--lg-radius);
	padding: 14px 16px;
	color: var(--lg-text);
	font-size: 18px;
}

.lg-coupon__input::placeholder {
	color: #888;
}

.lg-coupon__hint {
	color: var(--lg-text-muted);
    font-weight: 300;
    font-size: 16px;
    line-height: 136%;
    display: flex;
    align-items: center;
    font-family: SFUIText;
    margin-left: 13px;
}

.lg-coupon__hint-icon {
	flex: 0 0 auto;
    margin-right: 12px;
    display: block;
}

.lg-coupon__hint a {
	color: var(--lg-yellow);
	text-decoration: underline;
    margin-left: 4px;
}

/* WooCommerce coupon success/error notices */
.lg-cart-form .woocommerce-error,
.lg-cart-form .woocommerce-message,
.lg-cart-form .woocommerce-info {
	flex-basis: 100%;
	background: var(--lg-input-bg);
	border: 1px solid var(--lg-card-border);
	border-radius: var(--lg-radius-sm);
	color: var(--lg-text);
	padding: 10px 14px;
	list-style: none;
	margin: 0;
}

@media (max-width: 991px) {
    .lg-cart-main {
        max-width: 100%;
        width: 100%;
    }
    .lg-coupon__input {
        font-size: 14px;
    }
    .lg-coupon {
        gap: 14px;
    }
    .lg-coupon__hint {
        font-size: 12px;
    }
}

@media (max-width: 550px) {
    .lg-coupon__input {
        flex: 0 1 170px;
    }
}

@media (max-width: 410px) {
    .lg-coupon__input {
        max-width: 166px;
    }
}

/* ---------------------------------------------------------------------- */
/* Totals card                                                            */
/* ---------------------------------------------------------------------- */

.lg-card--totals {
	padding: 28px;
}

.lg-totals-rows {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.lg-totals-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 20px;
    font-family: SFUIText;
}

.lg-totals-row__label {
	color: var(--lg-text);
    font-size: 20px;
}

.lg-totals-row--total .lg-totals-row__label {
    font-size: 42px;
    font-family: BebasNeue, sans-serif;
    font-weight: 700;
    line-height: 103%;
}

.lg-totals-row__value {
	color: var(--lg-text);
	font-weight: 600;
    font-size: 22px;
}

.lg-totals-row--discount .lg-totals-row__value,
.lg-totals-row__value--discount {
	color: var(--lg-green) !important;
}

.lg-totals-divider {
	border-top: 1px dashed rgba(255, 255, 255, 0.2);
	margin: 20px 0;
}

.lg-totals-row--total {
	font-size: 26px;
	font-weight: 800;
	text-transform: uppercase;
	margin-bottom: 24px;
}

.lg-totals-row--total .lg-totals-row__value {
	color: var(--lg-yellow);
	font-size: 52px;
    font-family: BebasNeue, sans-serif;
    font-weight: 700;
    line-height: 103%;
}

.lg-totals-row--total .lg-totals-row__value strong {
    font-weight: 700;
}

/* Shipping row rendered by cart-shipping.php keeps default markup;
   restyle it lightly so it fits the same card. */
.lg-card--totals .woocommerce-shipping-totals,
.lg-card--totals tr.shipping {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 16px;
}

.lg-card--totals th,
.lg-card--totals td {
	color: var(--lg-text);
}

@media (max-width: 991px) {
    .lg-card--totals {
        padding: 24px 14px 14px;
    }
    .lg-totals-rows {
        gap: 12px;
    }
    .lg-totals-row, .lg-totals-row__label {
        font-size: 14px;
    }
    .lg-totals-row__value {
        font-size: 16px;
    }
    .lg-totals-row--total .lg-totals-row__label {
        font-size: 26px;
    }
    .lg-totals-row--total .lg-totals-row__value {
        font-size: 34px;
    }
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */

.lg-cart-buttons__row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 8px;
}

.lg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 15px 28px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.lg-btn--primary {
	background: var(--lg-yellow);
	color: #14140f;
}

.lg-btn--primary:hover {
	background: var(--lg-yellow-hover);
	color: #14140f;
}

.wc-proceed-to-checkout .lg-btn--primary .lg-btn__icon svg {
    display: block;
}

.lg-cart-buttons__row .button-main {
    padding: 17px 45px;
}

.lg-cart-buttons__row .button-main .lg-btn__icon svg {
    width: 22px;
    height: 22px;
}

.lg-cart-buttons__row .button-main.lg-btn--ghost {
	background: transparent;
	border-color: var(--lg-card-border);
	color: var(--lg-text-muted);
    padding: 17px 35px;
}

.lg-btn--ghost:hover {
	border-color: var(--lg-text-muted);
	color: var(--lg-text);
}

.lg-btn--outline-sm {
    padding: 15px 19px;
	border-radius: var(--lg-radius-sm);
	border-color: var(--lg-card-border);
	font-size: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: #888;
}

.lg-btn--outline-sm:hover {
	border-color: var(--lg-yellow);
	color: var(--lg-yellow);
}

.lg-btn__arrow {
	font-size: 16px;
}

.woocommerce-remove-coupon {
    display: none;
}

@media(max-width: 991px) {
    .lg-btn--outline-sm {
        font-size: 14px;
    }
}

@media(max-width: 680px) {
    .lg-cart-buttons__row .button-main {
        width: 100%;
    }
}

/* ---------------------------------------------------------------------- */
/* Empty cart                                                              */
/* ---------------------------------------------------------------------- */

.lg-cart-empty {
	max-width: 1160px;
	margin: 0 auto;
	text-align: center;
	color: var(--lg-text);
	padding: 60px 24px;
}

.lg-cart-empty .return-to-shop {
	margin-top: 24px;
}

/* ---------------------------------------------------------------------- */
/* Cross-sells + mini-cart — light theming for consistency                */
/* ---------------------------------------------------------------------- */

.cross-sells {
	margin-top: 32px;
	color: var(--lg-text);
}

.cross-sells h2 {
	font-size: 20px;
	margin-bottom: 16px;
}

.widget_shopping_cart .woocommerce-mini-cart,
.woocommerce-mini-cart {
	background: var(--lg-card-bg);
	border: 1px solid var(--lg-card-border);
	border-radius: var(--lg-radius);
	padding: 16px;
	color: var(--lg-text);
}

.woocommerce-mini-cart-item {
	border-bottom: 1px solid var(--lg-card-border);
	padding-bottom: 12px;
	margin-bottom: 12px;
}

#lg-coupon {
    position: relative;
}

.lg-coupon-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, .25);
    border-top-color: var(--lg-yellow, #f5c518);
    border-radius: 50%;
    animation: lg-spin .6s linear infinite;
    vertical-align: middle;
}

@keyframes lg-spin {
    to { transform: rotate(360deg); }
}

.lg-coupon-message {
    flex-basis: 100%;
    font-size: 13px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--lg-card-border);
}

.lg-coupon-message--success {
    color: var(--lg-green, #3ddc84);
}

.lg-coupon-message--error {
    color: var(--lg-red, #e5484d);
}

.lg-btn.lg-btn--ghost {
    border: 1px solid #888;
    color: #888;
    font-size: 16px;
}

.lg-btn.lg-btn--ghost:hover {
    color: #FFD43B;
    border-color: #FFD43B;
    background-color: transparent;
}

.lg-btn.lg-btn--ghost svg path {
    fill: currentColor;
}

@media(max-width: 991px) {
    .lg-coupon-message {
        padding-bottom: 3px;
        font-size: 12px;
    }
    .lg-btn.lg-btn--ghost,
    .lg-cart-buttons__row .button-main {
        font-size: 14px;
    }
}
