/* ══════════════════════════════════════════
   Everfox Warranty Form v2
   Checkout-style contact + WAPO-style fields
   ══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   Modal — inherits .everfox-cart-modal from v2.css
   Only warranty-specific overrides here
   ══════════════════════════════════════════ */

/* Shell height: managed by ef-modal.css */


/* CTA button — full width on mobile */
@media (max-width: 480px) {
	#ef-warranty-open-btn {
		width: 100%;
		min-width: 0;
	}
}

/* Modal header icon (inside .side-cart-header) */
.ef-warranty-modal-icon {
	display: inline-flex;
	vertical-align: middle;
	margin-right: 8px;
}

/* Scrollable form body */
#ef-warranty-modal .ef-warranty-form-scroll {
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	flex: 1 1 0%;
	padding: 0 20px 15px 20px;
	scrollbar-width: none;
}
#ef-warranty-modal .ef-warranty-form-scroll::-webkit-scrollbar {
	display: none;
}



/* ══════════════════════════════════════════
   Order context summary (order-context mode)
   ══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   Contact grid — mirrors checkout layout
   .woocommerce-billing-fields__field-wrapper
   ══════════════════════════════════════════ */

.ef-warranty-contact {
	display: grid;
	gap: 5px 20px;
	grid-template-columns: 1fr 1fr 1fr;
}

/* Row 1 col 1: phone */
.ef-warranty-grid-phone {
	grid-column: 1;
	grid-row: 1;
	margin: 20px 0 15px;
}

/* Row 1 col 2-3: phone auth */
.ef-warranty-contact .ef-phone-auth {
	grid-column: 2 / -1;
	grid-row: 1;
	max-width: 320px;
}
.ef-warranty-contact .ef-phone-auth__col {
	padding-top: 12px;
}
.ef-warranty-contact [data-auth-state="offer_login"] .ef-phone-auth__col,
.ef-warranty-contact [data-auth-state="otp_form"] .ef-phone-auth__col {
	gap: 5px;
}

/* Row 2 col 1: first name */
.ef-warranty-grid-name {
	grid-column: 1;
	grid-row: 2;
	margin: 0 0 15px;
}

/* Row 2 col 2: last name */
.ef-warranty-grid-surname {
	grid-column: 2;
	grid-row: 2;
	margin: 0 0 15px;
}

/* Row 3: orders */
.ef-warranty-grid-orders {
	grid-column: 1 / -1;
	grid-row: 3;
	margin: -5px 0 8px;
}

/* Hidden fields (before phone verified) */
.ef-warranty-field-hidden {
	display: none !important;
}

