/* ---- Delivery Route — Mobile-first ---- */

.se-route-page {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	background: #f5f5f5;
	-webkit-text-size-adjust: 100%;
}

.se-route-header {
	background: #2c2c2c;
	color: #fff;
	padding: 16px 20px;
	position: sticky;
	top: 0;
	z-index: 100;
}

.se-route-header h1 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
}

.se-route-summary {
	margin: 4px 0 0;
	font-size: 14px;
	opacity: 0.8;
}

/* Map */
.se-route-map {
	width: 100%;
	height: 260px;
	background: #e0e0e0;
}

/* Stop list */
.se-stop-list {
	padding: 12px;
}

.se-stop-empty {
	text-align: center;
	padding: 40px 20px;
	color: #666;
}

.se-stop {
	background: #fff;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.se-stop--done {
	opacity: 0.45;
	order: 999; /* push to bottom */
}

.se-stop-info {
	flex: 1;
	min-width: 0;
}

.se-stop-name {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: var(--light);
}

.se-stop-address {
	display: block;
	font-size: 14px;
	color: #555;
	margin-top: 2px;
}

.se-stop-details {
	display: block;
	font-size: 13px;
	color: #888;
	margin-top: 4px;
}

/* Buttons */
.se-stop-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.se-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	min-height: 48px; /* thumb-friendly */
	-webkit-tap-highlight-color: transparent;
}

.se-btn--nav {
	background: #f0f0f0;
	color: var(--light);
}

.se-btn--delivered {
	background: #00a32a;
	color: #fff;
}

.se-btn--delivered:active {
	background: #008a20;
}

.se-btn--delivered:disabled {
	background: #999;
	cursor: not-allowed;
}

.se-btn--done {
	background: #e0e0e0;
	color: #888;
	cursor: default;
}

/* ---- Weekly Menu Page ---- */

.se-menu-page {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	background: #f5f5f5;
	-webkit-text-size-adjust: 100%;
}

.se-menu-header {
	background: #2c2c2c;
	color: #fff;
	padding: 28px 20px;
	text-align: center;
}

.se-menu-header h1 {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.se-menu-tagline {
	margin: 6px 0 0;
	font-size: 14px;
	opacity: 0.75;
	font-weight: 400;
}

.se-menu-content {
	max-width: 600px;
	margin: 0 auto;
	padding: 0 16px 32px;
}

.se-menu-greeting {
	padding: 20px 0 0;
}

.se-menu-greeting p {
	font-size: 17px;
	line-height: 1.5;
	color: #333;
	margin: 0;
}

.se-menu-section {
	margin-top: 24px;
}

.se-menu-section h2 {
	font-size: 18px;
	font-weight: 700;
	color: var(--light);
	margin: 0 0 12px;
}

.se-menu-coffee {
	background: #fff;
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.se-menu-coffee h3 {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
	color: var(--light);
}

.se-menu-coffee p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #555;
}

.se-menu-order {
	background: #fff;
	border-radius: 10px;
	padding: 18px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	margin-bottom: 16px;
}

.se-menu-order dl {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 16px;
}

.se-menu-order dt {
	font-size: 14px;
	color: #888;
	font-weight: 500;
}

.se-menu-order dd {
	margin: 0;
	font-size: 14px;
	color: var(--light);
	font-weight: 600;
}

.se-menu-edit-note {
	font-size: 15px;
	line-height: 1.5;
	color: #333;
	margin: 0 0 16px;
}

.se-btn--primary {
	background: #2c2c2c;
	color: #fff;
	display: block;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
}

.se-btn--primary:active {
	background: #1a1a1a;
}

.se-menu-cta p {
	font-size: 15px;
	line-height: 1.5;
	color: #555;
	margin: 0 0 16px;
}

.se-menu-footer {
	margin-top: 32px;
	text-align: center;
	padding: 16px 0;
	border-top: 1px solid #e0e0e0;
}

.se-menu-footer p {
	margin: 0;
	font-size: 13px;
	color: #999;
}

/* ---- Rating Page ---- */

.se-rate-page {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	background: #f5f5f5;
	-webkit-text-size-adjust: 100%;
}

.se-rate-header {
	background: #2c2c2c;
	color: #fff;
	padding: 20px;
	text-align: center;
}

.se-rate-header h1 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
}

.se-rate-content {
	max-width: 480px;
	margin: 0 auto;
	padding: 0 16px 32px;
}

.se-rate-coffee-info {
	text-align: center;
	padding: 24px 0 8px;
}

.se-rate-coffee-info h2 {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	color: var(--light);
}

