/* OTH AIコンシェルジュ for Welcart — 取引先画面（スマホ優先） */

.oth-acw-usual,
.oth-acw-save-template,
.oth-acw-cutoff,
.oth-acw-notice {
	--oth-acw-accent: #2e7d32;
	--oth-acw-accent-ink: #fff;
	--oth-acw-line: #d9dfd6;
	--oth-acw-muted: #5f6b5c;
	--oth-acw-warn-bg: #fff4e5;
	--oth-acw-warn-line: #f0b35b;
	box-sizing: border-box;
}

.oth-acw-usual {
	margin: 0 0 32px;
	padding: 16px;
	border: 1px solid var(--oth-acw-line);
	border-radius: 8px;
	background: #fbfcfa;
	scroll-margin-top: 64px;
}

.oth-acw-usual-title {
	margin: 0 0 12px;
	font-size: 1.2em;
}

/* テーマの見出し装飾（字間・余白）を打ち消す。.page_frame h4 などより強くするため要素名も付ける。 */
.oth-acw-usual h4.oth-acw-subtitle,
.oth-acw-application-title {
	margin: 20px 0 8px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: 1em;
	font-weight: bold;
	letter-spacing: normal;
	text-align: left;
}

.oth-acw-usual-last {
	margin-bottom: 8px;
}

.oth-acw-hint {
	margin: 6px 0 0;
	color: var(--oth-acw-muted);
	font-size: 0.85em;
}

.oth-acw-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.oth-acw-list-item {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border-top: 1px solid var(--oth-acw-line);
}

.oth-acw-list-main {
	display: flex;
	flex: 1 1 240px;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.oth-acw-items,
.oth-acw-meta {
	color: var(--oth-acw-muted);
	font-size: 0.9em;
	overflow-wrap: anywhere;
}

.oth-acw-list-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.oth-acw-btn {
	display: inline-block;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid var(--oth-acw-accent);
	border-radius: 6px;
	background: #fff;
	color: var(--oth-acw-accent);
	font-size: 1em;
	line-height: 1.3;
	cursor: pointer;
}

.oth-acw-btn-primary {
	background: var(--oth-acw-accent);
	color: var(--oth-acw-accent-ink);
}

.oth-acw-btn-link {
	border-color: transparent;
	background: transparent;
	text-decoration: underline;
}

.oth-acw-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.oth-acw-message {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 6px;
	background: #edf7ed;
	white-space: pre-line;
}

.oth-acw-message.is-error {
	background: #fdecea;
}

/* カート：テンプレート保存 */
.oth-acw-save-template {
	margin: 24px 0;
	padding: 16px;
	border: 1px dashed var(--oth-acw-line);
	border-radius: 8px;
}

.oth-acw-save-template label {
	display: block;
	margin-bottom: 8px;
	font-weight: bold;
}

.oth-acw-save-template-row {
	display: flex;
	gap: 8px;
}

.oth-acw-save-template-row input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 44px;
	padding: 8px;
	font-size: 16px;
}

.oth-acw-save-template .oth-acw-message {
	margin: 12px 0 0;
}

/* 締切の案内 */
.oth-acw-cutoff {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-left: 4px solid var(--oth-acw-accent);
	background: #f1f8f1;
}

.oth-acw-cutoff.is-late {
	border-left-color: var(--oth-acw-warn-line);
	background: var(--oth-acw-warn-bg);
}

.oth-acw-cutoff p {
	margin: 0;
}

.oth-acw-cutoff-status {
	font-weight: bold;
}

.oth-acw-delivery-note {
	margin: 4px 0 0;
	color: #5f6b5c;
	font-size: 0.85em;
}

#oth-acw-delivery-date {
	min-height: 40px;
	font-size: 16px;
}

/* 利用申請・ログインの案内 */
.oth-acw-notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	border: 1px solid var(--oth-acw-line);
	border-radius: 6px;
	background: #f7faf6;
}

.oth-acw-notice p {
	margin: 0 0 4px;
}

.oth-acw-application textarea {
	width: 100%;
	box-sizing: border-box;
}

/* 価格を伏せたときのリンク */
.oth-acw-price-login {
	font-size: 0.9em;
}

/* 上部固定の「いつもの注文」バー */
.oth-acw-usual-bar {
	position: sticky;
	top: 0;
	z-index: 9990;
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	padding: 6px 16px;
	background: #2e7d32;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.oth-acw-usual-bar-link,
.oth-acw-usual-bar-quick {
	display: inline-block;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid #fff;
	border-radius: 18px;
	background: #fff;
	color: #2e7d32;
	font-size: 14px;
	font-weight: bold;
	line-height: 22px;
	text-decoration: none;
	cursor: pointer;
}

.oth-acw-usual-bar-quick {
	background: transparent;
	color: #fff;
}

.admin-bar .oth-acw-usual-bar {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .oth-acw-usual-bar {
		top: 0;
	}
}

/* AIチャットの商品カード */
.oth-aics-card[data-oth-kind="products"] .oth-aics-card-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.oth-acw-card-image {
	width: 56px;
	height: 56px;
	flex: 0 0 56px;
	border-radius: 6px;
	object-fit: cover;
}
