/* Shipping Calculator Styles - Matching elettronew design */
.sc-open {
	display: inline-block;
	cursor: pointer;
	color: #000;
	font-size: 12px;
	transition: color 0.2s ease;
}

.sc-open:hover {
	color: #0056b3;
}

.sc-open i {
	vertical-align: middle;
}

.sc-modal {
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.2s ease;
	overflow-y: auto;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.sc-modal-content {
	background: #ffffff;
	margin: 20px auto;
	padding: 0;
	border-radius: 8px;
	max-width: 520px;
	width: calc(100% - 40px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	animation: slideUp 0.3s ease;
	overflow: hidden;
	position: relative;
}

@keyframes slideUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.sc-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid #e5e7eb;
	background: #f8f9fa;
}

.sc-modal-header h4 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #333333;
	letter-spacing: -0.3px;
}

.sc-close {
	background: transparent;
	border: 0;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666666;
	width: 32px;
	height: 32px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	padding: 0;
	font-weight: 300;
}

.sc-close:hover {
	background: #e9ecef;
	color: #333333;
}

.sc-modal-body {
	padding: 24px;
}

.sc-modal-footer {
	padding: 16px 24px;
	border-top: 1px solid #e5e7eb;
	background: #f8f9fa;
}

.sc-footer-text {
	margin: 0;
	font-size: 11px;
	line-height: 1.5;
	color: #6c757d;
	text-align: center;
}

.sc-form-row {
	margin-bottom: 18px;
}

.sc-form-row-inline {
	display: flex;
	gap: 16px;
}

.sc-form-col {
	flex: 1;
}

.sc-form-col:first-child {
	flex: 0 0 70%;
}

.sc-form-col:last-child {
	flex: 0 0 27%;
}

.sc-form-col label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 14px;
	color: #333333;
}

.sc-form-col input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	transition: all 0.2s ease;
	background: #fff;
	color: #333333;
	box-sizing: border-box;
}

.sc-form-col input:focus {
	outline: none;
	border-color: #0056b3;
	box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* Quantity input with spinner buttons */
.sc-quantity-wrapper {
	position: relative;
	display: flex;
	align-items: stretch;
}

.sc-quantity-wrapper input[type="number"] {
	width: 100%;
	padding: 10px 14px;
	padding-right: 42px;
	border: 1px solid #ced4da;
	border-right: none;
	border-radius: 4px 0 0 4px;
	font-size: 14px;
	font-family: inherit;
	transition: all 0.2s ease;
	background: #fff;
	color: #333333;
	box-sizing: border-box;
	-moz-appearance: textfield;
	text-align: center;
	height: 42px;
}

.sc-quantity-wrapper input[type="number"]::-webkit-outer-spin-button,
.sc-quantity-wrapper input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.sc-quantity-wrapper input[type="number"]:focus {
	outline: none;
	border-color: #0056b3;
	box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.sc-quantity-buttons {
	display: flex;
	flex-direction: column;
	border: 1px solid #ced4da;
	border-left: 1px solid #d1d5db;
	border-radius: 0 4px 4px 0;
	overflow: hidden;
	background: #fff;
	width: 32px;
}

.sc-quantity-btn {
	background: transparent;
	border: 0;
	border-top: 1px solid #d1d5db;
	cursor: pointer;
	padding: 0;
	width: 100%;
	height: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	color: #000000;
	transition: background-color 0.2s ease;
	flex: 1;
	line-height: 1;
}

.sc-quantity-btn:first-child {
	border-top: none;
	border-bottom: 1px solid #d1d5db;
}

.sc-quantity-btn:hover {
	background: #f8f9fa;
}

.sc-quantity-btn:active {
	background: #e9ecef;
}

.sc-quantity-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

@media (max-width: 480px) {
	.sc-form-row-inline {
		flex-direction: column;
		gap: 18px;
	}
}

.sc-form-row label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 14px;
	color: #333333;
}

.sc-form-row input,
.sc-form-row select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	transition: all 0.2s ease;
	background: #fff;
	color: #333333;
	box-sizing: border-box;
}

.sc-field-error {
	margin-top: 6px;
	font-size: 12px;
	color: #DC3545;
	display: block;
}

.sc-form-row input:focus,
.sc-form-row select:focus {
	outline: none;
	border-color: #007BFF;
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.sc-form-row input:hover,
.sc-form-row select:hover {
	border-color: #adb5bd;
}

.sc-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 20px;
}

.sc-actions button {
	background: #FFD700;
	color: #333333;
	border: 0;
	border-radius: 4px;
	padding: 12px 24px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	width: 30%;
	max-width: 100%;
	box-sizing: border-box;
}

.sc-actions button:hover {
	background: #e6c200;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transform: none;
	color: #333333;
}

.sc-actions button:active {
	background: #d4b800;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	transform: none;
	color: #333333;
}

.sc-actions button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
	background: #ced4da;
}

#sc-loading {
	text-align: center;
	padding: 20px;
	color: #6c757d;
	font-size: 14px;
	font-weight: 500;
}

.sc-list {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
}

.sc-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 16px;
	border-bottom: 1px solid #e9ecef;
	transition: background-color 0.2s ease;
}

.sc-item:hover {
	background: #f8f9fa;
}

.sc-item:last-child {
	border-bottom: none;
}

.sc-logo {
	max-width: 60px;
	max-height: 40px;
	object-fit: contain;
	margin-right: 12px;
	vertical-align: middle;
}

.sc-name {
	font-weight: 600;
	font-size: 15px;
	color: #333333;
	vertical-align: middle;
}

.sc-price {
	font-weight: 700;
	font-size: 18px;
	color: #a72a2a;
}

.sc-error {
	color: #DC3545;
	margin-top: 16px;
	padding: 12px 16px;
	background: #f8d7da;
	border-radius: 4px;
	border-left: 4px solid #DC3545;
	font-size: 14px;
	font-weight: 500;
}

.sc-empty {
	color: #6c757d;
	margin-top: 16px;
	padding: 16px;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	background: #f8f9fa;
	border-radius: 4px;
}

.sc-free-shipping-message {
	color: #28a745;
	margin-top: 16px;
	padding: 24px;
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	background: #d4edda;
	border: 2px solid #28a745;
	border-radius: 8px;
}

.sc-tax-label {
	text-align: center;
	margin-top: 16px;
	padding: 8px 0;
	font-size: 13px;
	color: #6c757d;
	font-style: italic;
}

/* Responsive */
@media (max-width: 640px) {
	.sc-modal-content {
		margin: 10px;
		border-radius: 6px;
	}

	.sc-modal-header {
		padding: 16px 20px;
	}

	.sc-modal-header h4 {
		font-size: 18px;
	}

	.sc-modal-body {
		padding: 20px;
	}

	.sc-item {
		flex-direction: row;
		align-items: center;
		flex-wrap: nowrap;
		padding: 10px 12px;
		gap: 8px;
	}

	.sc-logo {
		max-width: 40px;
		max-height: 30px;
		margin-right: 8px;
		flex-shrink: 0;
	}

	.sc-name {
		font-size: 13px;
		flex: 1;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.sc-price {
		font-size: 15px;
		flex-shrink: 0;
		margin-left: auto;
	}
}

/* Extra small devices */
@media (max-width: 480px) {
	.sc-item {
		padding: 8px 10px;
		gap: 6px;
	}

	.sc-logo {
		max-width: 35px;
		max-height: 25px;
		margin-right: 6px;
	}

	.sc-name {
		font-size: 12px;
	}

	.sc-price {
		font-size: 14px;
	}
}