.rmlhk-up-slot{display:block;width:100%;max-width:100%;box-sizing:border-box;margin-top:0;margin-right:0;margin-bottom:16px;margin-left:0}
.rmlhk-up-slot--related{margin-top:12px}
.rmlhk-up-slot--cart_mobile,.rmlhk-up-slot--checkout_mobile{display:none}
.rmlhk-store__order-addon{display:block;width:fit-content;margin-top:0;margin-right:0;margin-bottom:6px;margin-left:0;padding-top:2px;padding-right:8px;padding-bottom:2px;padding-left:8px;border-radius:3px;background:#134e4a;color:#fff;font-size:12px;font-weight:600;line-height:1.3;box-sizing:border-box}
.rmlhk-store--cart .product-name .rmlhk-store__order-addon{display:block;width:fit-content;clear:both}
.woocommerce-cart-form>.rmlhk-up-slot{margin-top:0;margin-right:0;margin-bottom:16px;margin-left:0}
.rmlhk-up-slot:not(:has(.rmlhk-up)){display:none !important;margin:0 !important}
.rmlhk-up{margin:0;width:100%;max-width:none;box-sizing:border-box}
.rmlhk-up-box{
	width:100%;
	max-width:none;
	box-sizing:border-box;
	background:var(--rmlhk-surface,#fff);
	border:1px solid var(--rmlhk-line,#e5e5e5);
	border-radius:var(--rmlhk-radius,8px);
	padding:16px 18px 14px;
}
.rmlhk-up-box__head{display:flex;align-items:center;justify-content:space-between;background:var(--rmlhk-up-title-bg,transparent);margin-top:-16px;margin-right:-18px;margin-bottom:10px;margin-left:-18px;padding-top:10px;padding-right:18px;padding-bottom:10px;padding-left:18px;border-bottom:1px solid var(--rmlhk-line,#e5e5e5);border-top-left-radius:var(--rmlhk-radius,8px);border-top-right-radius:var(--rmlhk-radius,8px);border-bottom-right-radius:0;border-bottom-left-radius:0}
.rmlhk-up-box__title{margin:0;font-size:1.05rem;font-weight:700;line-height:1.3;color:var(--rmlhk-up-title,var(--rmlhk-ink,#1a1a1a))}
.rmlhk-up-box__note{margin-top:0;margin-right:0;margin-bottom:10px;margin-left:0;font-size:13px;line-height:1.45;color:var(--rmlhk-up-text,var(--rmlhk-ink,#1a1a1a))}
.rmlhk-up-slot--cart_mid,.rmlhk-up-slot--checkout{display:block;width:100%;margin-top:12px;margin-right:0;margin-bottom:12px;margin-left:0}
.rmlhk-store--checkout .rmlhk-up-slot--checkout,.woocommerce-checkout-review-order-table .rmlhk-up-slot{display:block;width:100%;clear:both}
.rmlhk-up-box--strip .rmlhk-up-rows{display:flex;flex-direction:row;flex-wrap:wrap;align-items:stretch;gap:8px;overflow:visible;max-height:none;width:100%;padding-top:0;padding-right:0;padding-bottom:2px;padding-left:0}
.rmlhk-up-box .rmlhk-up-list{display:flex;flex-direction:column;gap:12px;max-height:none;overflow:visible}
.rmlhk-up-row{display:flex;align-items:center;gap:10px;flex:0 0 auto;min-width:0;width:100%;max-width:100%;padding:0;border:0;background:transparent;box-sizing:border-box}
.rmlhk-up-box--strip .rmlhk-up-row{display:grid;grid-template-columns:56px minmax(0,1fr) auto;grid-template-areas:"img name btn" "img price btn";align-items:center;column-gap:10px;row-gap:4px;flex:1 1 280px;width:auto;max-width:calc(50% - 4px);min-width:240px;height:auto;position:relative;overflow:visible;padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px;border:1px solid var(--rmlhk-line,#eee);border-radius:8px;background:#fafafa}
.rmlhk-up-box--strip .rmlhk-up-row.has-camp{grid-template-areas:"img camp btn" "img name btn" "img price btn"}
.rmlhk-up-box--strip .rmlhk-up-row__camp{grid-area:camp;align-self:end;font-size:12px;font-weight:700;line-height:1.3;color:var(--rmlhk-up-title,var(--rmlhk-ink,#1a1a1a))}
.rmlhk-up-banner__camp{margin-top:0;margin-right:0;margin-bottom:4px;margin-left:0;font-size:12px;font-weight:700;line-height:1.3;color:var(--rmlhk-up-title,var(--rmlhk-ink,#1a1a1a))}
.rmlhk-up-box--strip .rmlhk-up-row__img{grid-area:img;align-self:center}
.rmlhk-up-box--strip .rmlhk-up-row__copy{grid-area:name;align-self:end;min-width:0}
.rmlhk-up-box--strip .rmlhk-up-row.has-camp .rmlhk-up-row__copy{align-self:center}
.rmlhk-up-row__sub,.rmlhk-up-banner__sub{margin-top:0;margin-right:0;margin-bottom:2px;margin-left:0;font-size:12px;font-weight:700;line-height:1.3;color:var(--rmlhk-up-sub,var(--rmlhk-ink,#1a1a1a))}
.rmlhk-up-box--strip .rmlhk-up-row__name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;min-height:2.7em;overflow:hidden}
.rmlhk-up-box--strip .rmlhk-up-row.has-camp .rmlhk-up-row__name,.rmlhk-up-box--strip .rmlhk-up-row__copy:has(.rmlhk-up-row__sub) .rmlhk-up-row__name{min-height:0}
.rmlhk-up-box--strip .rmlhk-up-row__price{grid-area:price;align-self:start;display:flex;flex-wrap:wrap;align-items:center;column-gap:6px;row-gap:4px}
.rmlhk-up-box--strip .rmlhk-up-row__price::after{content:"";order:1;flex-basis:100%;width:0;height:0;overflow:hidden}
.rmlhk-up-box--strip .rmlhk-up-regular,.rmlhk-up-box--strip .rmlhk-up-sale{order:0}
.rmlhk-up-box--strip .rmlhk-up-badge{order:2;flex:0 0 auto;width:fit-content;max-width:100%}
.rmlhk-up-box--strip .rmlhk-up-row__btn{grid-area:btn;align-self:center}
.rmlhk-up-row__img{width:56px;height:56px;flex:0 0 56px}
.rmlhk-up-row__img img{width:56px;height:56px;object-fit:contain;border-radius:6px;display:block}
.rmlhk-up-row__meta{flex:1 1 auto;min-width:0}
.rmlhk-up-row__name{font-size:13px;line-height:1.35;overflow:hidden}
.rmlhk-up-row__price{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:13px;font-weight:600}
.rmlhk-up-box .woocommerce-Price-amount,
.rmlhk-up-box .woocommerce-Price-currencySymbol,
.rmlhk-up-box del,
.rmlhk-up-box ins{display:inline;width:auto;position:static;float:none}
.woocommerce-cart-form .rmlhk-up-row__btn,
.rmlhk-up-row__btn{flex:0 0 auto;border:0;border-radius:8px;background:var(--rmlhk-up-btn,#111);color:var(--rmlhk-up-btn-text,#fff);font-size:13px;font-weight:600;padding-top:8px;padding-right:14px;padding-bottom:8px;padding-left:14px;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;box-sizing:border-box;cursor:pointer;width:auto;min-width:0;line-height:1.3;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-align:center;white-space:nowrap}
.rmlhk-up-row__btn.is-busy{opacity:.9;pointer-events:none;cursor:progress}
.rmlhk-up-spin{width:14px;height:14px;flex:0 0 14px;box-sizing:border-box;border-radius:50%;border-top:2px solid currentColor;border-right:2px solid transparent;border-bottom:2px solid currentColor;border-left:2px solid currentColor;display:inline-block;animation:rmlhk-up-spin .7s linear infinite}
@keyframes rmlhk-up-spin{to{transform:rotate(360deg)}}
.rmlhk-up-list .rmlhk-up-banner + .rmlhk-up-banner{border-top:1px solid var(--rmlhk-line,#e5e5e5);padding-top:12px}
.rmlhk-up-row.is-added .rmlhk-up-row__btn,.rmlhk-up-banner.is-added .rmlhk-up-row__btn{background:var(--rmlhk-up-btn,#059669);color:var(--rmlhk-up-btn-text,#fff)}
.rmlhk-up-banner{display:flex;align-items:center;gap:14px;width:100%;box-sizing:border-box}
.rmlhk-up-banner__img{width:72px;height:72px;flex:0 0 72px}
.rmlhk-up-banner__img img{width:72px;height:72px;object-fit:contain;display:block}
.rmlhk-up-banner__body{flex:1;min-width:0}
.rmlhk-up-banner__name{font-size:14px;line-height:1.4;overflow:visible}
.rmlhk-up-banner__meta{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}
.rmlhk-up-banner__name,.rmlhk-up-row__name{color:var(--rmlhk-up-text,inherit)}
.rmlhk-up-regular{color:var(--rmlhk-up-regular,#888);text-decoration:line-through;font-weight:400;margin-right:6px}
.rmlhk-up-sale,.rmlhk-up-banner__price,.rmlhk-up-row__price{color:var(--rmlhk-up-sale,inherit);font-weight:700}
.rmlhk-up-box .rmlhk-up-badge{display:inline-block;position:static;float:none;width:auto;height:auto;background:var(--rmlhk-up-label,#e11d48);color:#fff;font-size:11px;font-weight:700;line-height:1.4;padding-top:3px;padding-right:8px;padding-bottom:3px;padding-left:8px;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;border-radius:3px;vertical-align:middle}
.rmlhk-up-banner__price{font-size:14px;font-weight:600}
.rmlhk-up-ph{background:#eee;border-radius:6px;min-height:48px}
.rmlhk-up-banner .rmlhk-up-ph{width:72px;height:72px}
.rmlhk-up-sheet{position:fixed;inset:0;z-index:100000}
.rmlhk-up-sheet[hidden]{display:none}
.rmlhk-up-sheet__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.4)}
.rmlhk-up-sheet__panel{position:absolute;left:0;right:0;bottom:0;max-height:52vh;background:#fff;border-radius:16px 16px 0 0;padding-top:48px;padding-right:16px;padding-bottom:20px;padding-left:16px;overflow:auto;box-sizing:border-box}
.rmlhk-up-sheet__x{position:absolute;right:10px;top:8px;z-index:2;width:32px;height:32px;border:0;border-radius:8px;background:#fff;color:#111;font-size:22px;cursor:pointer;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;box-sizing:border-box;line-height:1;display:inline-flex;align-items:center;justify-content:center}
.rmlhk-up-note{position:fixed;left:50%;right:auto;top:auto;bottom:24px;transform:translateX(-50%);height:auto;width:auto;max-height:none;background:#111;color:#fff;padding-top:8px;padding-right:14px;padding-bottom:8px;padding-left:14px;border-radius:8px;font-size:13px;line-height:1.4;z-index:100001;box-sizing:border-box}
.rmlhk-up-tag{display:inline-block;margin:4px 0 0;padding:2px 8px;border-radius:3px;background:#111;color:#fff;font-size:11px;font-weight:700;line-height:1.4}
.rmlhk-up-qty-lock .minus,.rmlhk-up-qty-lock .plus,.rmlhk-up-qty-lock .quantity .minus,.rmlhk-up-qty-lock .quantity .plus{display:none !important}

/* 窄屏縮圖，加購只出一框（活動提示下、商品表上） */
@media (max-width:960px){
	.rmlhk-up-slot--cart_desktop,.rmlhk-up-slot--checkout_desktop{display:none}
	.rmlhk-up-slot--cart_mobile,.rmlhk-up-slot--checkout_mobile{display:block}
	.rmlhk-up-banner__img{width:56px;height:56px;flex-basis:56px}
	.rmlhk-up-banner__img img{width:56px;height:56px}
	.rmlhk-up-box--strip .rmlhk-up-rows{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
	.rmlhk-up-box--strip .rmlhk-up-row{flex:0 0 260px;width:260px;max-width:260px;min-width:260px}
}
@media (min-width:961px){
	.rmlhk-up-sheet__panel{left:50%;right:auto;bottom:auto;top:50%;transform:translate(-50%,-50%);width:min(520px,92vw);max-height:70vh;border-radius:12px}
}
.rmlhk-up-sheet .rmlhk-up-box--strip .rmlhk-up-row:only-child{flex:1 1 100%;width:100%;max-width:none;min-width:0}