@media (max-width: 768px) {
	.ef-warranty-contact {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 480px) {
	.ef-warranty-contact {
		grid-template-columns: 1fr;
	}
	.ef-warranty-grid-phone,
	.ef-warranty-contact .ef-phone-auth,
	.ef-warranty-grid-name,
	.ef-warranty-grid-surname,
	.ef-warranty-grid-orders {
		grid-column: 1 / -1;
		grid-row: auto;
	}
	.ef-warranty-contact .ef-phone-auth {
		height: auto;
		margin: 0 0 20px;
	}
}

/* ══════════════════════════════════════════
   Float labels — checkout overrides
   (v3-checkout.css scopes these to .woocommerce-checkout,
    here we provide the same rules for .ef-warranty-form)
   ══════════════════════════════════════════ */

/* Mirror: .woocommerce-checkout form.checkout .ef-float-label */
.ef-warranty-form .ef-float-label {
	left: 0;
	font-size: 15px;
}

/* Mirror: .woocommerce-checkout form.checkout .ef-field-group--float ... translateY(-24px) */
.ef-warranty-form .ef-field-group--float .ef-input-wrap input:focus ~ .ef-float-label .label-char,
.ef-warranty-form .ef-field-group--float .ef-input-wrap input:not(:placeholder-shown) ~ .ef-float-label .label-char {
	transform: translateY(-24px);
}

/* Mirror: border-bottom on .ef-input-wrap (in checkout it's scoped) */
.ef-warranty-form .ef-input-wrap {
	border-bottom: 1px solid var(--EF-Color-Border-Light, #DFE1E3);
	transition: border-color 0.2s, border-bottom-width 0.2s;
}
.ef-warranty-form .ef-input-wrap:focus-within {
	border-bottom-color: var(--EF-Color-Text, #1F2631);
	border-bottom-width: 2px;
}

.ef-warranty-form .ef-input-wrap input {
	width: 100%;
	padding: 0;
	border: none;
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 1px;
	color: var(--EF-Color-Text);
	background: transparent;
}
.ef-warranty-form .ef-input-wrap input::placeholder {
	color: transparent;
}
.ef-warranty-form .ef-input-wrap input:focus {
	outline: none;
}
.ef-warranty-form .ef-input-wrap input:-webkit-autofill,
.ef-warranty-form .ef-input-wrap input:-webkit-autofill:hover,
.ef-warranty-form .ef-input-wrap input:-webkit-autofill:focus {
	box-shadow: 0 0 0 1000px var(--EF-Color-Surface, #fff) inset;
	transition: background-color 5000s ease-in-out;
}

/* Capitalize names like checkout */
#ef-warranty-first-name,
#ef-warranty-last-name {
	text-transform: capitalize;
}

/* ── Error state ── */
.ef-warranty-form .ef-field-error {
	border-bottom-color: var(--EF-Color-Error, #E53935) !important;
}

/* ══════════════════════════════════════════
   Message addon — 1:1 copy of #yith-wapo-addon-28
   Scoped via #ef-warranty-message-addon
   ══════════════════════════════════════════ */

#ef-warranty-message-addon.yith-wapo-addon {
	position: relative;
	border-radius: 12px;
	padding: 1px;
	overflow: hidden;
	border: 1px solid var(--EF-Color-Border-Medium, #DFE1E3);
	box-shadow: 0px 1px 3px rgba(0,0,0,0.07), 0px 4px 12px rgba(0,0,0,0.04);
	box-sizing: border-box;
	margin-top: 0;
	margin-bottom: 15px;
	transition: box-shadow 0.2s;
}
#ef-warranty-message-addon.yith-wapo-addon:hover,
#ef-warranty-message-addon.yith-wapo-addon:focus-within {
	box-shadow: 0px 1px 3px rgba(0,0,0,0.07), 0px 4px 12px rgba(0,0,0,0.04),
	            0 0 0 3px var(--EF-Color-Focus-Ring);
}

#ef-warranty-message-addon .addon-header {
	display: block;
	min-height: 38px;
	margin: 0;
	padding: 0;
}

#ef-warranty-message-addon .wapo-addon-title {
	display: flex;
	position: relative;
	min-height: 38px;
	padding: 4px 20px;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	gap: 4px;
	border: 1px solid var(--EF-Color-Border-Medium, #DFE1E3);
	border-radius: 10px;
	box-shadow: rgba(255,255,255,0.85) 0px 1px 0px inset,
	            rgba(255,255,255,0.6) 1px 0px 0px inset,
	            rgba(255,255,255,0.6) -1px 0px 0px inset,
	            rgba(255,255,255,0.5) 0px -1px 0px inset,
	            rgba(0,0,0,0.03) 0px 2px 4px -1px inset,
	            rgba(0,0,0,0.02) 0px -2px 4px -1px inset;
	text-align: left;
	cursor: pointer;
	background: linear-gradient(180deg, var(--EF-Color-Surface, #fff) 0%, var(--EF-Color-Chip-Bg, #F5F5F5) 100%);
	transition: background 0.15s;
}

/* No icon, no chevron, always open */
#ef-warranty-message-addon .wapo-addon-title::before,
#ef-warranty-message-addon .wapo-addon-title::after {
	display: none;
	content: none;
}
#ef-warranty-message-addon .wapo-addon-title {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border-bottom: 1px solid var(--EF-Color-Border-Medium, #DFE1E3);
	cursor: default;
}

#ef-warranty-message-addon .wapo-addon-title .title {
	display: block;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--EF-Color-Text);
}

#ef-warranty-message-addon .wapo-addon-title .addon-description {
	display: block;
	font-size: 14px;
	font-weight: 400;
	color: var(--EF-Color-Text);
	opacity: 1;
}
#ef-warranty-message-addon .wapo-addon-title .addon-description .ef-required-star {
	color: var(--EF-Color-Error, #E53935);
}

