/* Header */

.app-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 40px;
	margin-bottom: 40px;
}

.app-header__store-name {
	display: flex;
	align-items: center;
	gap: 10px;
}

.app-header__no-store p {
	background-color: #fdf8ee;
	color: #745d2e;
	padding: 5px 8px 5px 4px;
	border-radius: 4px;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0;
	font-size: 12px;
}

.app-header__no-store svg {
	position: relative;
	top: 2px;
	margin-right: 0;
	width: 16px;
	height: 16px;
}

.app-header__store-info .store-name {
	font-weight: 500;
	margin: 0;
	color: #1a1a1a;
}

.app-header__badge {
	background-color: #eff8f0;
	color: #fff;
	padding: 1px 6px 2px 2px;
	border-radius: 4px;
	margin: 0;
	color: #345b37;
	font-size: 12px;
	display: flex;
	align-items: center;
	height: 24px;
}

.app-header__badge__icon svg {
	position: relative;
	top: 2px;
	margin-right: 2px;
	width: 20px;
	height: 20px;
}

.app-header__store-info .store-domain {
	margin: 4px 0 0;
	color: #666;
	font-size: 13px;
}

.app-header__store-info .store-id {
	margin: 4px 0 0;
	color: #666;
	font-size: 13px;
}

.app-header__store-name h1,
.app-header__store-name--connected h1 {
	padding: 0;
	font-size: 32px;
}

/* Remove padding from empty h1 elements in admin pages */
.wrap > div > h1:empty {
	padding-top: 0px;
	padding-bottom: 0px;
}

.app-header__store-name--connected {
	display: block;
}

.app-header__menu-actions ul {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.app-header__menu-actions li {
	list-style: none;
	margin-bottom: 0px;
	margin-right: 5px;
}

.app-header__menu-actions li:last-child {
	margin-right: 0px;
}

.app-header__menu-actions li a {
	color: #3858e9;
	border: 1px solid #3858e9;
	padding: 12.5px 14px;
	border-radius: 3px;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 5px;
	line-height: 1;
	transition: all 0.3s ease;
}

.app-header__menu-actions li a.w-icon {
	padding: 6px 14px;
}

.app-header__menu-actions li a.lg {
	padding: 14px;
}

.app-header__menu-actions a:hover {
	opacity: 0.75;
}

.app-header__menu-actions__icon svg {
	width: 24px;
	height: 24px;
}

/* Form Styles */

.app-settings-form-container__credentials-error p {
	background-color: #f4a2a2;
	color: black;
	padding: 12px;
	margin: 0 0 20px 0;
	border-left: 4px solid #cc1818;
}

.app-settings-form-container__success-message p {
	background-color: #eff9f1;
	color: #1e1e1e;
	padding: 12px;
	margin: 0 0 20px 0;
	border-left: 4px solid #28a745;
}

.app-settings-form-container__content {
	display: flex;
	align-items: center;
	gap: 40px;
	padding: 16px;
	min-height: 204px;
	border: 1px solid #f0f0f0;
	border-radius: 4px;
}

.app-settings-form-container__content.blue-bg {
	background-color: rgba(56, 88, 233, 0.04);
}

.app-settings-form-container__content h2 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 500;
}

.app-settings-form-container__content
	p.app-settings-form-container__content__description {
	margin: 0 0 20px;
}
p.app-settings-form-container__content__description.lg {
	font-size: 15px;
}

.app-settings-form-container form {
	flex: 2;
}

.app-settings-form-container form p.submit {
	padding: 0px;
	margin: 0px;
}

.app-settings-form-container .art-container {
	flex: 1;
}

.app-settings-form-container .art-container img {
	max-width: 340px;
	height: 204px;
	display: block;
	margin: 0 auto;
}

.app-setup__container {
	margin-top: 40px;
}

.app-setup__container--disabled {
	opacity: 0.6;
	pointer-events: none;
}

.app-setup__content {
	display: flex;
	gap: 20px;
}

