/* Banana aTickets — マイページ／注文詳細のチケット表示 */

.bat-order-tickets {
	margin: 2rem 0 1.5rem;
}

.bat-order-tickets__title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
}

.bat-order-tickets__lead {
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
	color: #555;
}

.bat-order-ticket {
	margin: 0 0 1.25rem;
	padding: 1.25rem 1.35rem;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	background: #fff;
}

.bat-order-ticket__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-bottom: 1rem;
}

.bat-order-ticket__name {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.35;
}

.bat-order-ticket__status {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	border-radius: 4px;
	background: #f0f0f0;
	font-size: 0.8rem;
}

.bat-order-ticket__event-date {
	margin: -0.35rem 0 1rem;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
}

.bat-order-ticket__event-date .bat-order-ticket__label {
	display: inline;
	margin: 0 0.4rem 0 0;
	font-weight: 400;
}

.bat-order-ticket__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 1.75rem;
	align-items: flex-start;
}

.bat-order-ticket__meta {
	flex: 1 1 180px;
	min-width: 0;
}

.bat-order-ticket__label {
	margin: 0.75rem 0 0.15rem;
	font-size: 0.75rem;
	color: #666;
}

.bat-order-ticket__label:first-child {
	margin-top: 0;
}

.bat-order-ticket__sequence {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
}

.bat-order-ticket__code {
	margin: 0;
	word-break: break-all;
}

.bat-order-ticket__actions {
	margin: 1rem 0 0;
}

.bat-order-ticket__qr {
	flex: 0 0 auto;
}

.bat-order-ticket__qr img {
	display: block;
	width: 180px;
	height: 180px;
	background: #fff;
}

.bat-order-ticket__body {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #eee;
	font-size: 0.92rem;
	line-height: 1.7;
	color: #333;
}

.bat-order-ticket__body p {
	margin: 0 0 0.7em;
}

.bat-order-ticket__body p:last-child {
	margin-bottom: 0;
}

@media (max-width: 480px) {
	.bat-order-ticket__qr img {
		width: 160px;
		height: 160px;
	}
}

/* 券種選択（Peatix 風一覧） */
.bat-ticket-type-picker {
	margin: 1rem 0 1.5rem;
	max-width: 40rem;
}

.bat-ticket-type-picker__title {
	margin: 0 0 0.35rem;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.35;
	color: #1c1917;
}

.bat-ticket-type-picker__lead {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	line-height: 1.55;
	color: #57534e;
}

.bat-ticket-type-picker__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.bat-ticket-type-picker__item {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.85rem 1rem;
	padding: 1rem 1.05rem;
	border: 1px solid #e7e5e4;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}

.bat-ticket-type-picker__item.is-low-stock {
	border-color: #fcd34d;
	background: #fffbeb;
}

.bat-ticket-type-picker__item.is-unavailable {
	opacity: 0.72;
	background: #f5f5f4;
}

.bat-ticket-type-picker__main {
	flex: 1 1 12rem;
	min-width: 0;
}

.bat-ticket-type-picker__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.35rem 0.75rem;
}

.bat-ticket-type-picker__name {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.35;
	color: #1c1917;
}

.bat-ticket-type-picker__price {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #9d174d;
	white-space: nowrap;
}

.bat-ticket-type-picker--hide-price .bat-ticket-type-picker__price {
	display: none;
}

.bat-ticket-type-picker__desc {
	margin: 0.45rem 0 0;
	font-size: 0.88rem;
	line-height: 1.5;
	color: #44403c;
}

.bat-ticket-type-picker__stock {
	margin: 0.35rem 0 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: #78716c;
}

.bat-ticket-type-picker__item.is-low-stock .bat-ticket-type-picker__stock {
	color: #b45309;
}

.bat-ticket-type-picker__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	flex: 0 0 auto;
}

.bat-ticket-type-picker__qty {
	min-width: 4.2rem;
	padding: 0.5rem 0.55rem;
	border: 1px solid #d6d3d1;
	border-radius: 8px;
	background: #fff;
	font-size: 0.95rem;
}

.bat-ticket-type-picker__add {
	margin: 0 !important;
	padding: 0.55rem 0.95rem !important;
	border-radius: 8px !important;
	font-size: 0.92rem !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	white-space: nowrap;
}

.bat-ticket-type-picker__add:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.bat-ticket-type-picker__feedback {
	flex: 1 1 100%;
	margin: 0.15rem 0 0;
	font-size: 0.86rem;
	line-height: 1.45;
}

.bat-ticket-type-picker__feedback.is-success {
	color: #166534;
}

.bat-ticket-type-picker__feedback.is-error {
	color: #b91c1c;
}

.bat-ticket-type-picker__feedback-link {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

.bat-ticket-folder-widget {
	margin: 1rem 0 0;
}

.bat-ticket-folder-widget[hidden] {
	display: none !important;
}

.bat-ticket-folder-widget__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.6rem 1.05rem;
	border-radius: 8px;
	background: #9d174d;
	color: #fff !important;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	box-shadow: 0 1px 2px rgba(28, 25, 23, 0.12);
}

.bat-ticket-folder-widget__btn:hover,
.bat-ticket-folder-widget__btn:focus {
	background: #831843;
	color: #fff !important;
}

.bat-ticket-folder-widget__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.45em;
	height: 1.45em;
	padding: 0 0.4em;
	border-radius: 999px;
	background: #fff;
	color: #9d174d;
	font-size: 0.82em;
	font-weight: 800;
}

.bat-ticket-folder-widget.is-updated .bat-ticket-folder-widget__btn {
	animation: bat-folder-pulse 0.7s ease;
}