#ef-warranty-message-addon .options-container {
	display: block;
	margin: 0;
	padding: 10px;
	border: 1px solid var(--EF-Color-Border-Light, #DFE1E3);
	border-top: none;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	background: var(--EF-Color-Surface, #fff);
	overflow: hidden;
}

#ef-warranty-message-addon .yith-wapo-option {
	margin: 0;
	padding: 0;
}

#ef-warranty-message-addon .everfox-textarea-wrapper {
	display: block;
	position: relative;
	width: 100%;
	background-color: var(--EF-Color-Surface-2, #f5f7f9);
	padding: 10px;
	border-radius: 6px;
	border: 1.5px dashed var(--EF-Color-Border-Strong, #c0c4c9);
	box-shadow: 0px 2px 12px -2px rgba(0,0,0,0.06);
	box-sizing: border-box;
	min-height: 80px;
}

#ef-warranty-message-addon .everfox-textarea-wrapper textarea {
	width: 100%;
	min-height: 80px;
	padding: 0px;
	border: none;
	border-radius: 0px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--EF-Color-Text);
	background: transparent;
	background-color: transparent;
	resize: none;
}

#ef-warranty-message-addon .everfox-textarea-counter {
	position: absolute;
	top: 90px;
	right: 5px;
	padding: 2px 4px;
	font-size: 11px;
	font-weight: 300;
	line-height: 1;
	color: var(--EF-Color-Text-Muted, #848B95);
}

@media (max-width: 520px) {
	#ef-warranty-message-addon .wapo-addon-title .title {
		font-size: 14px;
	}
	#ef-warranty-message-addon .wapo-addon-title .addon-description {
		font-size: 11px;
	}
}

/* Error */
#ef-warranty-message-addon:has(textarea.ef-field-error) .everfox-textarea-wrapper {
	border-color: var(--EF-Color-Error, #E53935);
}

/* ══════════════════════════════════════════
   Issue type select — 1:1 как #ef-warranty-message-addon
   Wrapper = двойной бордер (padding 1px)
   Hover = фиолетовая тень по кругу
   Open = тень по кругу, radius 0 снизу
   ══════════════════════════════════════════ */

