/* ====================================================================
   TAMMI CHECKOUT
==================================================================== */
.tammi-checkout-wrap {
	background: #f5f5f5;
	min-height: 100vh;
	padding: 50px 0 60px;
	font-family: inherit;
	color: #1a1a1a;
}
.tammi-checkout-wrap *,
.tammi-checkout-wrap *::before,
.tammi-checkout-wrap *::after { box-sizing: border-box; }
.tammi-checkout-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ===== HEADER ===== */
.tammi-checkout-header {
	margin-bottom: 20px;
}
.tammi-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #1a1a1a;
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
}
.tammi-back svg { width: 18px; height: 18px; }
.tammi-back:hover { color: #e91e63; }

/* ===== ERROR BOX ===== */
.tammi-error-box {
	background: #ffe8e8;
	color: #c62828;
	padding: 14px 20px;
	border-radius: 12px;
	margin-bottom: 16px;
	font-size: 14px;
	border-left: 4px solid #c62828;
}


/* ===== GRID 2 COL ===== */
.tammi-checkout-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 20px;
	align-items: start;
}

/* ===== CARDS ===== */
.tammi-checkout-section {
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 16px;
}
.tammi-checkout-section:last-child { margin-bottom: 0; }
.tammi-co-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 16px;
	color: #1a1a1a;
}

/* ===== FORM ROW ===== */
.tammi-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.tammi-input-wrap { margin-bottom: 12px; }
.tammi-input-wrap:last-child { margin-bottom: 0; }

/* ===== INPUTS ===== */
.tammi-checkout-wrap .tammi-input {
	width: 100%;
	padding: 14px 20px;
	border: 1px solid hsl(0deg 0% 0% / 10%);
	border-radius: 16px;
	background: #fff;
	font-size: 16px;
	font-family: inherit;
	color: #1a1a1a;
	outline: none;
	transition: all .2s ease;
	height: 56px;
	background: #FAFAFA;
	box-shadow: none;
}
.tammi-input:focus {
	border-color: #e91e63;
	box-shadow: 0 0 0 3px rgba(233, 30, 99, .1);
}
.tammi-input::placeholder { color: #aaa; }

.tammi-textarea {
	border-radius: 18px;
	resize: vertical;
	min-height: 90px;
	font-family: inherit;
}

.tammi-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'><path d='M6 9l6 6 6-6' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 20px center;
	background-color: #fff !important;
	color: #1a1a1a !important;
	padding-right: 50px;
	cursor: pointer;
}

/* Fix Flatsome theme override khiến select bị trắng */
.tammi-checkout-wrap select.tammi-input,
.tammi-checkout-wrap select.tammi-select {
	color: #000 !important;
	font-size: 16px !important;
	font-family: inherit !important;
	line-height: 1.5 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	border: 1px solid hsl(0deg 0% 0% / 10%) !important;
	background: #FAFAFA !important;
	height: 56px;
}
.tammi-checkout-wrap select.tammi-input option,
.tammi-checkout-wrap select.tammi-select option {
	color: #1a1a1a !important;
	background-color: #fff !important;
	padding: 8px 12px;
	font-size: 14px;
}
.tammi-checkout-wrap select.tammi-input option[value=""],
.tammi-checkout-wrap select.tammi-select option[value=""] {
	color: #aaa !important;
}

