@import url('../public/styles/flex.css');
@import url('../public/styles/margins.css');

.bring-logo {
	height: 39px;
}

.pbc-options_heading {
	margin: 9px 0;
	padding-left: 12px;
}

#landing-page-container{
	max-width: 950px;
	border-radius: 10px;
	display: block;
	margin: 30px auto;

	a {
		color: hsl(212, 100%, 43%);
	}

	.guide-container {
		position: relative;
		min-height: 280px;
	}

	.card-section {
		border-radius: 10px;
		overflow: hidden;
	}

	.circle {
		min-width: 50px;
		width: 50px;
		height: 50px;
		border-radius: 50%;
		color: black;
		font-size: 24px;
		font-weight: 400;
		border: 2px solid green;
	}

	.circle-color1 {
		background-color: #f1f7e8;
	}

	.circle-color2 {
		background-color: #d9e9a9;
	}

	.circle-color3 {
		background-color: #7bc144;
	}

	.large-emoji {
		font-size: 40px;
		vertical-align: middle;
	}

	.journey {
		position: absolute;
		bottom: -25px;
		right: 20px;
	}

	.journey-image {
		width: 450px;
	}

	@media only screen and (max-width: 1050px) {
		.journey {
			display:none
		}
	}

	.how-to-steps{
		padding: 0 10px;
	}

	#video-section {
		max-width: 950px;
		border-radius: 10px;
		overflow: hidden;

		.video-thumbnail {
			background-image: url('../../assets/img/video-thumbnail.png');
			background-size: cover;
			width: 300px;
			height: 170px;
			object-fit: cover;
			cursor: pointer;

			.button-container {
				width: 100%;
				height: 100%;
			}

			button {
				border: none;
				background: transparent;
				width: 100%;
				height: 100%;
				cursor: pointer;

				.triangle {
					border-style: solid;
					border-width: 25px 0 25px 40px;
					border-color: transparent transparent transparent #FFFFFF;
					transform: rotate(0deg);
					transition: border-width 0.2s ease;
				}
			}

			button:hover .triangle {
				border-width: 35px 0 35px 55px;
			}
		}

		.modal {
			position: fixed;
			inset: 0;
			background-color: rgba(0, 0, 0, 0.5);
		}

		.modal-content {
			position: relative;
			background-color: #fff;
			border-radius: 10px;
			padding: 26px;
		}

		.close-button {
			position: absolute;
			top: 0;
			right: 0;
			background: transparent;
			border: none;
			cursor: pointer;
		}

		.close-button:hover {
			color: #aaa;
			background-color: rgba(0, 0, 0, 0.2);
			border-radius: 5px;
		}
	}
}

#landing-page-container, #faq-container {

	.icon-bg {
		border: none;
		background: transparent;
		cursor: pointer;
	}

	.icon {
		border: 2px gray solid;
		border-radius: 100%;
		height: 20px;
		width: 20px;
		display: inline-block;
		text-align: center;
		line-height: 15px;
		padding-left: 1px;
		padding-top: 1px;
	}

	.text-strip{
		background-color: #f1f7e8;
		padding: 10px;
		border-radius:2px;
		text-align: left;
		height: 34px;
		border: none;
	}
}

#posten-bring-checkout-settings {
	display: block;
	margin: 50px auto;
	width: 1000px;

	label {
		display: block;
		padding-bottom: 5px;
	}

	input[type="text"] {
		width: 100%;
		border: 1px #ccc solid;
		border-radius: 10px;
		padding: 2px 8px;
	}

	h2 {
		font-size: 18px;
	}

	hr {
		margin-bottom: 30px;
	}

	.block-list {
		list-style: disc;
	}

	.input-error {
		background: #fee9e8 !important;
	}

	.input-error-description {
		color: #8e1f0b;
		display: inline-block;
		padding-top: 4px;
		padding-left: 12px;
	}

	.setting-container {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 1rem;
		border-bottom: 1px solid #eee;
	}

	.setting-card {
		p {
			max-width: 550px;
		}
	}

	.setting-toggle {
		margin-left: 10px;
		padding: 5px 5px;
		border-radius: .25rem;
		font-size: 12px;
		color: #fff;
		background-color: #707070;
	}

	.setting-toggle.active {
		background-color: green;
	}

	.dark-sample {
		max-width: 400px;
	}
}

