/* Order Summary Card */
.wp-block-woocommerce-checkout-order-summary-block {
  background: linear-gradient(145deg, #1a1a1f 0%, #141417 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.wp-block-woocommerce-checkout-order-summary-block::before {
  content: "Sipariş Özeti";
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cart Items in Summary */
.wp-block-woocommerce-checkout-order-summary-cart-items-block {
  margin-bottom: 16px;
}

.wc-block-components-order-summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wc-block-components-order-summary-item:last-child {
  border-bottom: none;
}

.wc-block-components-order-summary-item__image {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #2a2a2f;
}

.wc-block-components-order-summary-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wc-block-components-order-summary-item__description {
  flex: 1;
}

.wc-block-components-order-summary-item__header {
  font-weight: 500;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.wc-block-components-order-summary-item__total-price {
  font-weight: 600;
  color: #3b82f6;
  font-size: 1rem;
}

/* Coupon Form */
.wp-block-woocommerce-checkout-order-summary-coupon-form-block {
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wc-block-components-totals-coupon__form {
  display: flex;
  gap: 8px;
}

.wc-block-components-totals-coupon__input {
  flex: 1;
}

.wc-block-components-totals-coupon__input input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.wc-block-components-totals-coupon__input input:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.wc-block-components-totals-coupon__input input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.wc-block-components-totals-coupon__button {
  padding: 12px 20px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wc-block-components-totals-coupon__button:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

/* Order Totals */
.wp-block-woocommerce-checkout-order-summary-totals-block {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wc-block-components-totals-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.wc-block-components-totals-item__label {
  color: rgba(255, 255, 255, 0.6);
}

.wc-block-components-totals-item__value {
  color: #fff;
  font-weight: 500;
}

.wc-block-components-totals-footer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 0;
  margin-top: 12px;
  border-top: 2px solid rgba(59, 130, 246, 0.3);
}

.wc-block-components-totals-footer-item__label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.wc-block-components-totals-footer-item__value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #3b82f6;
}

/* Checkout Form Sections */
.wp-block-woocommerce-checkout-contact-information-block,
.wp-block-woocommerce-checkout-shipping-address-block,
.wp-block-woocommerce-checkout-billing-address-block,
.wp-block-woocommerce-checkout-shipping-methods-block,
.wp-block-woocommerce-checkout-payment-block {
  background: linear-gradient(145deg, #1a1a1f 0%, #141417 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* Section Titles */
.wc-block-components-checkout-step__heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.wc-block-components-checkout-step__heading::before {
  content: "";
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  border-radius: 2px;
}

/* Form Fields */
.wc-block-components-text-input,
.wc-block-components-combobox {
  margin-bottom: 16px;
}

.wc-block-components-text-input label,
.wc-block-components-combobox label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.wc-block-components-text-input input,
.wc-block-components-combobox input,
.wc-block-components-combobox select,
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.wc-block-components-text-input input:focus,
.wc-block-components-combobox input:focus,
.wc-block-components-combobox select:focus,
.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.woocommerce-checkout input::placeholder,
.woocommerce-checkout textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Select Dropdown Styling */
.woocommerce-checkout select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

/* Radio & Checkbox */
.wc-block-components-radio-control__input,
.wc-block-components-checkbox__input {
  width: 20px;
  height: 20px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.wc-block-components-radio-control__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wc-block-components-radio-control__option:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.wc-block-components-radio-control__option--checked {
  background: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
}

.wc-block-components-radio-control__label {
  font-weight: 500;
  color: #fff;
}

.wc-block-components-radio-control__description {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* Payment Methods */
.wc-block-components-payment-method-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: #fff;
}

.wc-block-components-payment-method-icons {
  display: flex;
  gap: 6px;
}

.wc-block-components-payment-method-icons img {
  height: 24px;
  width: auto;
  border-radius: 4px;
}

/* Express Checkout */
.wp-block-woocommerce-checkout-express-payment-block {
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(145deg, #1a1a1f 0%, #141417 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.wc-block-components-express-payment__title {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.wc-block-components-express-payment__title::before,
.wc-block-components-express-payment__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Checkout Button */
.wp-block-woocommerce-checkout-actions-block {
  margin-top: 24px;
}

.wc-block-components-checkout-place-order-button,
.woocommerce-checkout button[type="submit"],
#place_order {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.wc-block-components-checkout-place-order-button:hover,
.woocommerce-checkout button[type="submit"]:hover,
#place_order:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
}

.wc-block-components-checkout-place-order-button:active,
#place_order:active {
  transform: translateY(0);
}

/* Terms & Conditions */
.wp-block-woocommerce-checkout-terms-block {
  margin-top: 16px;
}

.wc-block-components-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.wc-block-components-checkbox a {
  color: #3b82f6;
  text-decoration: none;
}

.wc-block-components-checkbox a:hover {
  text-decoration: underline;
}

/* Error Messages */
.wc-block-components-validation-error,
.woocommerce-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left: 4px solid #ef4444;
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.woocommerce-error li {
  list-style: none;
}

/* Success Messages */
.woocommerce-message {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-left: 4px solid #22c55e;
  color: #86efac;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* Info Messages */
.woocommerce-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-left: 4px solid #3b82f6;
  color: #93c5fd;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* Loading State */
.wc-block-checkout.is-loading .wp-block-woocommerce-checkout-order-summary-block,
.wc-block-checkout.is-loading .wp-block-woocommerce-checkout-fields-block > div {
  position: relative;
  overflow: hidden;
}

.wc-block-checkout.is-loading .wp-block-woocommerce-checkout-order-summary-block::after,
.wc-block-checkout.is-loading .wp-block-woocommerce-checkout-fields-block > div::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

/* Footer Cleanup */
.woocommerce-checkout .entry-footer {
  display: none;
}

/* ===================================
   CLASSIC CHECKOUT FORM STYLES
   =================================== */

/* Classic WooCommerce Checkout Form - Tek sütun yapıldı */
.woocommerce form.checkout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive media query artık gerekli değil */

.woocommerce form.checkout .col2-set {
  order: 2; /* Form alanları sipariş özetinden sonra */
}

/* Order review tek sütunda düzenlendi */
.woocommerce form.checkout #order_review_heading,
.woocommerce form.checkout #order_review {
  order: 1; /* Sipariş özeti en üstte */
}

.woocommerce form.checkout #order_review_heading {
  margin-bottom: 0;
}

.woocommerce form.checkout #order_review {
  background: linear-gradient(145deg, #1a1a1f 0%, #141417 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
}

/* Classic Checkout Sections */
.woocommerce form.checkout .woocommerce-billing-fields,
.woocommerce form.checkout .woocommerce-shipping-fields,
.woocommerce form.checkout .woocommerce-additional-fields {
  background: linear-gradient(145deg, #1a1a1f 0%, #141417 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.woocommerce form.checkout h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.woocommerce form.checkout h3::before {
  content: "";
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  border-radius: 2px;
}

/* Classic Form Row */
.woocommerce form.checkout .form-row {
  margin-bottom: 16px;
}

.woocommerce form.checkout .form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.woocommerce form.checkout .form-row .required {
  color: #ef4444;
}

/* Order Review Table */
.woocommerce table.shop_table {
  background: transparent;
  border: none;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.woocommerce table.shop_table thead th {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border: none;
}

.woocommerce table.shop_table thead th:first-child {
  border-radius: 8px 0 0 8px;
}

.woocommerce table.shop_table thead th:last-child {
  border-radius: 0 8px 8px 0;
}

.woocommerce table.shop_table tbody td,
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
}

.woocommerce table.shop_table tfoot .order-total td,
.woocommerce table.shop_table tfoot .order-total th {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3b82f6;
  border-top: 2px solid rgba(59, 130, 246, 0.3);
  padding-top: 16px;
}

/* Payment Methods Box */
#payment {
  background: linear-gradient(145deg, #1a1a1f 0%, #141417 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
}

#payment .payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

#payment .payment_methods li {
  margin-bottom: 12px;
}

#payment .payment_methods li.wc_payment_method > input:checked + label {
  background: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
}

#payment .payment_box {
  background: rgba(59, 130, 2a46, 0.05);
  padding: 16px;
  border-radius: 8px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* ===================================
   ORIGINAL PAYWALL STYLES (PRESERVED)
   =================================== */

/* Product page diamond display */
.product-diamonds-value {
  margin: 20px 0;
  padding: 15px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(29, 78, 216, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  border-left: 4px solid #3b82f6;
}

.diamonds-info h4 {
  margin: 0 0 15px 0;
  color: #3b82f6;
  font-size: 1.1em;
}

.diamond-item,
.stone-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.diamond-icon,
.stone-icon {
  font-size: 1.5em;
}

.diamond-amount,
.stone-amount {
  font-weight: bold;
  font-size: 1.2em;
  color: #fff;
}

.diamond-label,
.stone-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Shop loop diamond badges */
.shop-diamonds-value {
  margin: 8px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-diamond-badge,
.shop-stone-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
  color: white;
}

.shop-diamond-badge {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.shop-stone-badge {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

/* Cart and checkout diamond info */
.cart-diamonds-info {
  color: #3b82f6;
  font-weight: 500;
}

.checkout-diamonds-summary {
  margin: 20px 0;
  padding: 24px;
  background: linear-gradient(145deg, #1a1a1f 0%, #141417 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
}

.checkout-diamonds-summary h3 {
  margin: 0 0 15px 0;
  color: #3b82f6;
  text-align: center;
}

.diamonds-summary-content {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.diamond-summary-item,
.stone-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px; /* Fixed: Removed unexpected backslash */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Fixed: Completed the box-shadow declaration */
}
/* ===================================
   KLASİK WOOCOMMERCE CHECKOUT STİLLERİ
   (Dark Mode / Neon / Paywall Style)
   =================================== */

/* 1. GENEL SAYFA YAPISI VE ARKA PLAN */
.woocommerce-checkout,
.woocommerce-page.woocommerce-checkout {
    background-color: #0d0d0f;
    color: #fff;
}

/* Başlık Alanı */
.woocommerce-checkout .entry-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.woocommerce-checkout h1.entry-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

/* Ana Form Konteyneri - Tek Sütun Merkezli Görünüm */
.woocommerce form.checkout {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Float Temizliği (Klasik Woo Yapısını Modernleştirme) */
.woocommerce form.checkout:before,
.woocommerce form.checkout:after {
    display: none;
}

.col2-set, .col-1, .col-2 {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* 2. KART YAPILARI (FATURA & KARGO DETAYLARI) */
/* Fatura ve Gönderim Alanlarını Kart Görünümüne Al */
.woocommerce-billing-fields, 
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    background: linear-gradient(145deg, #1a1a1f 0%, #141417 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    margin-bottom: 24px;
}

/* Başlıklar */
.woocommerce form.checkout h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce form.checkout h3::before {
    content: "";
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
}

/* 3. FORM ALANLARI (INPUTLAR) */
.woocommerce form .form-row {
    padding: 0;
    margin-bottom: 16px;
}

.woocommerce form .form-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Input, Select, Textarea Stilleri */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    height: auto;
    box-shadow: none;
}

/* Placeholder Rengi */
.woocommerce form .form-row input::placeholder,
.woocommerce form .form-row textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Focus Durumu */
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none;
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Select2 Düzeltmeleri (WooCommerce Select Kutuları) */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
    padding-left: 0;
    line-height: 1.5;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
}
.select2-dropdown {
    background-color: #1a1a1f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}
.select2-container--default .select2-results__option[aria-selected=true], 
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #3b82f6;
    color: #fff;
}

/* 4. SİPARİŞ İNCELEME (ORDER REVIEW) & TABLO */
#order_review_heading {
    display: none; /* Kendi başlığımızı kutu içine koyacağız */
}

#order_review {
    background: linear-gradient(145deg, #1a1a1f 0%, #141417 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Sanal Başlık Ekleme */
#order_review::before {
    content: "Sipariş Özeti";
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tablo Stilleri */
.woocommerce table.shop_table {
    border: none;
    margin: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.woocommerce table.shop_table thead th {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 12px 16px;
    border: none;
}
.woocommerce table.shop_table thead th:first-child { border-radius: 8px 0 0 8px; }
.woocommerce table.shop_table thead th:last-child { border-radius: 0 8px 8px 0; }

.woocommerce table.shop_table tbody td {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 12px;
    color: #fff;
    background: transparent;
}

.woocommerce table.shop_table tbody tr:first-child td {
    border-top: none;
}

.woocommerce table.shop_table tfoot th,
.woocommerce table.shop_table tfoot td {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 12px;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
}

/* Toplam Alanı Vurgusu */
.woocommerce table.shop_table tfoot tr.order-total th,
.woocommerce table.shop_table tfoot tr.order-total td {
    border-top: 2px solid rgba(59, 130, 246, 0.3);
    font-size: 1.2rem;
    font-weight: 700;
    color: #3b82f6;
    padding-top: 20px;
}

.woocommerce table.shop_table tfoot tr.order-total td strong {
    color: #3b82f6;
}

/* 5. ÖDEME YÖNTEMLERİ (PAYMENT) */
#payment {
    background: transparent !important;
    border-radius: 0;
    padding: 24px 0 0 0;
}

#payment ul.payment_methods {
    border-bottom: none;
    padding: 0;
}

#payment ul.payment_methods li {
    list-style: none !important;
    margin-bottom: 12px;
}

#payment ul.payment_methods li input {
    margin-right: 10px;
}



/* Seçili Ödeme Yöntemi */
#payment ul.payment_methods li.payment_method_cod > label, /* Örnek: Kapıda ödeme seçili ise */
#payment ul.payment_methods li input:checked + label {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

/* Ödeme Açıklama Kutusu */
#payment div.payment_box {
    background: rgba(59, 130, 246, 0.05) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 8px;
    margin-top: 8px;
    padding: 16px;
    font-size: 0.9rem;
}
#payment div.payment_box::before { display: none; } /* Oku kaldır */

/* Siparişi Tamamla Butonu */
#place_order {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    margin-top: 20px;
}

#place_order:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
}

/* 6. MOBİL UYUMLULUK (RESPONSIVE) */
@media only screen and (max-width: 768px) {
    .woocommerce-checkout .entry-header {
        padding: 20px 10px;
    }
    
    .woocommerce form.checkout {
        padding: 10px;
    }

    .woocommerce-billing-fields, 
    .woocommerce-shipping-fields, 
    .woocommerce-additional-fields,
    #order_review {
        padding: 16px; /* Mobilde iç boşluğu azalt */
        border-radius: 12px;
    }

    /* Mobilde input font boyutu (Zoom engellemek için) */
    .woocommerce form .form-row input.input-text,
    .woocommerce form .form-row select,
    .woocommerce form .form-row textarea {
        font-size: 16px; 
    }
    
    .woocommerce table.shop_table thead {
        display: none; /* Mobilde başlıkları gizleyip daha temiz görünüm */
    }
    
    .woocommerce table.shop_table tr td {
        display: block;
        text-align: right;
        padding: 10px 0;
    }
    
    .woocommerce table.shop_table tr td::before {
        content: attr(data-title);
        float: left;
        font-weight: 600;
        color: rgba(255,255,255,0.6);
    }
    
    /* Ürün ismi ve toplamı yan yana tut */
    .woocommerce table.shop_table tr.cart_item td.product-name,
    .woocommerce table.shop_table tr.cart_item td.product-total {
        text-align: left;
    }
    .woocommerce table.shop_table tr.cart_item td::before {
        display: none;
    }
}

/* ===================================
   PAYWALL / DIAMONDS ENTEGRASYONU
   (Orijinal kodunuzdan aynen alındı)
   =================================== */
.product-diamonds-value {
  margin: 20px 0;
  padding: 15px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(29, 78, 216, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  border-left: 4px solid #3b82f6;
}
.diamonds-info h4 {
  margin: 0 0 15px 0;
  color: #3b82f6;
  font-size: 1.1em;
}
.diamond-item, .stone-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.diamond-icon, .stone-icon { font-size: 1.5em; }
.diamond-amount, .stone-amount {
  font-weight: bold;
  font-size: 1.2em;
  color: #fff;
}
.diamond-label, .stone-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.checkout-diamonds-summary {
  margin: 20px 0;
  padding: 24px;
  background: linear-gradient(145deg, #1a1a1f 0%, #141417 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
}
.checkout-diamonds-summary h3 {
  margin: 0 0 15px 0;
  color: #3b82f6;
  text-align: center;
}
.diamonds-summary-content {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.diamond-summary-item, .stone-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===================================
   YAPISAL DÜZELTMELER VE TAŞMA ENGELLEME
   (Mevcut kodun en altına ekleyin)
   =================================== */

/* 1. Ana Konteyner ve Sütunları Sıfırlama (Kesin Çözüm) */
.woocommerce form.checkout .col2-set {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

.woocommerce #payment .form-row select, .woocommerce-page #payment .form-row select {
    width: -webkit-fill-available;
}

.woocommerce form.checkout .col2-set .col-1,
.woocommerce form.checkout .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: both !important;
    flex: 0 0 100%; /* Flex yapısında tam genişlik */
}

/* 2. İçerik Kutularının Taşmasını Engelleme */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    width: 100%;
    box-sizing: border-box; /* Padding dahil genişlik hesabı */
    margin-left: 0 !important;
    margin-right: 0 !important;
    /* Eğer önceki kodda float varsa temizle */
    float: none !important;
}

/* 3. Form Satırları ve Inputlar (Taşmayı Önler) */
.woocommerce form .form-row {
    width: 100% !important;
    float: none !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    margin-bottom: 16px; /* Alt boşluk */
}

/* Yan yana durması gereken Ad-Soyad gibi alanları düzeltme */
.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
    width: 48% !important; /* Arada boşluk kalsın diye %50 yerine %48 */
    float: left !important;
    display: inline-block !important;
}

.woocommerce form .form-row-first {
    margin-right: 4% !important; /* Sağdan boşluk */
}

.woocommerce form .form-row-last {
    margin-right: 0 !important;
}

/* Temizlik (Clearfix) - Ad/Soyad satırından sonraki bozulmayı önler */
.woocommerce form .form-row::after {
    content: "";
    display: table;
    clear: both;
}

/* Inputların kutudan taşmasını engelle */
.woocommerce-input-wrapper {
    width: 100%;
    display: block;
}

/* 4. Select2 (Açılır Menü) Genişlik Sorunu Çözümü */
.select2-container {
    width: 100% !important; /* Zorla %100 yap */
    max-width: 100% !important;
}

/* Select2 Rendered (Görünen kısım) */
.select2-container .select2-selection--single {
    height: auto !important;
    box-sizing: border-box;
}

/* 5. Mobil İçin Özel Ayar (Ad-Soyad Alt Alta) */
@media only screen and (max-width: 480px) {
    .woocommerce form .form-row-first,
    .woocommerce form .form-row-last {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
    }
}

