/**
 * 動画アップロード欄。
 *
 * テーマのクラスに依存せず、この中で完結させる。4サイトでテーマの記法が
 * 違う（.mymoods-inquiry__* / .field__* …）ので、借りると配った先ごとに
 * 見た目が崩れる。色と字体は継承し、寸法だけを自分で決める。
 */

.mmiv {
	margin-bottom: 1.6rem;
}

.mmiv__label {
	display: block;
	font-size: 1.4rem;
	font-weight: 600;
	margin-bottom: .6rem;
}

.mmiv__input {
	width: 100%;
	box-sizing: border-box;
	padding: 1.2rem 1.4rem;
	border: 1px solid rgba(0, 0, 0, .28);
	border-radius: 6px;
	font-size: 1.5rem;
	font-family: inherit;
	line-height: 1.4;
	color: inherit;
	background: transparent;
}

.mmiv__helper {
	display: block;
	font-size: 1.3rem;
	line-height: 1.6;
	margin: .8rem .2rem 0;
	opacity: .7;
}

.mmiv__list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.mmiv__item {
	display: grid;
	grid-template-columns: 1fr auto auto;
	grid-template-areas:
		"name status action"
		"bar  bar    bar";
	gap: 6px 12px;
	align-items: center;
	padding: 10px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	font-size: 13px;
}

.mmiv__name {
	grid-area: name;
	overflow-wrap: anywhere;
}

.mmiv__status {
	grid-area: status;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.mmiv__action {
	grid-area: action;
	border: 0;
	background: none;
	padding: 0;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
	color: inherit;
}

.mmiv__bar {
	grid-area: bar;
	display: block;
	height: 4px;
	border-radius: 2px;
	background: rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.mmiv__fill {
	display: block;
	height: 100%;
	width: 0;
	background: currentColor;
	transition: width 0.2s ease-out;
}

/* 完了した行はバーを畳んで、残っている作業だけが目に入るようにする。 */
.mmiv__item.is-done .mmiv__bar {
	display: none;
}

.mmiv__item.is-done .mmiv__status {
	color: #2e7d32;
}

.mmiv__item.is-failed .mmiv__status {
	color: #c0392b;
}

.mmiv__item.is-failed .mmiv__bar {
	display: none;
}

.mmiv__error {
	margin: 10px 0 0;
	color: #c0392b;
	font-size: 13px;
}

/* アップロード中は送信できない。押せない理由が見えるようにしておく。 */
.mymoods-inquiry__submit .button[aria-busy="true"] {
	opacity: 0.55;
	cursor: not-allowed;
}