.app-setup__content__right {
	flex: 1;
	display: flex;
	justify-content: end;
}

.app-setup__content__left {
	flex: 6;
}
.app-setup__linklist__title {
	font-size: 16px;
	font-weight: 500;
	margin-bottom: 10px;
	gap: 8px;
}

.app-setup__linklist ul {
	list-style: none;
	padding: 0;
	margin: 0;
	list-style: none;
}

.app-setup__linklist ul li {
	margin-bottom: 10px;
}

.app-setup__linklist ul li a {
	color: #000;
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.app-setup__linklist ul li a:hover {
	opacity: 0.5;
}

.app-setup__linklist .app-setup__linklist__icon {
	position: relative;
	top: 2px;
}

/* Store Info Panel */
.store-info-panel {
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 4px;
	margin-bottom: 20px;
}

.store-info-panel__content {
	padding: 20px;
}

.store-info-panel__header {
	margin-bottom: 15px;
}

.store-info-panel__header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
}

.store-info-panel__body {
	display: grid;
	gap: 15px;
}

.store-info-panel__field label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	color: #666;
	margin-bottom: 4px;
}

.store-info-panel__field p {
	margin: 0;
	font-size: 14px;
	color: #1a1a1a;
}

.shopify-tabs {
	margin: 20px 0;
	border-bottom: 1px solid #ddd;
}

.shopify-tab-button {
	background: none;
	border: none;
	border-bottom: none;
	padding: 10px 20px;
	cursor: pointer;
}

.shopify-tab-button.active,
.shopify-tab-button:hover {
	background: #fff;
	border-bottom: 2px solid #3858e9;
	margin-bottom: -1px;
}

.shopify-tab-content {
	display: none;
	padding: 0px 0 20px;
}

.shopify-tab-content.active {
	display: block;
}

.advanced-settings h3 {
	margin-top: 0px;
}

.submit-container {
	margin-top: 20px;
}

.submit-container.pt-md {
	margin-top: 20px;
}

#wpcontent {
	background: #fff;
}

#wpfooter {
	max-width: 980px;
	margin: 20px auto 0;
	left: -25px;
}

#wpbody-content {
	min-height: 100vh;
	background: #fff;
}

#wpfooter {
	display: none;
}

.app-container {
	max-width: 90vw;
	margin: 0 auto;
}

.app-header.app-container {
	padding-top: 40px;
	padding-bottom: 40px;
}

@media (min-width: 1400px) {
	.app-container {
		max-width: 1200px;
	}
}

/* Buttons */

.wp-connect-button {
	color: #3858e9;
	border: 1px solid #3858e9;
	padding: 12.5px 14px;
	border-radius: 3px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	line-height: 1;
	cursor: pointer;
	background-color: #fff;
	transition: all 0.3s ease;
}

.wp-connect-button:hover {
	opacity: 0.75;
}

.wp-connect-button.inverse:hover {
	opacity: 1;
}

.wp-connect-button.w-icon {
	padding: 6px 14px;
}

.wp-connect-button.sm {
	padding: 10px;
}

.wp-connect-button.sm svg {
	width: 20px;
	height: 20px;
	position: relative;
	top: 1px;
}

.wp-connect-button.inverse {
	color: #fff;
	background-color: #3858e9;
	border: 1px solid #3858e9;
}

.wp-connect-button svg path {
	fill: #3858e9;
}

.wp-connect-button.inverse svg path {
	fill: #fff;
}

.wp-connect-button.inverse:hover svg path {
	fill: #fff;
}

/* Disabled state for buttons */
.wp-connect-button:disabled,
.wp-connect-button.disabled {
	background-color: #f5f5f5;
	color: #999;
	border-color: #ddd;
	cursor: not-allowed;
	opacity: 0.6;
}

.wp-connect-button.inverse:disabled,
.wp-connect-button.inverse.disabled {
	background-color: #3858E9;
	color: #FFFFFF;
	border-color: #3858E9;
	cursor: not-allowed;
	opacity: 0.6;
}

