/**
 * Author: Rafael Silva
 * Version: 1.1
 *
 * Caixa e modal da calculadora de frete na PDP.
 */

.rs-swt-pdp-shipping {
	clear: both;
	margin-top: 18px;
	max-width: 420px;
}

.rs-swt-pdp-card {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 14px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	color: #555;
	padding: 14px 18px;
}

.rs-swt-pdp-card__header {
	align-items: center;
	display: grid;
	gap: 12px;
	grid-template-columns: auto 1fr auto;
	min-height: 32px;
}

.rs-swt-pdp-card__header strong {
	color: #555;
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
}

.rs-swt-pdp-card__header span:not(.rs-swt-pdp-card__pin) {
	color: #666;
	display: block;
	font-size: 13px;
	line-height: 1.35;
	margin-top: 3px;
}

.rs-swt-pdp-card__pin,
.rs-swt-pdp-rate__truck {
	color: #707070;
	font-size: 20px;
	line-height: 1;
	text-align: center;
	width: 20px;
}

.rs-swt-pdp-card__divider {
	background: #e5e5e5;
	height: 1px;
	margin: 12px 0;
}

.rs-swt-pdp-link {
	background: transparent;
	border: 0;
	color: #666;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	padding: 0;
	text-decoration: underline;
	white-space: nowrap;
}

.rs-swt-pdp-card--empty .rs-swt-pdp-link {
	border: 1px solid #e5262c;
	border-radius: 8px;
	color: #e5262c;
	padding: 7px 10px;
	text-decoration: none;
}

.rs-swt-pdp-rate {
	align-items: start;
	display: grid;
	column-gap: 12px;
	grid-template-columns: auto minmax(0, 1fr) auto;
	padding: 5px 0;
}

.rs-swt-pdp-rate + .rs-swt-pdp-rate {
	margin-top: 8px;
}

.rs-swt-pdp-rate__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.rs-swt-pdp-rate__name {
	color: #666;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
}

.rs-swt-pdp-rate__deadline {
	color: #777;
	font-size: 13px;
	line-height: 1.35;
}

.rs-swt-pdp-rate__price {
	color: #555;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	padding-top: 1px;
	text-align: right;
	white-space: nowrap;
}

.rs-swt-pdp-rate__price--free {
	color: #2eaa45;
}

.rs-swt-pdp-card__pin svg,
.rs-swt-pdp-rate__truck svg {
	display: block;
	fill: currentColor;
	height: 20px;
	width: 20px;
}

.rs-swt-pdp-rate__truck {
	padding-top: 1px;
}

.rs-swt-pdp-loading,
.rs-swt-pdp-empty-rates,
.rs-swt-pdp-card--error p {
	color: #666;
	font-size: 14px;
	margin: 0;
}

.rs-swt-pdp-modal-open {
	overflow: hidden;
}

.rs-swt-pdp-modal[hidden] {
	display: none;
}

.rs-swt-pdp-modal {
	bottom: 0;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 999999;
}

.rs-swt-pdp-modal__overlay {
	background: rgba(0, 0, 0, 0.38);
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.rs-swt-pdp-modal__dialog {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
	left: 50%;
	max-width: calc(100vw - 24px);
	padding: 28px 16px 36px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 480px;
}

.rs-swt-pdp-modal__dialog h3 {
	color: #333;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 22px;
	text-transform: lowercase;
}

.rs-swt-pdp-modal__close {
	background: transparent;
	border: 0;
	color: #555;
	cursor: pointer;
	font-size: 32px;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 14px;
	top: 10px;
}

.rs-swt-pdp-modal__form label {
	color: #666;
	display: block;
	font-size: 14px;
	margin-bottom: 6px;
}

.rs-swt-pdp-modal__row {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr auto;
}

.rs-swt-pdp-modal__row input {
	border: 1px solid #bdbdbd;
	border-radius: 8px;
	font-size: 18px;
	height: 46px;
	padding: 0 16px;
	width: 100%;
}

.rs-swt-pdp-modal__row button {
	background: #fff;
	border: 2px solid #e5262c;
	border-radius: 8px;
	color: #e5262c;
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
	min-width: 58px;
	padding: 0 16px;
	text-transform: lowercase;
}

.rs-swt-pdp-modal__unknown {
	color: #666;
	display: inline-block;
	font-size: 13px;
	margin-top: 8px;
	text-decoration: underline;
}

@media (max-width: 480px) {
	.rs-swt-pdp-shipping {
		max-width: none;
	}

	.rs-swt-pdp-card {
		padding: 13px 14px;
	}

	.rs-swt-pdp-card__header {
		grid-template-columns: auto 1fr;
	}

	.rs-swt-pdp-card__header .rs-swt-pdp-link {
		grid-column: 2;
		justify-self: start;
	}

	.rs-swt-pdp-modal__dialog {
		border-radius: 14px 14px 0 0;
		bottom: 0;
		left: 0;
		max-width: none;
		top: auto;
		transform: none;
		width: 100%;
	}
}