.components-guide__footer {
	width: auto!important;
}

#posten-bring-checkout-section {

	.update-available {
		background-color: #bbf791;
		padding: 5px 8px;
		border-radius: 5px;
		font-weight: bold;

		a {
			color: #3c434a;
		}

		a:hover {
			color: black;
		}
	}

	.container {
		max-width: 600px;
		padding: 23px 24px 12px;
		background-color: rgba(247, 247, 247, 1);
	}

	.logo {
		width: 91px;
	}

	.bring-select {
		max-width: 300px;
	}

	select {
		width: 100% !important;
	}

	.w100p {
		width: 100%;
	}

	.terms {
		color: #777;
	}

	.components-base-control__field {
		margin-bottom: 0 !important;
	}

	#bring-table {

		text-indent: 0;
		border-collapse: collapse;
		color: #757575;
		position: relative;
		width: 100%;

		thead {

			position: sticky;
			inset-block-start: 0;
			z-index: 1;

			tr {
				border: 0;
				border-bottom: 1px solid #f0f0f0;
			}

			th {
				background-color: #ffffff;
				padding-top: 8px;
				padding-bottom: 8px;
				font-size: 11px;
				text-transform: uppercase;
				font-weight: 500;
				text-align: left;
				color: #1e1e1e;

				.header-content-wrapper {
					min-width: 100px;
					padding: 4px 0;
					display: flex;
					font-size: 11px;
					text-transform: uppercase;
					font-weight: 500;
				}
			}
		}

		tbody td {
			vertical-align: top;
		}

		tfoot td {
			white-space: normal;
		}

		td, th {
			padding: 13px;
			white-space: nowrap;
			border: 0;
		}

		tr {
			background-color: #ffffff;
			border-bottom: 1px solid #f0f0f0;
		}

		tbody tr:last-child {
			border-bottom: 0;
		}

		tbody tr td:last-child {
			text-align: end;
			vertical-align: bottom;
		}

		tr:first-child td, tr:last-child td {
			border-top: 0;
		}

		thead tr, tbody tr {
			display: flex;
			width: 100%;

			td:first-child, th:first-child, th:first-child {
				flex: 1;
				padding-left: 13px;
				box-sizing: border-box;
			}

			td:last-child, th:last-child, th:last-child {
				padding-right: 13px;
				box-sizing: border-box;
				width: 140px;
			}

			button {
				height: auto;
				padding: 0;
			}
		}

		tfoot tr {
			color: rgba(97, 97, 97, 1);
			border-top: 1px solid #f0f0f0;
			background-color: #ffffff;
			td {
				font-weight: 500;
			}
		}

		.wide {
			max-width: 400px;
		}

		.narrow {
			max-width: 100px;
		}

		.cell-content-wrapper {
			min-height: 32px;
			display: flex;
			align-items: center;
		}

		.components-input-control__suffix {
			padding: 4px;
		}

		.components-input-control__input {
			text-align: right;
			padding-right: 0;
		}
	}
}

#faq-container {
	max-width: 950px;
	border-radius: 10px;
	margin: 30px auto;
}

#faq-container{

	ul {
		list-style-type: disc;
		padding-inline-start: revert;
	}

	#search-input {
		padding-left: 30px;
		border-radius: 8px;
	}

	.search-icon {
		position: absolute;
		top: 0;
		padding: 7px;
	}

	.card-section {
		border-radius: 10px;
	}

	.search-icon svg {
		fill: #999;
	}

	.icon {
		border: 2px gray solid;
		border-radius: 100%;
		height: 20px;
		width: 20px;
		display: inline-block;
		text-align: center;
		line-height: 15px;
		padding-left: 1px;
		padding-top: 1px;
	}

	.clear-icon {
		position: absolute;
		top: 0;
		right: 6px;
		background: transparent;
		border: none;
		cursor: pointer;
	}

	.search-container {
		box-sizing: border-box;
	}

	.search-input-wrapper {
		position: relative;
		width: 100%;
	}

	.search-input {
		flex: 1;
	}

	.search-input::placeholder {
		color: #999;
		opacity: 1;
	}
}