.wp-connect-button.inverse:disabled:hover,
.wp-connect-button.inverse.disabled:hover {
	background-color: #3858E9;
	color: #FFFFFF;
	border-color: #3858E9;
	opacity: 0.6;
}


/* Form Styles */
.form-fields {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 600px;
}

.form-field {
	display: flex;
	flex-direction: column;
}

.form-field .description:last-child {
	margin-bottom: 0px;
}

.form-field label.small {
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.form-field input[type="text"],
.form-field input[type="password"] {
	width: 100%;
	max-width: 600px;
	padding: 8px;
	height: 40px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.form-field input[type="text"]::placeholder,
.form-field input[type="password"]::placeholder {
	font-size: 13px;
	color: #757575;
}

.form-group-title.more-space {
	margin-bottom: 20px;
}

.advanced-tab-content .form-field .description.with-margin {
	margin-top: 0;
	margin-left: 24px;
}

.form-field .description {
	font-size: 12px;
	margin-top: 8px;
	color: #757575;
}

.checkbox-field {
	margin-top: 8px;
}

.checkbox-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.checkbox-wrapper input[type="checkbox"] {
	margin: 0;
}

.checkbox-wrapper label {
	margin: 0;
}

/* Custom checkbox styling with white checkmark */
.shopify-form .checkbox-wrapper input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 16px;
	height: 16px;
	border: 1px solid #3858e9;
	border-radius: 3px;
	background-color: #fff;
	position: relative;
	cursor: pointer;
}

.shopify-form .checkbox-wrapper input[type="checkbox"]:checked {
	background-color: #3858e9;
}

.shopify-form .checkbox-wrapper input[type="checkbox"]:checked::before {
	content: "";
	position: absolute;
	left: 4.5px;
	top: 5px;
	width: 12px;
	height: 12px;
	background-image: url("data:image/svg+xml;utf8,%3Csvg%20width%3D%2212%22%20height%3D%2210%22%20viewBox%3D%220%200%2012%2010%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0_2982_64525%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2212%22%20height%3D%2210%22%3E%3Cpath%20d%3D%22M11%201L4%208L1%205%22%20stroke%3D%22white%22%20stroke-width%3D%221.5%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_2982_64525%29%22%3E%3Crect%20x%3D%22-1%22%20width%3D%2214%22%20height%3D%2210%22%20fill%3D%22white%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

/* Radio button styling */
.radio-group {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.radio-field {
	display: flex;
	flex-direction: column;
}

.radio-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.radio-wrapper input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 16px;
	height: 16px;
	border: 1px solid #949494;
	border-radius: 50%;
	background-color: #fff;
	position: relative;
	cursor: pointer;
	margin: 0;
}

.radio-wrapper input[type="radio"]:checked {
	background-color: #3858E9;
	border: none;
}

.radio-wrapper input[type="radio"]:checked::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #fff;
	transform: translate(-50%, -50%);
	margin: 0;
}

.radio-wrapper label {
	margin: 0;
	cursor: pointer;
	font-weight: 500;
}

.radio-field .description.with-margin {
	margin-top: 0;
	margin-left: 24px;
	color: #757575;
	font-size: 13px;
}

.example-link {
	color: #3858e9;
	text-decoration: none;
}

.example-link:hover {
	text-decoration: underline;
}

/* Conditional field styling */
.cart-link-text-field {
	transition: all 0.3s ease;
	padding-top: 24px;
}

.cart-link-text-field[style*="display: none"] {
	opacity: 0;
	transform: translateY(-10px);
}

.cart-link-text-field:not([style*="display: none"]) {
	opacity: 1;
	transform: translateY(0);
}

/* Read-only input styling for connected stores */
.form-field input[readonly] {
	background-color: #f8f9fa;
	border-color: #e2e4e7;
	color: #666;
	cursor: not-allowed;
}

.form-field input[readonly]:focus {
	border-color: #e2e4e7;
	box-shadow: none;
}

/* Disconnect Confirmation Modal */
.shopify-disconnect-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100102;
	display: flex;
	align-items: center;
	justify-content: center;
}

.shopify-disconnect-modal__backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.shopify-disconnect-modal__content {
	position: relative;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	max-width: 500px;
	width: 90%;
	margin: 0 auto;
	overflow: hidden;
}

.shopify-disconnect-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 24px 0;
	border-bottom: none;
}