/* Wrapper — 1:1 как #ef-warranty-message-addon.yith-wapo-addon */
.ef-warranty-select {
	position: relative;
	margin-bottom: 15px;
	padding: 1px;
	overflow: visible;
	border: 1px solid var(--EF-Color-Border-Medium, #DFE1E3);
	border-radius: 12px;
	box-shadow: 0px 1px 3px rgba(0,0,0,0.07), 0px 4px 12px rgba(0,0,0,0.04);
	box-sizing: border-box;
	transition: box-shadow 0.2s;
}
/* Closed hover — фиолетовая тень по кругу (4 стороны) */
.ef-warranty-select:hover {
	box-shadow: 0px 1px 3px rgba(0,0,0,0.07), 0px 4px 12px rgba(0,0,0,0.04),
	            0 0 0 3px var(--EF-Color-Focus-Ring);
}
/* Open — фиолетовая тень по кругу, radius 0 снизу */
.ef-warranty-select--open {
	box-shadow: 0px 1px 3px rgba(0,0,0,0.07), 0px 4px 12px rgba(0,0,0,0.04),
	            0 0 0 3px var(--EF-Color-Focus-Ring);
}
/* Error */
.ef-warranty-select--error {
	box-shadow: 0px 1px 3px rgba(0,0,0,0.07), 0px 4px 12px rgba(0,0,0,0.04),
	            0 0 0 3px var(--EF-Color-Error, #E53935);
}

/* Trigger — 1:1 как .wapo-addon-title */
.ef-warranty-select__trigger {
	display: flex;
	position: relative;
	min-height: 38px;
	padding: 4px 10px 4px 20px;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--EF-Color-Border-Medium, #DFE1E3);
	border-radius: 10px;
	box-shadow: rgba(255,255,255,0.85) 0px 1px 0px inset,
	            rgba(255,255,255,0.6) 1px 0px 0px inset,
	            rgba(255,255,255,0.6) -1px 0px 0px inset,
	            rgba(255,255,255,0.5) 0px -1px 0px inset,
	            rgba(0,0,0,0.03) 0px 2px 4px -1px inset,
	            rgba(0,0,0,0.02) 0px -2px 4px -1px inset;
	font-size: 14px;
	font-weight: 400;
	white-space: nowrap;
	text-align: left;
	color: var(--EF-Color-Text);
	cursor: pointer;
	background: linear-gradient(180deg, var(--EF-Color-Surface, #fff) 0%, var(--EF-Color-Chip-Bg, #F5F5F5) 100%);
	transition: background 0.15s;
}
/* Open trigger — radius 0 снизу, border-bottom для стыковки */
.ef-warranty-select--open .ef-warranty-select__trigger {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border-bottom: 1px solid var(--EF-Color-Border-Medium, #DFE1E3);
}

.ef-warranty-select__value {
	flex: 1 1 0%;
	text-align: left;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ef-warranty-select__value--placeholder {
	color: var(--EF-Color-Text);
}
.ef-warranty-select__value .ef-required-star {
	color: var(--EF-Color-Error, #E53935);
}

.ef-warranty-select__chevron {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	transition: transform 0.25s;
}
.ef-warranty-select--open .ef-warranty-select__chevron {
	transform: rotate(180deg);
}

/* Dropdown — 1:1 как .options-container */
.ef-warranty-select__dropdown {
	margin: 0;
	padding: 4px 0;
	border: 1px solid var(--EF-Color-Border-Light, #DFE1E3);
	border-top: none;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	background: var(--EF-Color-Surface, #fff);
	overflow: hidden;
	display: none;
}
.ef-warranty-select--open .ef-warranty-select__dropdown {
	display: block;
}

/* Option */
.ef-warranty-select__option {
	padding: 8px 15px;
	font-size: 13px;
	font-weight: 400;
	white-space: nowrap;
	color: var(--EF-Color-Text);
	cursor: pointer;
	background: var(--EF-Color-Surface, #fff);
	transition: background 0.15s;
}
.ef-warranty-select__option:hover {
	background: var(--EF-Color-Surface-Hover, #F5F5F5);
}
.ef-warranty-select__option--active {
	background: var(--EF-Color-Surface-Hover, #F5F5F5);
}

/* ══════════════════════════════════════════
   Photo & Video sections (review-style)
   ══════════════════════════════════════════ */

.ef-warranty-form .ef-review-photo-section,
.ef-warranty-form .ef-review-video-section {
	padding: 8px;
	margin-bottom: 10px;
	border-radius: 3px;
	background: var(--EF-Color-Surface-2, #f5f7f9);
}

.ef-warranty-form .ef-review-section-header {
	display: flex;
	align-items: center;
	gap: 8px;
}
@media (max-width: 480px) {
	.ef-warranty-form .ef-review-section-header {
		flex-wrap: wrap;
	}
}

.ef-warranty-form .ef-review-section-icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	color: var(--EF-Color-Text-2, #666);
}

.ef-warranty-form .ef-review-section-text {
	flex: 1 1 0%;
}
.ef-warranty-form .ef-review-section-text strong {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--EF-Color-Text);
}
.ef-warranty-form .ef-review-section-text span {
	display: block;
	margin: 1px 0;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--EF-Color-Text-Muted, #848B95);
}
@media (max-width: 767px) {
	.ef-warranty-form .ef-review-section-text span {
		font-size: 11px;
		letter-spacing: -0.2px;
	}
}

.ef-warranty-form .ef-review-upload-btn {
	height: 32px;
	padding: 0 14px;
	flex-shrink: 0;
	align-self: center;
	border: 1px solid var(--EF-Color-Border-Light, #DFE1E3);
	border-radius: var(--EF-Radius-Input, 4px);
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	color: var(--EF-Color-Text);
	cursor: pointer;
	background: var(--EF-Color-Surface, #fff);
	transition: border-color 0.2s;
}
@media (max-width: 480px) {
	.ef-warranty-form .ef-review-upload-btn {
		width: 100%;
	}
}

/* Photo/video previews */
.ef-warranty-form .ef-review-photo-previews,
.ef-warranty-form .ef-review-video-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}
.ef-warranty-form .ef-review-photo-previews:empty,
.ef-warranty-form .ef-review-video-previews:empty {
	margin-top: 0;
}

/* Photo thumb */
.ef-review-photo-thumb {
	position: relative;
	width: 72px;
	height: 72px;
	border-radius: 6px;
	overflow: hidden;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ef-review-photo-thumb.ef-thumb-loading {
	border: 1px solid #eee;
}

/* Video thumb */
.ef-review-video-thumb {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 6px;
	background: var(--EF-Color-Surface, #fff);
	border: 1px solid var(--EF-Color-Border-Light, #DFE1E3);
	font-size: 13px;
}
.ef-review-video-thumb.ef-thumb-loading {
	opacity: 0.6;
}
.ef-video-icon {
	flex-shrink: 0;
	color: var(--EF-Color-Text-Muted, #848B95);
}
.ef-video-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 180px;
	color: var(--EF-Color-Text);
}

/* Delete button (photo & video) */
.ef-review-thumb-delete {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: none;
	background: rgba(0,0,0,0.6);
	color: #fff;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.ef-review-video-thumb .ef-review-thumb-delete {
	position: static;
	flex-shrink: 0;
	margin-left: auto;
}

/* Spinner */
.ef-thumb-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #ddd;
	border-top-color: var(--EF-Color-Primary, #55368A);
	border-radius: 50%;
	animation: ef-spin 0.6s linear infinite;
}
@keyframes ef-spin {
	to { transform: rotate(360deg); }
}

/* Dropzone */
.ef-review-photo-section.ef-dropzone-active {
	outline: 2px dashed var(--EF-Color-Primary, #55368A);
	outline-offset: -2px;
	background: rgba(85,54,138,0.04);
}

/* Hint text */
/* Attach section (clip style) */
.ef-warranty-attach-section {
	margin: 8px 0 4px;
}

.ef-warranty-attach-section .ef-inline-reply-clip {
	display: inline-flex;
	width: 36px;
	height: 36px;
	min-width: 36px;
	padding: 0;
	justify-content: center;
	align-items: center;
	border: 1px solid var(--EF-Color-Border-Light, #ddd);
	border-radius: 4px;
	background: var(--EF-Color-Surface, #fff);
	cursor: pointer;
	color: var(--EF-Color-Text-Muted, #848B95);
}

.ef-warranty-attach-section .ef-inline-reply-clip:hover {
	background: var(--EF-Color-Surface-2, #f5f5f5);
	color: var(--EF-Color-Primary, #55368A);
}

.ef-warranty-attach-section .ef-timeline__reply-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 6px;
}

.ef-warranty-attach-section .ef-timeline__reply-preview {
	width: 48px;
	height: 48px;
	border-radius: 4px;
	overflow: hidden;
	border: 1px solid var(--EF-Color-Border-Light, #e0e0e0);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	color: var(--EF-Color-Text-Muted, #848B95);
}

.ef-warranty-attach-section .ef-timeline__reply-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ef-warranty-attach-section .ef-timeline__reply-preview--video {
	width: auto;
	padding: 4px 8px;
	font-size: 11px;
}

.ef-warranty-form__hint {
	margin: 4px 0 16px;
	font-size: 12px;
	color: var(--EF-Color-Text-Muted, #848B95);
}

/* ══════════════════════════════════════════
   Order Selection
   ══════════════════════════════════════════ */

.ef-warranty-orders__list {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 4px;
}

.ef-warranty-order-card {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 4px 12px;
	padding: 4px 10px;
	border: 1px solid var(--EF-Color-Border-Light, #DFE1E3);
	border-radius: var(--everfox-radius, 4px);
	background: var(--EF-Color-Surface, #fff);
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s;
	text-align: left;
	font-family: inherit;
	font-size: 13px;
	color: var(--EF-Color-Text);
}
.ef-warranty-order-card:hover {
	border-color: var(--EF-Color-Text-Muted, #848B95);
}
.ef-warranty-order-card--selected {
	border-color: var(--EF-Color-Primary, #55368A);
	box-shadow: 0 0 0 1px var(--EF-Color-Primary, #55368A);
}

.ef-warranty-order-card__number {
	font-weight: 500;
	grid-row: 1;
}
.ef-warranty-order-card__date {
	color: var(--EF-Color-Text-2, #5D5667);
	font-size: 13px;
	grid-row: 1;
}
.ef-warranty-order-card__total {
	font-weight: 500;
	grid-row: 1;
	text-align: right;
	color: var(--EF-Color-Olive, #5F7A00);
}
.ef-warranty-order-card__items {
	display: none;
}


/* ══════════════════════════════════════════
   Submit Button
   ══════════════════════════════════════════ */

.ef-warranty-form__submit-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
	padding: 10px 20px 15px;
	border-top: 1px solid var(--EF-Color-Border-Light, #DFE1E3);
	background: var(--EF-Color-Surface, #fff);
}

.ef-warranty-form__submit-row .ef-inline-reply-previews {
	flex-basis: 100%;
	order: 10;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.ef-warranty-form__submit-row .ef-timeline__reply-hint {
	flex-basis: 100%;
	order: 11;
	margin-top: 2px;
	font-size: 11px;
	color: var(--EF-Color-Text-Muted, #848B95);
}

.ef-warranty-form__submit-row .ef-inline-reply-clip {
	display: inline-flex;
	width: 40px;
	height: 40px;
	min-width: 40px;
	padding: 0;
	justify-content: center;
	align-items: center;
	border: 1px solid var(--EF-Color-Border-Light, #ddd);
	border-radius: var(--everfox-radius, 4px);
	background: var(--EF-Color-Surface, #fff);
	cursor: pointer;
	color: var(--EF-Color-Text-Muted, #848B95);
}

.ef-warranty-form__submit-row .ef-inline-reply-clip:hover {
	color: var(--EF-Color-Primary, #55368A);
}

/* .ef-warranty-form__submit — overrides only (base from .ef-button--primary) */
.ef-warranty-form__submit {
	min-width: 0;
}

/* ══════════════════════════════════════════
   Success State
   ══════════════════════════════════════════ */

.ef-warranty-success {
	text-align: center;
	padding: 40px 20px;
}
.ef-warranty-success__icon {
	color: #43a047;
	margin-bottom: 16px;
}
.ef-warranty-success h3 {
	font-size: 20px;
	margin: 0 0 8px;
	color: var(--EF-Color-Text);
}
.ef-warranty-success p {
	font-size: 15px;
	color: var(--EF-Color-Text-Muted, #848B95);
	margin: 0 0 20px;
}
.ef-warranty-success__link {
	display: inline-block;
	padding: 10px 24px;
	font-size: 14px;
	color: var(--EF-Color-Btn-Primary-Text, #fff);
	background: var(--EF-Color-Primary, #55368A);
	border-radius: var(--everfox-radius, 4px);
	text-decoration: none;
	transition: opacity 0.2s;
}
.ef-warranty-success__link:hover {
	opacity: 0.9;
}

/* ══════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════ */

/* Mobile: compact photo/video sections, shorter textarea, hide hint */
@media (max-width: 767px) {
	.ef-warranty-form .ef-review-section-header {
		gap: 6px;
	}
	.ef-warranty-form .ef-review-section-icon {
		width: 20px;
		height: 20px;
	}
	.ef-warranty-form .ef-review-section-text strong {
		font-size: 13px;
	}
	.ef-review-photo-thumb {
		width: 56px;
		height: 56px;
	}
	#ef-warranty-message-addon .everfox-textarea-wrapper textarea {
		min-height: 60px;
	}
	#ef-warranty-message-addon .everfox-textarea-counter {
		top: 70px;
	}
	.ef-warranty-form__hint {
		display: none;
	}
}

/* Hide file format descriptions on small screens */
@media (max-width: 520px) {
	.ef-warranty-form .ef-review-section-text span {
		display: none;
	}
}

@media (max-width: 480px) {
	.ef-review-photo-thumb {
		width: 48px;
		height: 48px;
	}
	.ef-video-name {
		max-width: 120px;
	}
}