.se-rate-details {
	margin: 0;
	font-size: 14px;
	color: #888;
}

.se-rate-form {
	margin-top: 20px;
}

.se-rate-stars-label {
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin-bottom: 12px;
}

.se-rate-stars {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 24px;
}

.se-star {
	font-size: 40px;
	line-height: 1;
	color: #d0d0d0;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	transition: color 0.15s, transform 0.15s;
	-webkit-tap-highlight-color: transparent;
}

.se-star:active {
	transform: scale(1.2);
}

.se-star--filled {
	color: #f5a623;
}

.se-rate-comment-label {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
}

.se-rate-comment-label span {
	font-weight: 400;
	color: #999;
}

.se-rate-comment {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: 12px;
	font-size: 15px;
	font-family: inherit;
	resize: vertical;
	margin-bottom: 20px;
}

.se-rate-comment:focus {
	outline: none;
	border-color: #2c2c2c;
}

.se-rate-submit:disabled {
	background: #999;
	cursor: not-allowed;
}

/* Success / error messages */
.se-rate-message {
	text-align: center;
	padding: 48px 20px;
}

.se-rate-icon {
	font-size: 48px;
	color: #f5a623;
	margin-bottom: 12px;
}

.se-rate-message h2 {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	color: var(--light);
}

.se-rate-message p {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: #555;
}

.se-rate-footer {
	margin-top: 40px;
	text-align: center;
	padding: 16px 0;
	border-top: 1px solid #e0e0e0;
}

.se-rate-footer p {
	margin: 0;
	font-size: 13px;
	color: #999;
}

/* ---- Grind edit on My Account ---- */

.se-grind-edit {
	margin-bottom: 20px;
}

.se-grind-status {
	display: inline-block;
	margin-left: 8px;
	font-size: 14px;
}

/* ---- My Coffee Tab (My Account) ---- */

.se-my-coffee {
	max-width: 680px;
}

.se-mc-section {
	margin-bottom: 32px;
}

.se-mc-section h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--light);
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #f0f0f0;
}

.se-mc-empty {
	color: #666;
	font-size: 14px;
}

/* Current subscription card */
.se-mc-card {
	border:1px solid var(--accentPrimary);
	background:#00f0b521;
	border-radius: 8px;
	padding: 18px 20px;
}

.se-mc-details {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 20px;
}

.se-mc-details dt {
	font-size: 14px;
	color: #888;
	font-weight: 500;
}

.se-mc-details dd {
	margin: 0;
	font-size: 14px;
	color: var(--light);
	font-weight: 600;
}

.se-mc-edit-link {
	display: inline-block;
	margin-top: 14px;
	font-size: 14px;
	font-weight: 600;
	color: #2c2c2c;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.se-mc-edit-link:hover {
	color: #000;
}

/* Taste profile */
.se-mc-profile-intro {
	font-size: 14px;
	color: #666;
	margin: 0 0 14px;
}

.se-mc-profile {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.se-mc-tag-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.se-mc-tag-label {
	width: 100px;
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	text-align: right;
}

.se-mc-tag-bar-wrap {
	flex: 1;
	height: 14px;
	background: #f0f0f0;
	border-radius: 7px;
	overflow: hidden;
}

.se-mc-tag-bar {
	height: 100%;
	background: #f5a623;
	border-radius: 7px;
	min-width: 4px;
	transition: width 0.3s ease;
}

.se-mc-tag-score {
	width: 32px;
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 600;
	color: #555;
}

/* Order history */
.se-mc-history {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.se-mc-history-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
}

.se-mc-history-item:last-child {
	border-bottom: none;
}

.se-mc-history-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.se-mc-history-coffee {
	font-size: 14px;
	font-weight: 600;
	color: var(--light);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.se-mc-history-meta {
	font-size: 12px;
	color: #888;
	margin-top: 2px;
}

.se-mc-history-rating {
	flex-shrink: 0;
}

.se-mc-stars {
	display: inline-flex;
	gap: 1px;
}

.se-mc-star {
	font-size: 16px;
	color: #d0d0d0;
	line-height: 1;
}

.se-mc-star--filled {
	color: #f5a623;
}

.se-mc-rate-link {
	font-size: 13px;
	font-weight: 600;
	color: #2c2c2c;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.se-mc-rate-link:hover {
	color: #000;
}

/* ---- SMS fields (checkout + My Account) ---- */

.se-sms-fields {
	width: 100%;
}

.se-sms-fields .form-row {
	width: 100%;
	box-sizing: border-box;
}

.se-sms-disclosure {
	font-size: 12px;
	color: #666;
	line-height: 1.5;
	margin-top: 8px;
}
