/* Floating Cart Icon */
.floating-cart-icon {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #2563eb;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.2s ease;
}

.floating-cart-icon:hover {
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ef4444;
  color: white;
  font-size: 14px;
  font-weight: bold;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cart Modal */
.cart-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-modal {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 100%;
  height: 100vh;
  background: white;
  z-index: 1002;
  box-shadow: -4px 0 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.cart-modal.open {
  right: 0;
}

.cart-modal-overlay.open {
  display: block;
  opacity: 1;
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.close-cart {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #6b7280;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f3f4f6;
}

.cart-item-details h4 {
  margin: 0 0 5px 0;
  font-size: 1rem;
}

.cart-item-price {
  color: #2563eb;
  font-weight: bold;
}

.remove-item {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.875rem;
  text-decoration: underline;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #e5e7eb;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.cart-checkout-btn {
  width: 100%;
  padding: 15px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.cart-checkout-btn:hover {
  background-color: #1d4ed8;
}

.empty-cart-msg {
  text-align: center;
  color: #6b7280;
  margin-top: 50px;
}

/* Manual Price Input on Course Pages */
.manual-price-box {
  background: #f8fafc;
  border: 1.5px solid #bfdbfe;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.manual-price-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.manual-price-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.2px;
}

.manual-price-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 3px 8px;
  border-radius: 12px;
}

.manual-price-input-wrapper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #2563eb;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.manual-price-input-wrapper:focus-within {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.manual-price-currency {
  padding: 8px 12px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #2563eb;
  background: #eff6ff;
  border-right: 1px solid #bfdbfe;
  user-select: none;
}

.manual-price-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  background: transparent;
  width: 100%;
}

.manual-price-input::-webkit-outer-spin-button,
.manual-price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.manual-price-input {
  -moz-appearance: textfield;
}

.manual-price-reset-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.manual-price-reset-btn:hover {
  color: #2563eb;
  text-decoration: underline;
}

.manual-price-subtext {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 6px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.manual-price-subtext .subtext-separator {
  color: #cbd5e1;
}

/* Cart Item Price Edit in Drawer */
.cart-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cart-item-details h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}

.cart-item-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.cart-item-price-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.cart-item-price-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
}

.cart-item-price-box span {
  padding: 3px 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border-right: 1px solid #e2e8f0;
}

.cart-item-price-input {
  width: 90px;
  padding: 4px 6px;
  border: none;
  outline: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}

.cart-item-price-input::-webkit-outer-spin-button,
.cart-item-price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-item-price-input {
  -moz-appearance: textfield;
}

.cart-item-price-input:focus {
  background: #eff6ff;
}