.shopify-disconnect-modal__title {
	margin: 0;
	font-size: 20px;
	font-weight: 500;
	color: #1a1a1a;
	flex: 1;
}

.shopify-disconnect-modal__close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	margin: -8px -8px -8px 16px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
	position: relative;
	top: -2px;
}

.shopify-disconnect-modal__close:hover {
	background-color: #f3f4f6;
}

.shopify-disconnect-modal__close-icon {
	font-size: 24px;
	line-height: 1;
	color: #6b7280;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.shopify-disconnect-modal__body {
	padding: 16px 24px 24px;
}

.shopify-disconnect-modal__caption {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #6b7280;
}

.shopify-disconnect-modal__footer {
	padding: 16px 24px 24px;
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}

.shopify-disconnect-modal__footer .wp-connect-button {
	margin: 0;
}

/* Animation for modal */
.shopify-disconnect-modal.show {
	animation: modalFadeIn 0.2s ease-out;
}

.shopify-disconnect-modal.hide {
	animation: modalFadeOut 0.2s ease-out;
}

/* Error messages */

.components-notice__content {
	display: flex;
	flex-direction: column;
}

.components-notice__content a {
	margin-top: 10px;
	display: inline-block;
	width: fit-content;
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes modalFadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

/* Quick View Image Modal Styles */
.quick-view-image-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100102;
	display: flex;
	align-items: center;
	justify-content: center;
}

.quick-view-image-modal__backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	cursor: pointer;
}

.quick-view-image-modal__content {
	position: relative;
	max-width: 912px;
	width: 90%;
	max-height: 90vh;
	background: #fff;
	border-radius: 8px;
	padding: 0 32px 32px 32px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
}

.quick-view-image-modal__close {
	position: absolute;
	top: 32px;
	right: 32px;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: opacity 0.2s ease;
}

.quick-view-image-modal__header {
	padding: 32px 0 32px 0;
	flex-shrink: 0;
}

.quick-view-image-modal__title {
	margin: 0;
	font-size: 20px;
	font-weight: 500;
	color: #1a1a1a;
}

.quick-view-image-modal__close:hover {
	opacity: 0.7;
}

.quick-view-image-modal__close svg {
	width: 18px;
	height: 18px;
}

.quick-view-image-modal__image {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	scroll-behavior: smooth;
}

.quick-view-image-modal__image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}

/* Animation for image modal */
.quick-view-image-modal.show {
	animation: modalFadeIn 0.2s ease-out;
}

.quick-view-image-modal.hide {
	animation: modalFadeOut 0.2s ease-out;
}

/* Responsive design for image modal */
@media (max-width: 960px) {
	.quick-view-image-modal__content {
		width: 95%;
		margin: 0 16px;
		padding: 0 16px 16px 16px;
	}
	
	.quick-view-image-modal__header {
		padding: 16px 0 16px 0;
	}
	
	.quick-view-image-modal__title {
		font-size: 18px;
	}
	
	.quick-view-image-modal__close {
		top: 16px;
		right: 16px;
	}
}

@media (max-height: 600px) {
	.quick-view-image-modal__content {
		max-height: calc(100vh - 40px);
	}
	
	.quick-view-image-modal__header {
		padding: 16px 0 16px 0;
	}
	
	.quick-view-image-modal__close {
		top: 16px;
	}
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
	.app-settings-form-container__content {
		flex-direction: column;
		align-items: flex-start;
		min-height: auto;
		gap: 20px;
	}
	
	.app-settings-form-container .art-container {
		order: -1;
		align-self: center;
	}
	
	.app-settings-form-container .art-container img {
		max-width: 280px;
		height: auto;
	}
}