@keyframes bat-folder-pulse {
	0% { transform: scale(1); }
	35% { transform: scale(1.05); }
	100% { transform: scale(1); }
}

body.bat-event-sales-view .bat-ticket-type-picker {
	max-width: none;
}

@media (max-width: 540px) {
	.bat-ticket-type-picker__item {
		flex-direction: column;
		align-items: stretch;
	}

	.bat-ticket-type-picker__actions {
		width: 100%;
	}

	.bat-ticket-type-picker__qty {
		flex: 1 1 auto;
	}

	.bat-ticket-type-picker__add {
		flex: 1 1 auto;
		width: 100%;
		text-align: center;
	}
}

/* 旧プルダウン UI（フォールバック） */
.bat-ticket-type-cart {
	margin: 1rem 0 1.5rem;
}

.bat-ticket-type-cart__label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4rem;
}

.bat-ticket-type-cart__select {
	width: 100%;
	max-width: 28rem;
	padding: 0.55rem 0.7rem;
	margin-bottom: 1rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
}

.bat-ticket-type-cart .quantity {
	margin-bottom: 1rem;
}

/* 購入者負担のチケット手数料案内 */
.bat-buyer-fee-notice {
	margin: 0.75rem 0 1rem;
	padding: 0.75rem 0.9rem;
	border-radius: 8px;
	background: #f7f3f0;
	border: 1px solid #e8e0d8;
}

.bat-buyer-fee-notice__text,
.bat-buyer-fee-notice p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
	color: #3f3a36;
}

.bat-buyer-fee-notice--ticket {
	margin-top: 0.85rem;
}

.single-product .bat-buyer-fee-notice {
	max-width: 36rem;
}

/* 販売ページの案内（WooCommerce 標準 notice を置き換え） */
.bat-front-alert {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 0 0 1.15rem;
	padding: 0.95rem 1.1rem;
	border-radius: 10px;
	border: 1px solid transparent;
	border-left-width: 4px;
	box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
	max-width: 36rem;
}

.bat-front-alert__text {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.55;
	letter-spacing: -0.01em;
}

.bat-front-alert--info {
	background: #f7f4ef;
	border-color: #e7dfd4;
	border-left-color: #8a6d4d;
	color: #3d342c;
}

.bat-front-alert--warning {
	background: #fbf5eb;
	border-color: #edd9b5;
	border-left-color: #c4841d;
	color: #5c4010;
}

.bat-front-alert--error {
	background: #fbf1f2;
	border-color: #efd0d5;
	border-left-color: #cd3369;
	color: #6b1f35;
}

.bat-front-alert--success {
	background: #f2f7f3;
	border-color: #d3e4d7;
	border-left-color: #3f7a4e;
	color: #244830;
}

/* 販売ページに出る WooCommerce 標準アラートも同系統に寄せる */
.single-product .woocommerce-notices-wrapper {
	margin: 0 0 1rem;
	max-width: 36rem;
}

.single-product .woocommerce-info,
.single-product .woocommerce-message,
.single-product .woocommerce-error,
.single-product .woocommerce-notice {
	margin: 0 0 0.85rem !important;
	padding: 0.95rem 1.1rem !important;
	border: 1px solid transparent !important;
	border-left-width: 4px !important;
	border-radius: 10px !important;
	background: #f7f4ef !important;
	box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
	list-style: none !important;
}

.single-product .woocommerce-info,
.single-product .woocommerce-notice {
	border-color: #e7dfd4 !important;
	border-left-color: #8a6d4d !important;
	color: #3d342c !important;
}

.single-product .woocommerce-message {
	background: #f2f7f3 !important;
	border-color: #d3e4d7 !important;
	border-left-color: #3f7a4e !important;
	color: #244830 !important;
}

.single-product .woocommerce-error {
	background: #fbf1f2 !important;
	border-color: #efd0d5 !important;
	border-left-color: #cd3369 !important;
	color: #6b1f35 !important;
}

.single-product .woocommerce-info::before,
.single-product .woocommerce-message::before,
.single-product .woocommerce-error::before,
.single-product .woocommerce-notice::before {
	display: none !important;
	content: none !important;
}

.single-product .woocommerce-info li,
.single-product .woocommerce-message li,
.single-product .woocommerce-error li,
.single-product .woocommerce-notice li {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.55;
	list-style: none !important;
}

.single-product .woocommerce-info li::before,
.single-product .woocommerce-message li::before,
.single-product .woocommerce-error li::before {
	display: none !important;
	content: none !important;
}

/* 無料・予約のみ案内 */
.bat-settle-notice {
	margin: 0.75rem 0 1rem;
	padding: 0.75rem 0.9rem;
	border-radius: 8px;
	background: #f4f7f4;
	border: 1px solid #d7e3d7;
}

.bat-settle-notice p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #2f3d2f;
}

.bat-settle-notice--checkout {
	margin: 0 0 1.25rem;
}

.bat-settle-notice-row th {
	padding: 0.5rem 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.bat-pricing-badge {
	display: inline-block;
	margin-left: 0.4rem;
	padding: 0.1rem 0.45rem;
	border-radius: 3px;
	font-size: 0.8em;
	font-weight: 600;
	background: #f0f0f0;
	color: #555;
	vertical-align: middle;
}

.bat-pricing-badge--reservation {
	background: #eef5ee;
	color: #2f4a2f;
}

.bat-pricing-guide {
	display: inline-block;
	margin-left: 0.25rem;
	font-weight: 400;
	color: #666;
}

.bat-price-suffix {
	font-size: 0.85em;
	font-weight: 500;
	color: #555;
}


