/* Memory Social Share modal (waffle switch: memory_social_share) */

#memory-share-modal {
	position: fixed;
	inset: 0;
	z-index: 10010;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	font-family: 'Montserrat', 'SFPROTEXT', sans-serif;
}

#memory-share-modal .memory-share-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 18, 30, 0.55);
}

#memory-share-modal .memory-share-sheet {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: 92vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 18px 18px 0 0;
	padding: 18px 20px 24px;
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}

@media (min-width: 600px) {
	#memory-share-modal {
		align-items: center;
	}

	#memory-share-modal .memory-share-sheet {
		border-radius: 18px;
	}
}

.memory-share-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.memory-share-title {
	font-size: 17px;
	font-weight: 700;
	color: #1a1a2e;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.memory-share-level {
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: #ea794c;
	border-radius: 999px;
	padding: 3px 10px;
	letter-spacing: 0.04em;
}

.memory-share-close {
	background: none;
	border: none;
	color: #757575;
	cursor: pointer;
	padding: 6px;
	border-radius: 50%;
	display: flex;
}

.memory-share-close:hover,
.memory-share-close:focus-visible {
	background: #f3f3f3;
	color: #1a1a2e;
	outline: none;
}

.memory-share-formats {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.memory-share-format-btn {
	flex: 1;
	border: 1px solid #dedede;
	background: #fff;
	color: #555;
	border-radius: 999px;
	padding: 8px 0;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.memory-share-format-btn.selected {
	background: #1a1a2e;
	border-color: #1a1a2e;
	color: #fff;
}

.memory-share-preview {
	width: 180px;
	aspect-ratio: 9 / 16;
	margin: 0 auto 14px;
	border-radius: 12px;
	background-color: #ececec;
	background-size: cover;
	background-position: center;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
	transition: opacity 0.2s ease;
}

.memory-share-preview.square {
	width: 240px;
	aspect-ratio: 1 / 1;
}

.memory-share-preview.loading {
	opacity: 0.45;
}

.memory-share-upsell {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fef3ec;
	border: 1px solid #f3c9b2;
	border-radius: 12px;
	padding: 10px 12px;
	margin-bottom: 12px;
}

.memory-share-upsell .material-icons-outlined {
	color: #ea794c;
	font-size: 22px;
}

.memory-share-upsell-text {
	flex: 1;
	font-size: 12px;
	color: #5b4437;
	line-height: 1.45;
}

.memory-share-upsell-btn {
	border: none;
	background: #ea794c;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	border-radius: 999px;
	padding: 8px 16px;
	cursor: pointer;
	white-space: nowrap;
}

.memory-share-upsell-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.memory-share-caption {
	width: 100%;
	border: 1px solid #dedede;
	border-radius: 12px;
	padding: 10px 12px;
	font-size: 13px;
	color: #444;
	background: #fafafa;
	resize: none;
	margin-bottom: 12px;
	box-sizing: border-box;
}

.memory-share-actions {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}

.memory-share-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px solid #dedede;
	background: #fff;
	color: #333;
	border-radius: 12px;
	padding: 11px 0;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.memory-share-btn .material-icons-outlined {
	font-size: 18px;
}

.memory-share-btn-primary {
	background: #ea794c;
	border-color: #ea794c;
	color: #fff;
}

.memory-share-btn-primary:hover {
	background: #e05f2a;
}

.memory-share-intents {
	display: flex;
	gap: 8px;
	margin-bottom: 4px;
}

.memory-share-intent {
	flex: 1;
	border: none;
	background: #f3f3f3;
	color: #444;
	border-radius: 10px;
	padding: 9px 0;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.memory-share-intent:hover {
	background: #e8e8e8;
}

.memory-share-status {
	min-height: 18px;
	font-size: 12px;
	color: #2e7d32;
	text-align: center;
}

.memory-share-status.memory-share-status-error {
	color: #c62828;
}

/* Inline share button on the memory detail action row */
.memory-share-inline-btn {
	color: #ea794c !important;
}
