/* ==========================================================
   WC Cookie Box Builder — Frontend Styles
   ========================================================== */

.wccbb-wrapper {
	--wccbb-accent: #d9558a;
	--wccbb-accent-dark: #b83f6f;
	--wccbb-ink: #241b1e;
	--wccbb-muted: #7c7276;
	--wccbb-border: #ece4e2;
	--wccbb-bg: #fffaf8;

	margin: 28px 0 32px;
	padding: 24px 24px 22px;
	border: 1px solid var(--wccbb-border);
	border-radius: 16px;
	background: var(--wccbb-bg);
	box-shadow: 0 2px 10px rgba(36, 27, 30, 0.04);
	font-family: inherit;
}

.wccbb-title {
	margin: 0 0 4px;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--wccbb-ink);
}

.wccbb-subtitle {
	margin: 0 0 18px;
	font-size: 13px;
	color: var(--wccbb-muted);
}

.wccbb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
}

.wccbb-card {
	position: relative;
	border: 1px solid var(--wccbb-border);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.wccbb-card:hover {
	box-shadow: 0 6px 18px rgba(36, 27, 30, 0.08);
	transform: translateY(-2px);
}

.wccbb-card.wccbb-has-qty {
	border-color: var(--wccbb-accent);
	box-shadow: 0 0 0 1px var(--wccbb-accent);
}

.wccbb-card-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--wccbb-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 22px;
	text-align: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.15s ease, transform 0.15s ease;
	z-index: 2;
}

.wccbb-card.wccbb-has-qty .wccbb-card-badge {
	opacity: 1;
	transform: scale(1);
}

.wccbb-card-image {
	width: 100%;
	padding-top: 92%;
	background-size: cover;
	background-position: center;
	background-color: #f3ede9;
	position: relative;
}

.wccbb-card-image span {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--wccbb-muted);
	text-align: center;
	padding: 6px;
}

.wccbb-card-footer {
	padding: 10px 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
}

.wccbb-card-name {
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	color: var(--wccbb-ink);
	line-height: 1.3;
	min-height: 2.6em;
	display: flex;
	align-items: center;
}

.wccbb-stepper {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wccbb-stepper button {
	width: 30px;
	height: 30px;
	border-radius: 9px;
	border: 1px solid var(--wccbb-border);
	background: #fff;
	color: var(--wccbb-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.wccbb-stepper button:hover {
	border-color: var(--wccbb-accent);
	color: var(--wccbb-accent);
}

.wccbb-stepper button:active {
	transform: scale(0.92);
}

.wccbb-stepper button.wccbb-plus {
	background: var(--wccbb-ink);
	border-color: var(--wccbb-ink);
	color: #fff;
}

.wccbb-stepper button.wccbb-plus:hover {
	background: var(--wccbb-accent-dark);
	border-color: var(--wccbb-accent-dark);
	color: #fff;
}

.wccbb-stepper button:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	transform: none;
}

.wccbb-qty {
	width: 26px;
	text-align: center;
	border: none;
	background: transparent;
	font-weight: 800;
	font-size: 15px;
	color: var(--wccbb-ink);
}

/* Sticky summary bar */
.wccbb-summary {
	bottom: 12px;
	margin-top: 22px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--wccbb-border);
	box-shadow: 0 8px 24px rgba(36, 27, 30, 0.08);
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.wccbb-summary-text {
	font-weight: 700;
	color: var(--wccbb-ink);
	font-size: 14px;
	white-space: nowrap;
}

.wccbb-selected-count {
	color: var(--wccbb-accent-dark);
}

.wccbb-progress {
	flex: 1 1 120px;
	min-width: 90px;
	height: 8px;
	border-radius: 999px;
	background: #f1e7e2;
	overflow: hidden;
}

.wccbb-progress-bar {
	height: 100%;
	width: 0%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--wccbb-accent), var(--wccbb-accent-dark));
	transition: width 0.2s ease;
}

.wccbb-status {
	flex-shrink: 0;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.wccbb-status-incomplete {
	color: #9a5a12;
	background: #fdecd2;
}

.wccbb-status-complete {
	color: #0d6b4f;
	background: #d7f4e8;
}

.single_add_to_cart_button.wccbb-disabled,
button.wccbb-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

@media (max-width: 480px) {
	.wccbb-wrapper {
		padding: 18px 16px;
	}

	.wccbb-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		gap: 12px;
	}

	.wccbb-summary {
		position: static;
	}
}





/* ===================================================
   1. MAIN WRAPPER & CONTAINER (Modern Glassmorphism Vibe)
   =================================================== */
.wccbb-wrapper {
  max-width: 920px;
  margin: 30px auto;
  padding: 32px;
  background: linear-gradient(145deg, #ffffff, #fcfcfd);
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  border: 1px solid rgba(241, 245, 249, 0.8);
  box-sizing: border-box;
}

.wccbb-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.wccbb-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #b45309;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  display: table;
  padding: 8px 18px;
  border-radius: 30px;
  text-align: center;
  margin: 0 auto 30px auto;
  border: 1px solid #fde68a;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.08);
}