#deactivate-container {
	margin: 10px;
	padding-left: 10px;
	padding-bottom: 10px;

	h1 {
		margin: 30px 0;
	}

	.bring-logo {
		height: 35px;
	}

	.feedback-form {
		margin-right: 10px;
	}
}

.customs-container {
	.item {
		background-color: #ffffff;

		.item-image {
			height: 100px;
			width: 100px;

			box-shadow:
				0 1px 2px rgba(0, 0, 0, 0.08),
				2px 2px 4px rgba(0, 0, 0, 0.06);
		}

		.stacked-images {
			position: relative;
			flex: 0 0 100px;
			width: 100px;
			height: 100px;
		}

		.stacked-images-inner {
			position: absolute;
			width: 85px;  /* 55 + 30 */
			height: 79px; /* 55 + 24 */
			left: 50%;
			top: 50%;
			transform: translate(-50%, -50%);
		}

		.stacked-image {
			position: absolute;
			width: 55px;
			height: 55px;
			object-fit: cover;
			border: 1px solid #ddd;
			border-radius: 4px;
			background: white;

			box-shadow:
				0 1px 2px rgba(0, 0, 0, 0.08),
				2px 2px 4px rgba(0, 0, 0, 0.06);
		}

		.stacked-image:nth-child(1) {
			left: 0;
			top: 0;
			z-index: 4;
		}

		.stacked-image:nth-child(2) {
			left: 10px;
			top: 8px;
			z-index: 3;
		}

		.stacked-image:nth-child(3) {
			left: 20px;
			top: 16px;
			z-index: 2;
		}

		.stacked-image:nth-child(4) {
			left: 30px;
			top: 24px;
			z-index: 1;
		}
	}

	.item-details {
		width: 100%;
	}

	.hs-codes {
		.components-combobox-control__suggestions-container {
			position: relative;
		}

		.components-form-token-field__suggestions-list {

			position: absolute;
			z-index: 100000;
			top: 100%;
			left: -1px;
			right: -1px;
			overflow-y: auto;
			background: #fff;
			margin: 0;
			border-radius: 2px;
			border: 1px solid #949494;
		}

		.components-combobox-control__suggestions-container:focus-within {
			.components-form-token-field__suggestions-list {
				border-top: none;
				border-color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
				box-shadow: 0 0 0 .5px var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
				outline: 2px solid #0000;
				outline-offset: 2px
			}
		}

		.hs-code {
			font-weight: bold;
		}
	}
}

