/* Skin pro — botón + drawer lateral de envío (responsive) */

.ac-sc-pro-triggers {
	width: 100%;
	margin: 0 0 12px;
}

.ac-sc-drawer-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	padding: 10px 16px;
	background: #fff;
	color: #1A102E;
	border: 2px solid rgba(26, 16, 46, 0.12);
	border-radius: 12px;
	font-family: 'Space Grotesk', Inter, sans-serif;
	font-size: 0.95rem;
	font-weight: 800;
	cursor: pointer;
	transition: all 0.25s ease;
}

.ac-sc-drawer-trigger:hover {
	border-color: #4B00D6;
	color: #4B00D6;
	box-shadow: 0 4px 14px rgba(75, 0, 214, 0.12);
}

.ac-sc-drawer-trigger svg {
	flex-shrink: 0;
}

html.ac-sc-drawer-open,
body.ac-sc-drawer-open {
	overflow: hidden !important;
}

.ac-sc-drawer-overlay {
	display: block !important;
	visibility: hidden;
	pointer-events: none;
	position: fixed !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background: rgba(26, 16, 46, 0.55);
	backdrop-filter: blur(4px);
	z-index: 999999 !important;
	opacity: 0;
	transition: opacity 0.28s ease, visibility 0.28s ease;
	margin: 0 !important;
	padding: 0 !important;
}

.ac-sc-drawer-overlay.active {
	visibility: visible;
	pointer-events: auto;
	opacity: 1;
}

.ac-sc-drawer-panel {
	background: #FFFFFF !important;
	border-radius: 16px 0 0 16px !important;
	padding: 24px 22px 28px !important;
	width: min(420px, 92vw) !important;
	max-width: 420px !important;
	height: 100% !important;
	max-height: 100vh !important;
	min-height: 100vh !important;
	box-shadow: -12px 0 40px rgba(26, 16, 46, 0.22) !important;
	position: fixed !important;
	top: 0 !important;
	right: 0 !important;
	left: auto !important;
	bottom: 0 !important;
	margin: 0 !important;
	transform: translate3d(105%, 0, 0) !important;
	transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	box-sizing: border-box !important;
	z-index: 1000000 !important;
}

.ac-sc-drawer-overlay.active .ac-sc-drawer-panel {
	transform: translate3d(0, 0, 0) !important;
}

.ac-sc-drawer-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 18px;
}

.ac-sc-drawer-title {
	margin: 0 0 4px;
	color: #111;
	font-family: 'Space Grotesk', Inter, sans-serif;
	font-size: 1.35rem;
	font-weight: 800;
}

.ac-sc-drawer-sub {
	margin: 0;
	color: #777;
	font-size: 0.9rem;
}

.ac-sc-drawer-close {
	flex-shrink: 0;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #333;
	cursor: pointer;
}

.ac-sc-drawer-close:hover {
	border-color: #bbb;
	background: #f7f7f7;
}

.ac-sc-drawer-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ac-sc-drawer-body .ac-sc-wrap {
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	overflow: hidden;
	margin: 0;
	background: #fff;
}

.ac-sc-drawer-body .ac-sc-header {
	padding: 12px 14px 0;
	border: none;
}

.ac-sc-drawer-body .ac-sc-title {
	font-weight: 800;
	font-size: 0.95rem;
	color: #1A102E;
}

.ac-sc-drawer-body .ac-sc-form {
	padding: 12px 14px 14px;
}

.ac-sc-drawer-body .ac-sc-fields {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 14px;
}

.ac-sc-drawer-body .ac-sc-field label {
	font-size: 0.8rem;
	font-weight: 700;
	color: #444;
	margin-bottom: 6px;
}

.ac-sc-drawer-body .ac-sc-field input,
.ac-sc-drawer-body .ac-sc-field select {
	width: 100%;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 0.95rem;
	color: #1A102E;
	height: auto;
	box-sizing: border-box;
}

.ac-sc-drawer-body .ac-sc-field input:focus,
.ac-sc-drawer-body .ac-sc-field select:focus {
	border-color: #4B00D6;
	box-shadow: 0 0 0 3px rgba(75, 0, 214, 0.12);
	outline: none;
}

.ac-sc-drawer-body .ac-sc-btn {
	display: block;
	width: 100%;
	padding: 12px 16px;
	border: none;
	border-radius: 10px;
	background: #4B00D6;
	color: #fff;
	font-weight: 800;
	font-size: 0.95rem;
	letter-spacing: 0;
	cursor: pointer;
}

.ac-sc-drawer-body .ac-sc-btn:hover {
	background: #3A00A6;
	color: #fff;
}

.ac-sc-drawer-body .ac-sc-btn-recalc {
	margin: 0 14px 14px !important;
	background: #1A102E !important;
	border: none !important;
	color: #fff !important;
	border-radius: 8px !important;
	width: auto !important;
	padding: 8px 14px !important;
}

.ac-sc-drawer-body .ac-shipping-fallback {
	margin: 0;
}

/* Product page pro: trigger al lado de acciones / trust */
.product-page-pro .trust-shipping-module .ac-sc-pro-triggers {
	margin-bottom: 0;
}

@media (max-width: 576px) {
	.ac-sc-drawer-panel {
		width: 100% !important;
		max-width: 100% !important;
		border-radius: 16px 16px 0 0 !important;
		top: auto !important;
		bottom: 0 !important;
		right: 0 !important;
		left: 0 !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: 92vh !important;
		transform: translate3d(0, 105%, 0) !important;
	}

	.ac-sc-drawer-overlay.active .ac-sc-drawer-panel {
		transform: translate3d(0, 0, 0) !important;
	}
}