/* ===================================================
   2. GRID LAYOUT
   =================================================== */
.wccbb-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  margin-bottom: 35px !important;
}

/* ===================================================
   3. ITEM CARDS STYLING (Refined Padding & Spacing)
   =================================================== */
.wccbb-card {
  position: relative;
  background: #ffffff;
  border: 2px solid #f1f5f9;
  border-radius: 20px;
  padding: 16px 10px 18px 10px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  justify-content: space-between;
  box-sizing: border-box;
}

.wccbb-card:hover {
  transform: translateY(-6px);
  border-color: #e98a93;
  box-shadow: 0 16px 32px rgba(255, 56, 92, 0.1);
}

/* Selected Card Highlight */
.wccbb-card:has(.wccbb-qty[value]:not([value="0"])) {
  border-color: #e98a93 !important;
  background: linear-gradient(180deg, #ffffff 0%, #fff8fa 100%) !important;
  box-shadow: 0 8px 24px rgba(255, 56, 92, 0.08) !important;
}

/* Top-Right Badge Indicator */
.wccbb-card-badge {
  display: none;
}

/* Cookie Image Area (Fixed Size & Perfect Centering) */
.wccbb-card-image {
  width: 100% !important;
  max-width: 110px !important;
  height: 110px !important;
  background-size: cover !important; /* Cover use kiya taake extra grey padding ya box borders gayab ho jayein */
  background-position: center !important;
  background-repeat: no-repeat !important;
  margin: 0 auto 10px auto !important;
  border-radius: 12px;
  transition: transform 0.35s ease;
}

.wccbb-card:hover .wccbb-card-image {
  transform: scale(1.08);
}

/* Card Footer */
.wccbb-card-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.wccbb-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  padding: 0 2px;
  line-height: 1.25;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================================
   4. STEPPER CONTROLS (+ / - BUTTON FIXES)
   =================================================== */
.wccbb-stepper {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 40px !important;
  padding: 2px 4px !important;
  width: auto !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.wccbb-stepper button.wccbb-minus,
.wccbb-stepper button.wccbb-plus {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  border-radius: 50% !important;
  border: none !important;
  outline: none !important;
  background-color: #e98a93 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: bold !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(255, 56, 92, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: all 0.2s ease !important;
}

.wccbb-stepper button.wccbb-minus:hover,
.wccbb-stepper button.wccbb-plus:hover {
  background-color: #e01e5a !important;
  transform: scale(1.1) !important;
}

.wccbb-stepper button:active {
  transform: scale(0.9) !important;
}

/* Quantity Input Field */
.wccbb-stepper input.wccbb-qty {
  width: 26px !important;
  height: 26px !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  padding: 0 !important;
  margin: 0 1px !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

/* ===================================================
   5. SUMMARY & PROGRESS BAR (BOTTOM)
   =================================================== */
.wccbb-summary {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.wccbb-summary-text {
  font-size: 15px;
  font-weight: 600;
  color: #cbd5e1;
  text-align: center;
}

.wccbb-selected-count {
  color: #ff385c;
  font-size: 21px;
  font-weight: 800;
}

/* Progress Bar */
.wccbb-progress {
  width: 100%;
  max-width: 420px;
  max-height: 12px;
  background: #1e293b;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.wccbb-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff385c, #ff758c);
  border-radius: 20px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(255, 56, 92, 0.8);
}

/* Status Badges */
.wccbb-status {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.wccbb-status-incomplete {
  background: #d97706;
  color: #ffffff;
}

.wccbb-status-complete {
  background: #10b981;
  color: #ffffff;
}

/* ===================================================
   6. MOBILE RESPONSIVENESS (Fixed Overflow & Layout Glitches)
   =================================================== */
@media (max-width: 650px) {
  .wccbb-wrapper {
    padding: 12px;
    margin: 8px;
    border-radius: 16px;
  }

  .wccbb-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  
  .wccbb-card {
    padding: 10px 6px 12px 6px !important;
    border-radius: 14px;
  }

  .wccbb-card-image {
    height: 85px !important;
    max-width: 85px !important;
    margin-bottom: 6px !important;
  }

  .wccbb-card-name {
    font-size: 11px;
    min-height: 26px;
  }

  .wccbb-stepper {
    padding: 2px 2px !important;
  }

  .wccbb-stepper button.wccbb-minus,
  .wccbb-stepper button.wccbb-plus {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    font-size: 12px !important;
  }

  .wccbb-stepper input.wccbb-qty {
    width: 20px !important;
    height: 22px !important;
    font-size: 11px !important;
  }
}









.postid-351 form.cart {
  display: flex !important;
  flex-direction: column !important;
}

.postid-351 form.cart button.single_add_to_cart_button,
.postid-351 form.cart input.single_add_to_cart_button {
  display: block !important;
  width: 100% !important;
  max-width: 420px !important;
  margin: 25px auto 10px 0px !important;
  padding: 16px 28px !important;
}

.postid-351 form.cart div.quantity input.qty {
  width: 70px !important;
  height: 42px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 12px !important;
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  background: #ffffff !important;
  outline: none !important;
}