.mass-booking {
	margin: 10px;

	a {
		color: #333
	}

	.header {
		line-height: 1.1;

		h1 {
			margin: 30px 0;
		}

		.bring-logo {
			height: 35px
		}
	}

	.order-list {
		border-top: .0625rem solid #e3e3e3;

		ul {
			margin: 0;
			padding: 0;
			position: relative;

			li:last-of-type {
				border-bottom: none;
			}

			li {
				margin-bottom: 0;
			}
		}

		.order-list-item {
			z-index: 2;
			list-style: none;
			background-color: #fff;
			border-bottom: .0625rem solid #e3e3e3;
			position: relative;
			opacity: 1;

			.order-id {
				min-width: 80px;

			}

			.order-details {
				min-width: 300px;
			}

			.weight-input {
				background-color: #ffffff;
				width: 95px;

				input {
					text-align: right;
					padding-right: 0;
				}
			}

			.weight-input [data-slot-type="suffix"] {
				display: flex;
				align-items: center;
				padding-inline: 8px;
			}
		}

		.order-list-item:hover {
			background-color: #f1f1f1;
		}

		.order-list-item__wrapper {
			max-width: 100%;
			overflow: hidden;
		}

		.order-list-item__content {
			cursor: auto;
			min-height: 2.75rem;
			outline: none;
		}
	}



	.main-content {

		.mainbar {
			width: 100%;
			max-width: 457px;

			::-webkit-scrollbar {
				-webkit-appearance: none;
				width: 7px;
			}

			::-webkit-scrollbar-thumb {
				border-radius: 4px;
				background-color: rgba(0, 0, 0, .5);
				box-shadow: 0 0 1px rgba(255, 255, 255, .5);
			}

			.scrollable-container {
				width: 100%;
				max-height: 470px;
				overflow-y: scroll;
				overflow-x: hidden;
			}

			.order-list {
				border-collapse: separate;
				border-spacing: 0;
				max-width: 450px;
				width: 100%;
				margin-bottom: 10px;

				th,
				td {
					height: 35px;
					padding: 6px;
				}

				th {
					background: #fff;
					color: #333;
					text-align: left;
				}

				tr.even td {
					background: #f6f7f7;
				}

				.order-list-shipping-options {
					max-width: 200px;
				}

				.bring-select {
					display: inline-block;
				}

				.order-list-weight {
					width: 50px;
				}

				.action-cell {
					position: relative;
				}

				.components-base-control__field {
					margin-bottom: 0 !important;
				}

				input {
					width: 60px;
					border-radius: 0;
					padding: 2px 2px 2px 8px;
				}

				img {
					width: 30px;
				}

				@keyframes fadeInScale {
					0% {
						opacity: 0;
						transform: scale(0.9);
					}
					100% {
						opacity: 1;
						transform: scale(1);
					}
				}

				.result-container {
					font-weight: bold;

					.success {
						color: #00643A;
					}
				}

				.truck {
					position: absolute;
					left: calc(-100vw - 30px);
					transition: left 1s ease;
				}

				.truck-container{
					padding: 2px 0 2px 0;
				}

				.truck__visible {
					display: block;
				}

				.truck__hidden {
					display: none;
				}

				.truck__driving {
					left: 5px;
				}

				.truck.truck__drive .result-container span {
					animation: showResult .1s;
				}

				.bring-truck-icon {
					animation: fadeInScale 0.5s ease-in-out;
				}

				.warning-icon {
					font-size: 18px;
				}

			}

			.error-list{
				background: #f6f7f7;
			}

			.loading-spinner {
				margin-left: 200px;
				margin-top: 100px;
			}
		}

		.collect-packages-img {
			width: 350px;
		}

		@media only screen and (max-width: 1400px) {
			.collect-packages-img {
				display: none;
			}
		}

		.main-content__footer {
			width: 100%;

			.booking-form-wrapper {
				margin-bottom: 20px;
			}

			.bring-select {
				display: inline-block;
				max-width: 300px;
			}

			.booking-form {
				text-align: right;

				&.show {
					display: block;
				}

				&.hide {
					display: none;
				}
			}
		}
	}
}

.collapse-transition {
	transition: height .2s ease;
}

#feedback-form-container {
	min-width: 400px;
}

.feedback-form__button-container {
	text-align: right;
	display: inline-block;
}

.feedback-form__email {
	width: 100%;
}

.feedback-form__message {
	width: 100%;
	margin-top: 5px;
}

.feedback-form__link {
	margin-top: 10px;
	margin-left: auto;
}

.feedback-form__status {
	margin-top: 4px;
}

.feedback-form__bottom-text {
	display: flex;
}

.how-to-guide-container {
	width: 100%;

	.steps-row {
		width: 100%;
		padding: 10px 0;
	}

	.step-cell {
		flex: 0 0 20%;
	}

	.description-cell {
		flex: 1;
	}

	.separator {
		border: 0;
		border-top: 1px solid #ccc;
		width: 100%;
	}
}

.how-to-image {
	width: 100%;
	height: auto !important;
	overflow: visible;
}


