/* ============================================================
   Woo Custom Studio — Frontend
   ============================================================ */
:root {
	--wcs-navy: #1a2238;
	--wcs-navy-2: #232c4a;
	--wcs-accent: #ffb400;
	--wcs-accent-2: #ff7b00;
	--wcs-text: #1f2430;
	--wcs-muted: #6b7280;
	--wcs-border: #e5e7eb;
	--wcs-radius: 14px;
	--wcs-shadow: 0 10px 30px rgba(26, 34, 56, 0.12);
}

/* ---------- Product customizer ---------- */
.wcs-customizer {
	border: 1px solid var(--wcs-border);
	border-radius: var(--wcs-radius);
	padding: 22px;
	margin: 18px 0 24px;
	background: linear-gradient(160deg, #ffffff 0%, #f7f9ff 100%);
	box-shadow: var(--wcs-shadow);
}
.wcs-customizer__head { margin-bottom: 16px; }
.wcs-customizer__badge {
	display: inline-block;
	background: linear-gradient(90deg, var(--wcs-accent), var(--wcs-accent-2));
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .5px;
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 10px;
}
.wcs-customizer__head h3 { margin: 4px 0; font-size: 19px; color: var(--wcs-navy); }
.wcs-customizer__sub { color: var(--wcs-muted); font-size: 13.5px; margin: 0; line-height: 1.5; }

.wcs-field { margin-bottom: 14px; }
.wcs-field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--wcs-text); }
.wcs-field input[type="text"],
.wcs-field input[type="number"],
.wcs-field input[type="tel"],
.wcs-field input[type="email"],
.wcs-field input[type="url"],
.wcs-field select,
.wcs-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1.5px solid var(--wcs-border);
	border-radius: 10px;
	font-size: 14px;
	background: #fff;
	transition: border-color .18s, box-shadow .18s;
	box-sizing: border-box;
}
.wcs-field input:focus,
.wcs-field select:focus,
.wcs-field textarea:focus {
	outline: none;
	border-color: var(--wcs-accent);
	box-shadow: 0 0 0 3px rgba(255, 180, 0, .18);
}

.wcs-size-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wcs-mini { display: block; font-size: 11px; color: var(--wcs-muted); margin-bottom: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }

.wcs-note {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	background: #fff7e6;
	border: 1px dashed var(--wcs-accent);
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 13px;
	color: #7a5b00;
	line-height: 1.5;
}
.wcs-note__icon { font-size: 16px; }

/* ---------- Thank you banner ---------- */
.wcs-thankyou-banner {
	display: flex;
	gap: 16px;
	align-items: center;
	background: linear-gradient(135deg, var(--wcs-navy), var(--wcs-navy-2));
	color: #fff;
	border-radius: var(--wcs-radius);
	padding: 22px 24px;
	margin: 0 0 24px;
	box-shadow: var(--wcs-shadow);
}
.wcs-thankyou-banner__icon { font-size: 38px; }
.wcs-thankyou-banner h3 { margin: 0 0 6px; color: var(--wcs-accent); font-size: 18px; }
.wcs-thankyou-banner p { margin: 0; font-size: 14px; line-height: 1.55; opacity: .95; }