/* ===== PAYMENT METHOD ===== */
.tammi-payment-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	cursor: pointer;
	transition: all .2s ease;
	max-width: 310px;
}
.tammi-payment-card.is-active {
	border-color: #e91e63;
}
.tammi-payment-card input[type="radio"] { display: none; }
.tammi-payment-dot {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #ccc;
	position: relative;
	flex-shrink: 0;
}
.tammi-payment-card.is-active .tammi-payment-dot {
	border-color: #e91e63;
}
.tammi-payment-card.is-active .tammi-payment-dot::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e91e63;
}
.tammi-payment-label {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
}
.tammi-payment-card.is-active .tammi-payment-label { color: #e91e63; }

/* ===== CART ITEM ===== */
.tammi-cart-item {
	display: grid;
	grid-template-columns: 60px 1fr auto;
	gap: 14px;
	padding: 4px 0 18px;
	border-bottom: 1px solid #f0f0f0;
	margin-bottom: 18px;
}
.tammi-cart-thumb {
	width: 60px; height: 60px;
	border-radius: 10px; overflow: hidden;
	background: #f5f5f5;
}
.tammi-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tammi-cart-info { min-width: 0; }
.tammi-cart-name {
	font-size: 14px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 4px;
	line-height: 1.35;
}
.tammi-cart-meta {
	font-size: 13px;
	color: #888;
	margin-bottom: 6px;
}
.tammi-cart-qty { color: #555; }
.tammi-cart-addon {
	font-size: 12px;
	color: #888;
	line-height: 1.5;
}
.tammi-cart-price {
	font-size: 14px;
	font-weight: 700;
	color: #1a1a1a;
	white-space: nowrap;
}

/* ===== COUPON ===== */
.tammi-coupon-section { margin-top: 4px; }
.tammi-coupon-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	align-items: center;
}
.tammi-coupon-btn {
	background: #1a1a1a;
	color: #fff;
	border: none;
	padding: 5px 24px;
	border-radius: 30px;
	height: 48px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: all .2s ease;
}
.tammi-coupon-btn:hover { background: #000; }
.tammi-coupon-error {
	color: #c62828;
	font-size: 12px;
	margin-top: 8px;
	padding-left: 8px;
}
.tammi-coupon-applied {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	background: #fce4ec;
	padding: 10px 16px;
	border-radius: 30px;
	border: 1.5px dashed #e91e63;
}
.tammi-coupon-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #e91e63;
}
.tammi-coupon-tag svg { width: 14px; height: 14px; }
.tammi-coupon-discount {
	font-weight: 700;
	color: #e91e63;
	margin-left: 4px;
}
.tammi-coupon-remove {
	background: transparent;
	border: none;
	color: #e91e63;
	font-size: 20px;
	cursor: pointer;
	padding: 0 4px;
	line-height: 1;
	font-weight: 700;
}
.tammi-coupon-remove:hover { color: #c2185b; }

/* ===== SUMMARY ===== */
.tammi-summary-label {
	font-size: 14px;
	color: #1a1a1a;
	margin-bottom: 4px;
}
.tammi-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	font-size: 14px;
	color: #444;
}
.tammi-summary-row span:last-child {
	font-weight: 600;
	color: #1a1a1a;
}
.tammi-summary-indent {
	padding-left: 14px;
	color: #777;
	font-size: 13px;
}
.tammi-summary-indent::before {
	content: '•';
	position: absolute;
	margin-left: -12px;
	color: #aaa;
}
.tammi-summary-indent span:first-child {
	position: relative;
}

.tammi-summary-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 0 4px;
	margin-top: 8px;
	border-top: 1px solid #f0f0f0;
	font-size: 15px;
	color: #1a1a1a;
}
.tammi-summary-total span:first-child { font-weight: 600; }
.tammi-total-value {
	font-size: 22px;
	font-weight: 800;
	color: #1a1a1a;
}
.tammi-vat-note {
	font-size: 12px;
	color: #999;
	text-align: right;
	margin-bottom: 18px;
}

/* ===== TERMS CHECKBOX ===== */
.tammi-terms {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: #555;
	margin-bottom: 16px;
	cursor: pointer;
}
.tammi-terms input { margin-top: 3px; flex-shrink: 0; accent-color: #e91e63; }
.tammi-terms a { color: #e91e63; text-decoration: none; }
.tammi-terms a:hover { text-decoration: underline; }

/* ===== PLACE ORDER BUTTON ===== */
.tammi-checkout-wrap .tammi-place-order-btn {
	width: 100%;
	background: #1a1a1a;
	color: #fff;
	border: none;
	padding: 16px;
	border-radius: 30px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: all .2s ease;
	height: 48px;
	padding: 3px 20px;
}
.tammi-place-order-btn:hover {
	background: #000;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}

/* ===== SUCCESS PAGE ===== */
.tammi-success-card {
	background: #fff;
	border-radius: 16px;
	padding: 60px 40px;
	text-align: center;
	max-width: 500px;
	margin: 40px auto;
}
.tammi-success-icon {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: #e91e63;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}
.tammi-success-icon svg { width: 40px; height: 40px; }
.tammi-success-card h2 {
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 16px;
	color: #1a1a1a;
}
.tammi-success-card p {
	font-size: 14px;
	color: #555;
	margin: 0 0 12px;
	line-height: 1.6;
}
.tammi-success-btn {
	display: inline-block;
	margin-top: 20px;
	background: #1a1a1a;
	color: #fff !important;
	padding: 12px 32px;
	border-radius: 30px;
	font-weight: 700;
	text-decoration: none;
	transition: all .2s ease;
}
.tammi-success-btn:hover {
	background: #000;
	color: #fff !important;
}
.tammi-empty-cart {
	background: #fff;
	border-radius: 16px;
	padding: 60px 40px;
	text-align: center;
	max-width: 500px;
	margin: 40px auto;
}
.tammi-empty-cart p { font-size: 16px; color: #555; margin-bottom: 20px; }

/* ====================================================================
   RESPONSIVE
==================================================================== */
@media (max-width: 1024px) {
	.tammi-checkout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	.tammi-checkout-wrap { padding: 16px 0 40px; }
	.tammi-checkout-section { padding: 18px; }
	.tammi-form-row { grid-template-columns: 1fr; gap: 0; }
	.tammi-input { padding: 12px 18px; font-size: 14px; }
	.tammi-back { font-size: 16px; }
	.tammi-total-value { font-size: 20px; }
	.tammi-place-order-btn { padding: 14px; font-size: 15px; }
	.tammi-coupon-row { grid-template-columns: 1fr; gap: 8px; }
	.tammi-coupon-btn { width: 100%; }
}