/* ---------- Notice bar ---------- */
.wcs-notice-bar {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	gap: 14px;
	background: linear-gradient(90deg, var(--wcs-navy), var(--wcs-navy-2));
	color: #fff;
	padding: 10px 18px;
	font-size: 14px;
	box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.wcs-notice-bar.is-hidden { display: none; }
.wcs-notice-bar__text { flex: 1; font-weight: 500; }
.wcs-notice-bar__btn {
	background: linear-gradient(90deg, var(--wcs-accent), var(--wcs-accent-2));
	color: #1a2238;
	border: none;
	font-weight: 700;
	padding: 8px 18px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 13px;
	transition: transform .15s;
}
.wcs-notice-bar__btn:hover { transform: translateY(-1px); }
.wcs-notice-bar__close {
	background: transparent; border: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; opacity: .8;
}
.wcs-notice-bar__close:hover { opacity: 1; }

/* ---------- Floating button ---------- */
.wcs-fab {
	position: fixed;
	bottom: 24px;
	z-index: 99988;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 78px; height: 78px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	background: linear-gradient(135deg, var(--wcs-accent), var(--wcs-accent-2));
	color: #1a2238;
	box-shadow: 0 8px 24px rgba(255, 123, 0, .45);
	transition: transform .18s;
	animation: wcs-pulse 2.4s infinite;
}
.wcs-fab--right { right: 22px; }
.wcs-fab--left { left: 22px; }
.wcs-fab:hover { transform: scale(1.07); }
.wcs-fab__icon { font-size: 20px; }
.wcs-fab__label { font-size: 10px; font-weight: 800; line-height: 1.1; text-align: center; padding: 0 4px; }
@keyframes wcs-pulse {
	0% { box-shadow: 0 8px 24px rgba(255,123,0,.45), 0 0 0 0 rgba(255,123,0,.4); }
	70% { box-shadow: 0 8px 24px rgba(255,123,0,.45), 0 0 0 16px rgba(255,123,0,0); }
	100% { box-shadow: 0 8px 24px rgba(255,123,0,.45), 0 0 0 0 rgba(255,123,0,0); }
}

/* ---------- Modal ---------- */
.wcs-modal { position: fixed; inset: 0; z-index: 99999; display: none; }
.wcs-modal.is-open { display: block; }
.wcs-modal--inline { position: static; display: block; }
.wcs-modal--inline .wcs-modal__overlay { display: none; }
.wcs-modal--inline .wcs-modal__box { position: static; transform: none; max-width: 100%; box-shadow: var(--wcs-shadow); }

.wcs-modal__overlay {
	position: absolute; inset: 0;
	background: rgba(15, 20, 35, .6);
	backdrop-filter: blur(3px);
}
.wcs-modal__box {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 92%; max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 18px;
	padding: 28px;
	box-shadow: 0 30px 80px rgba(0,0,0,.4);
	animation: wcs-pop .25s ease;
}
@keyframes wcs-pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

.wcs-modal__close {
	position: absolute; top: 14px; right: 16px;
	background: #f3f4f6; border: none; width: 34px; height: 34px; border-radius: 50%;
	font-size: 20px; cursor: pointer; color: var(--wcs-muted); line-height: 1;
}
.wcs-modal__close:hover { background: #e5e7eb; }
.wcs-modal__head { margin-bottom: 18px; }
.wcs-modal__head h3 { margin: 6px 0; font-size: 21px; color: var(--wcs-navy); }
.wcs-modal__head p { margin: 0; color: var(--wcs-muted); font-size: 13.5px; line-height: 1.5; }

.wcs-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wcs-req { color: #e02424; }
.wcs-file { padding: 8px !important; font-size: 13px !important; }

.wcs-submit-btn {
	position: relative;
	width: 100%;
	background: linear-gradient(90deg, var(--wcs-accent), var(--wcs-accent-2));
	color: #1a2238;
	border: none;
	font-weight: 800;
	font-size: 15px;
	padding: 14px;
	border-radius: 12px;
	cursor: pointer;
	margin-top: 6px;
	transition: transform .15s, opacity .2s;
}
.wcs-submit-btn:hover { transform: translateY(-1px); }
.wcs-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.wcs-submit-btn__spinner {
	display: none;
	position: absolute; right: 16px; top: 50%;
	width: 16px; height: 16px; margin-top: -8px;
	border: 2px solid rgba(26,34,56,.3); border-top-color: #1a2238;
	border-radius: 50%; animation: wcs-spin .7s linear infinite;
}
.is-loading .wcs-submit-btn__spinner { display: block; }
@keyframes wcs-spin { to { transform: rotate(360deg); } }

.wcs-form-msg {
	background: #fee2e2; color: #991b1b;
	padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin: 4px 0 10px;
}

.wcs-success { text-align: center; padding: 16px 8px; }
.wcs-success__check {
	width: 64px; height: 64px; margin: 0 auto 14px;
	background: linear-gradient(135deg, #34d399, #059669);
	border-radius: 50%; color: #fff; font-size: 34px;
	display: flex; align-items: center; justify-content: center;
}
.wcs-success h3 { margin: 0 0 8px; color: var(--wcs-navy); }
.wcs-success p { color: var(--wcs-muted); font-size: 14px; line-height: 1.55; margin: 0 0 18px; }

@media (max-width: 600px) {
	.wcs-size-grid { grid-template-columns: 1fr 1fr; }
	.wcs-form-grid { grid-template-columns: 1fr; }
	.wcs-notice-bar { flex-wrap: wrap; font-size: 13px; }
	.wcs-fab { width: 64px; height: 64px; }
}
