
/* Custom Checkout Fields Styling */
.woocommerce form .form-row.conditional-field {
	transition: all 0.3s ease;
}

.woocommerce form .form-row.conditional-field.hidden {
	display: none !important;
}

.woocommerce form .form-row select#billing_invoice_type,
.woocommerce form .form-row select#billing_nationality {
	background-color: #fff;
	border: 2px solid #ddd;
	border-radius: 4px;
	padding: 10px;
	font-size: 14px;
}

/* Radio layout for billing_invoice_type */
#billing_invoice_type_field .woocommerce-input-wrapper {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

/* Hide radios visually but keep accessible */
#billing_invoice_type_field .woocommerce-input-wrapper input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

/* Base pill style for labels */
#billing_invoice_type_field .woocommerce-input-wrapper input[type="radio"] + label,
#popup-billing-fields .woocommerce-input-wrapper input[name="popup_billing_invoice_type"] + label {
	display: inline-block;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	color: #111827;
	cursor: pointer;
	font-weight: 500;
	line-height: 1;
	transition: all .15s ease-in-out;
}

/* Hover/focus */
#billing_invoice_type_field .woocommerce-input-wrapper input[type="radio"] + label:hover,
#popup-billing-fields .woocommerce-input-wrapper input[name="popup_billing_invoice_type"] + label:hover {
	border-color: #9ca3af;
	background: #f9fafb;
}
#billing_invoice_type_field .woocommerce-input-wrapper input[type="radio"]:focus + label,
#popup-billing-fields .woocommerce-input-wrapper input[name="popup_billing_invoice_type"]:focus + label {
	box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.2);
}

/* Selected state */
#billing_invoice_type_field .woocommerce-input-wrapper input[type="radio"]:checked + label,
#billing_invoice_type_field .woocommerce-input-wrapper label.radio-selected,
#popup-billing-fields .woocommerce-input-wrapper label.radio-selected {
	background: #007cba;
	color: #fff;
	border-color: #007cba;
}

/* Hide required asterisk next to radio option labels */
#billing_invoice_type_field .woocommerce-input-wrapper label .required,
#billing_nationality_field .woocommerce-input-wrapper label .required,
#popup-billing-fields .woocommerce-input-wrapper label .required {
	display: none !important;
}

/* Radio layout for billing_nationality */
#billing_nationality_field .woocommerce-input-wrapper {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

/* Hide radios visually but keep accessible */
#billing_nationality_field .woocommerce-input-wrapper input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

/* Base pill style for nationality labels */
#billing_nationality_field .woocommerce-input-wrapper input[type="radio"] + label,
#popup-billing-fields .woocommerce-input-wrapper input[name="popup_billing_nationality"] + label {
	display: inline-block;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	color: #111827;
	cursor: pointer;
	font-weight: 500;
	line-height: 1;
	transition: all .15s ease-in-out;
}

/* Hover/focus */
#billing_nationality_field .woocommerce-input-wrapper input[type="radio"] + label:hover,
#popup-billing-fields .woocommerce-input-wrapper input[name="popup_billing_nationality"] + label:hover {
	border-color: #9ca3af;
	background: #f9fafb;
}
#billing_nationality_field .woocommerce-input-wrapper input[type="radio"]:focus + label,
#popup-billing-fields .woocommerce-input-wrapper input[name="popup_billing_nationality"]:focus + label {
	box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.2);
}

/* Selected state */
#billing_nationality_field .woocommerce-input-wrapper input[type="radio"]:checked + label,
#billing_nationality_field .woocommerce-input-wrapper label.radio-selected {
	background: #007cba;
	color: #fff;
	border-color: #007cba;
}

.woocommerce form .form-row select#billing_invoice_type:focus,
.woocommerce form .form-row select#billing_nationality:focus {
	border-color: #007cba;
	outline: none;
	box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

.field-validation-error {
	border: 2px solid #e74c3c !important;
	background-color: #fdf2f2 !important;
}

.validation-error-message {
	color: #e74c3c;
	font-size: 12px;
	margin-top: 5px;
	display: block;
}

.woocommerce form .form-row input[type="text"],
.woocommerce form .form-row input[type="email"],
.woocommerce form .form-row input[type="tel"],
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 12px;
	font-size: 14px;
	transition: border-color 0.3s ease;
}

.woocommerce form .form-row input[type="text"]:focus,
.woocommerce form .form-row input[type="email"]:focus,
.woocommerce form .form-row input[type="tel"]:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
	border-color: #007cba;
	outline: none;
	box-shadow: 0 0 5px rgba(0, 124, 186, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.checkout-field-group {
		padding: 15px;
		margin-bottom: 20px;
	}
	
	.checkout-field-group h3 {
		font-size: 16px;
	}
}

/* Checkout Address Dropdown - Vertical Layout */
.checkout-addresses-vertical {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.address-dropdown-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: visible;
    position: relative;
}

.address-dropdown-header {
    background: linear-gradient(135deg, #538AB5 0%, #487EA8 100%);
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
    position: relative;
}
.address-section-title {
    color: white;
    margin: 0;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.address-section-title i {
    font-size: 18px;
}

.header-change-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-change-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.header-change-btn i {
    font-size: 11px;
}

/* Dropdown Container */
.address-dropdown-container {
    position: relative;
    padding: 20px;
}

/* Selected Address Display */
.selected-address-display {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.selected-address-display:hover {
    border-color: #538AB5;
    box-shadow: 0 4px 12px rgba(83, 138, 181, 0.15);
}

.selected-address-info {
    flex: 1;
}

.selected-address-name {
    font-weight: 600;
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 4px;
}

.selected-address-summary {
    color: #6b7280;
    font-size: 14px;
}

.loading-text {
    color: #9ca3af;
    font-style: italic;
}

/* No Address State Styles */
.no-address-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    text-align: center;
}

.no-address-text {
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
}

/* Unified No Address Card Styles */
.unified-no-address-card {
    width: 100%;
    background: #f8f9fa;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.unified-no-address-card:hover {
    border-color: #538AB5;
    background: #f0f7ff;
}

.no-address-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    text-align: center;
}

/* Checkout General Error Message */
.checkout-general-error {
    background: #ffebee;
    border: 2px solid #f44336;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
}

.checkout-general-error .error-icon {
    font-size: 20px;
    line-height: 1;
}

.checkout-general-error .error-content {
    flex: 1;
    color: #d32f2f;
    font-size: 14px;
    line-height: 1.4;
}

.checkout-general-error .error-content strong {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

/* Validation Error Styles */
.validation-error {
    border: 2px solid #ef4444 !important;
    border-radius: 8px;
    background-color: #fef2f2 !important;
    animation: shake 0.5s ease-in-out;
}

/* Only apply error highlighting to direct child elements when needed */
.validation-error > .error-highlight {
    border: 2px solid #ef4444 !important;
    background-color: #fee2e2 !important;
    border-radius: 6px;
}

.validation-error-message {
    background-color: #ef4444;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideDown 0.3s ease-out;
}

.validation-error-message::before {
    content: "⚠";
    font-size: 16px;
}

/* Address section error highlighting */
.billing-section.validation-error,
.shipping-section.validation-error {
    padding: 16px;
    margin: 8px 0;
}

/* Payment method error highlighting */
.payment-options-section.validation-error {
    padding: 16px;
    margin: 8px 0;
}

/* Shipping method error highlighting */
.shipping-options-section.validation-error {
    padding: 16px;
    margin: 8px 0;
}

/* Delivery point error highlighting */
.delivery-point-section.validation-error {
    padding: 16px;
    margin: 8px 0;
}

/* Terms condition error highlighting */
.terms-condition.validation-error {
    padding: 16px;
    margin: 8px 0;
    border-radius: 8px;
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error state transitions */
.validation-error,
.error-highlight {
    transition: all 0.3s ease;
}

/* Focus states for better accessibility */
.validation-error:focus-within {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .validation-error-message {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .validation-error {
        margin: 4px 0;
    }
}

.no-address-icon {
    width: 60px;
    height: 60px;
    background: #e5f3ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #538AB5;
    font-size: 24px;
}

.no-address-message h3 {
    margin: 0;
    color: #374151;
    font-size: 18px;
    font-weight: 600;
}

.no-address-message p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.btn-add-unified-address {
    background: #538AB5;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-add-unified-address:hover {
    background: #4a7ba7;
    transform: translateY(-1px);
}

.btn-add-unified-address i {
    font-size: 12px;
}

.btn-add-new-address {
    background: #538AB5;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-add-new-address:hover {
    background: #4a7ba7;
    transform: translateY(-1px);
}

.btn-add-new-address i {
    font-size: 12px;
}

/* Dropdown Icon */
.dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 8px;
}

.dropdown-icon svg {
    transition: all 0.2s ease;
}

.selected-address-display:hover .dropdown-icon svg path {
    stroke: #538AB5;
}

/* Dropdown List */
.address-dropdown-list {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: -26px;
}

/* Address Options */
.address-option {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.address-option:last-child {
    border-bottom: none;
}

.address-option:hover {
    background: #f9fafb;
}

.address-option-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.new-address-option {
    background: #f0f7ff;
    border-bottom: 2px solid #538AB5;
}

.new-address-option .address-icon {
    width: 40px;
    height: 40px;
    background: #538AB5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.address-info {
    flex: 1;
}

.address-name {
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 4px;
}

.address-details {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.address-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Payment Options Section */
.payment-options-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: visible;
    position: relative;
    margin-bottom: 32px;
}

.payment-options-header {
    background: linear-gradient(135deg, #538AB5 0%, #487EA8 100%);
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
    position: relative;
}
.payment-section-title {
    color: white;
    margin: 0;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.payment-options-container {
    padding: 20px;
}

.payment-method-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.payment-method-btn {
    flex: 1;
    min-width: 200px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.payment-method-btn:hover {
    border-color: #538AB5;
    box-shadow: 0 4px 12px rgba(83, 138, 181, 0.15);
    transform: translateY(-1px);
}

.payment-method-btn.active {
    border-color: #538AB5;
    background: #f0f6fb;
    box-shadow: 0 4px 12px rgba(83, 138, 181, 0.2);
}

.payment-method-icon {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 18px;
    transition: all 0.3s ease;
}

.payment-method-btn:hover .payment-method-icon,
.payment-method-btn.active .payment-method-icon {
    background: #538AB5;
    color: white;
}

.payment-method-info {
    flex: 1;
}

.payment-method-name {
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 4px;
}

.payment-method-desc {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.payment-method-btn.active .payment-method-name {
    color: #538AB5;
}

/* Ödeme bilgi panelleri */
.payment-method-info-panels {
    margin-top: 16px;
}

.payment-info-panel {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    padding: 16px;
}

/* Kredi kartı promosyon kartı */
.promo-card .promo-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.promo-card .promo-card-media img {
    width: 64px;
    height: 40px;
    object-fit: contain;
}

.promo-card .promo-card-content strong {
    display: block;
    color: #497fa9;
}

.promo-card .promo-card-content .promo-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-card .promo-card-content .promo-card-title svg {
    color: #538AB5;
}

.promo-card .promo-card-content p {
    margin: 4px 0 0 0;
    color: #475569;
    font-size: 14px;
}

/* Havale banka bilgileri */
.payment-info-panel.bank-transfer .bank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.payment-info-panel.bank-transfer .bank-item:last-child {
    border-bottom: none;
}

.payment-info-panel.bank-transfer p {
    margin: 0;
    color: #334155;
}

/* Adres popup'ında posta kodu alanını gizle */
#popup-billing-fields #popup_billing_postcode_field,
#popup-billing-fields #billing_postcode_field {
	display: none !important;
}

/* Responsive Design for Payment Options */
@media (max-width: 768px) {
    .payment-method-buttons {
        flex-direction: column;
    }
    
    .payment-method-btn {
        min-width: auto;
    }
}

.btn-edit-address:hover {
    border-color: #538AB5;
    color: #538AB5;
    background: #f0f7ff;
}

/* Selected Address Table */
.selected-address-table { /* keep for specificity hook */ }

.address-table-wrapper {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.table-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.selected-address-details {
    width: 100%;
    border-collapse: collapse;
}

.selected-address-details td {
    padding: 6px 0;
    border: none;
    vertical-align: top;
}

.selected-address-details .label {
    font-weight: 500;
    color: #64748b;
    width: 120px;
    font-size: 13px;
}

.selected-address-details .value {
    color: #1e293b;
    font-size: 13px;
    padding-left: 12px;
}

/* Address Edit Modal */
.address-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 24px;
}

/* WooCommerce billing fields in popup */
#popup-billing-fields .woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
}

#popup-billing-fields .form-row {
    margin-bottom: 16px;
}

#popup-billing-fields .form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

#popup-billing-fields .form-row input,
#popup-billing-fields .form-row select,
#popup-billing-fields .form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

#popup-billing-fields .form-row input:focus,
#popup-billing-fields .form-row select:focus,
#popup-billing-fields .form-row textarea:focus {
    outline: none;
    border-color: #538AB5;
    box-shadow: 0 0 0 3px rgba(83, 138, 181, 0.1);
}

#popup-billing-fields .form-row-wide {
    width: 100%;
}

#popup-billing-fields .form-row-first,
#popup-billing-fields .form-row-last {
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
    display: block;
}

#popup-billing-fields .form-row-first {
    margin-right: 0;
}

/* Popup billing fields için kırmızı yıldız ekleme - tüm gerekli alanlar için */
#popup-billing-fields .form-row.validate-required > label::after,
#popup-billing-fields .form-row.woocommerce-validated > label::after,
#popup-billing-fields .form-row[class*="validate-required"] > label::after {
    content: " *";
    color: #dc2626;
    font-weight: bold;
}

/* Özel alanlar için de asterisk ekle */
#popup-billing-fields #billing_first_name_field > label::after,
#popup-billing-fields #billing_last_name_field > label::after,
#popup-billing-fields #billing_email_field > label::after,
#popup-billing-fields #billing_phone_field > label::after,
#popup-billing-fields #billing_address_1_field > label::after,
#popup-billing-fields #billing_country_field > label::after,
#popup-billing-fields #billing_state_field > label::after,
#popup-billing-fields #billing_city_field > label::after,
#popup-billing-fields #billing_mahalle_field > label::after,
#popup-billing-fields #billing_postcode_field > label::after,
#popup-billing-fields #billing_invoice_type_field > label::after,
#popup-billing-fields #billing_nationality_field > label::after {
    content: " *";
    color: #dc2626;
    font-weight: bold;
}

/* Radio button seçeneklerindeki asteriskleri gizle - sadece ana label'da göster */
#popup-billing-fields .woocommerce-input-wrapper label .required,
#popup-billing-fields .woocommerce-input-wrapper label::after {
    display: none !important;
}

/* Ana field label'ları için asterisk göster (radio button grupları için) */
#popup-billing-fields #billing_invoice_type_field > label::after,
#popup-billing-fields #billing_nationality_field > label::after {
    display: inline !important;
    content: " *";
    color: #dc2626;
    font-weight: bold;
}

/* Mevcut required span'ları gizle */
#popup-billing-fields .validate-required .required,
#popup-billing-fields .required {
    display: none;
}

#popup-billing-fields .woocommerce-input-wrapper {
    position: relative;
}

#popup-billing-fields .select2-container {
    width: 100% !important;
}

#popup-billing-fields .select2-selection {
    height: 42px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
}

#popup-billing-fields .select2-selection__rendered {
    line-height: 40px !important;
    padding-left: 12px !important;
}

#popup-billing-fields .select2-selection__arrow {
    height: 40px !important;
}

.form-row {
    margin-bottom: 16px;
}

.form-row.half {
    display: flex;
    gap: 12px;
}

.form-row.half .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #538AB5;
    box-shadow: 0 0 0 3px rgba(83, 138, 181, 0.1);
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
}

.btn-cancel,
.btn-save {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.btn-cancel:hover {
    background: #e5e7eb;
}

.btn-save {
    background: #538AB5;
    color: white;
}

.btn-save:hover {
    background: #487EA8;
}

.btn-save:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

/* Modal Open Body Style */
body.modal-open {
    overflow: hidden;
}


/* Responsive Design */
@media (max-width: 768px) {
    .checkout-addresses-vertical {
        gap: 16px;
    }
    
    .address-dropdown-container {
        padding: 16px;
    }
    
    .selected-address-display {
        padding: 12px;
        min-height: 50px;
    }
    
    .address-dropdown-list {
        left: 16px;
        right: 16px;
    }
    
    .selected-address-table {
        padding: 0 16px 16px;
    }
    
    .address-table-wrapper {
        padding: 12px;
    }
    
    .selected-address-details .label {
        width: 100px;
        font-size: 12px;
    }
    
    .selected-address-details .value {
        font-size: 12px;
    }
    
    .modal-content {
        margin: 10px;
        max-width: none;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }
    .checkout-addresses-horizontal {
        flex-direction: column;
    }
    #popup-billing-fields .form-row-first, #popup-billing-fields .form-row-last {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.address-info {
    flex: 1;
}

.address-info .address-name {
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 4px;
}

.address-info .address-details {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.new-address-option .address-name {
    color: #ff6b35;
}

.address-actions {
    display: flex;
    align-items: center;
}


.btn-edit-address:hover {
    border-color: #ff6b35;
    color: #ff6b35;
    background: #fff8f6;
}

/* Address Table */
.selected-address-table { /* keep for specificity hook */ }

.address-table table {
    width: 100%;
    border-collapse: collapse;
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
}

.address-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.address-table tr:last-child td {
    border-bottom: none;
}

.address-table td:first-child {
    background: #f3f4f6;
    font-weight: 500;
    color: #374151;
    width: 30%;
}

.address-table td:last-child {
    color: #1f2937;
}

/* Address Edit Modal */
.address-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 24px;
}
.form-group {
    flex: 1;
}

.form-group.half {
    flex: 0 0 calc(50% - 8px);
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-cancel,
.btn-save {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-cancel:hover {
    background: #e5e7eb;
    color: #374151;
}

.btn-save {
    background: #ff6b35;
    color: white;
}

.btn-save:hover {
    background: #e55a2b;
}

/* Responsive Design */
@media (max-width: 767px) {
    .address-section-title {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .selected-address-display {
        padding: 12px;
        min-height: 50px;
    }
    
    .selected-address-table {
        padding: 0 16px 16px;
    }
    
    .address-dropdown-list {
        left: 16px;
        right: 16px;
    }
    
    .address-option {
        padding: 12px;
    }
    
    .form-group.half {
        flex: 1;
    }
    
    .modal-content {
        margin: 10px;
        max-width: none;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px 20px;
    }
}

/* Checkout Layout - Two Column Design */
.checkout-layout-wrapper {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	max-width: 1200px;
	margin: 0 auto;
}

.checkout-form-section {
	flex: 2;
	min-width: 0;
}

.checkout-order-summary {
	flex: 1;
	min-width: 300px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 25px;
	position: sticky;
	top: 20px;
}

.checkout-order-summary h3#order_review_heading {
	margin: 0 0 20px 0;
	font-size: 20px;
	font-weight: 600;
	color: #333;
	border-bottom: 2px solid #007cba;
	padding-bottom: 10px;
}

.checkout-order-summary #order_review {
	background: transparent;
	border: none;
	padding: 0;
}

/* Responsive Design for Checkout Layout */
@media (max-width: 1024px) {
	.checkout-layout-wrapper {
		gap: 30px;
	}
	
	.checkout-order-summary {
		min-width: 280px;
	}
}

@media (max-width: 768px) {
	.checkout-layout-wrapper {
		flex-direction: column;
		gap: 20px;
	}
	
	.checkout-form-section,
	.checkout-order-summary {
		flex: none;
		width: 100%;
	}
	
	.checkout-order-summary {
		position: static;
		min-width: auto;
	}
}

/* Existing col2-set adjustments for new layout */
.checkout-form-section .col2-set {
	width: 100%;
}

.checkout-form-section .col2-set .col-1,
.checkout-form-section .col2-set .col-2 {
	width: 100%;
	float: none;
}
/* Kargo Seçenekleri Stilleri */
.shipping-options-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.shipping-options-header {
    background: linear-gradient(135deg, #538AB5 0%, #487EA8 100%);
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.shipping-section-title {
    color: white;
    margin: 0;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.shipping-options-container {
    padding: 20px;
}

.shipping-methods-wrapper {
    display: flex;
    gap: 15px;
}

.shipping-method-item {
	width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.shipping-method-item:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0,124,186,0.1);
}

.shipping-method-item.selected {
    border-color: #007cba;
    background-color: #f0f8ff;
}


.shipping-method-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.shipping-method-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.shipping-method-icon {
    width: 60px;
    height: 40px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shipping-method-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.shipping-method-info {
    flex: 1;
}

.shipping-method-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.shipping-method-price {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Teslimat Noktası Seçimi - Shipping Method Item Stilini Kullan */
.delivery-point-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.delivery-point-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.delivery-point-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Teslimat Noktası Item'ları için Shipping Method Item Stilini Kullan */
.delivery-point-item.shipping-method-item {
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.delivery-point-item.shipping-method-item:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0,124,186,0.1);
}

.delivery-point-item.shipping-method-item input[type="radio"]:checked ~ .shipping-method-label {
    border: none;
    background: none;
    padding: 0;
}

.delivery-point-item.shipping-method-item input[type="radio"]:checked {
    opacity: 0;
}

.delivery-point-item.shipping-method-item input[type="radio"]:checked ~ .shipping-method-label,
.delivery-point-item.shipping-method-item.selected {
    border-color: #007cba;
    background-color: #f0f8ff;
}

/* Radio Button Gizleme */
.delivery-point-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

/* Label Stilleri - Shipping Method Label Stilini Kullan */
.delivery-point-label.shipping-method-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    border: none;
    background: none;
    padding: 0;
    border-radius: 0;
}

/* Icon Stilleri */
.delivery-point-icon.shipping-method-icon {
    width: 60px;
    height: 40px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-point-icon.shipping-method-icon i {
    font-size: 24px;
    color: #007cba;
}

/* Info Stilleri */
.delivery-point-info.shipping-method-info {
    flex: 1;
}

.delivery-point-name.shipping-method-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.delivery-point-details.shipping-method-desc {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    line-height: 1.5;
}

.delivery-point-details.shipping-method-desc h5 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.delivery-point-details.shipping-method-desc p {
    margin: 4px 0;
}

.delivery-point-details.shipping-method-desc strong {
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shipping-method-label {
        flex-direction: column;
        text-align: center;
    }
    
    .shipping-method-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .shipping-options-container {
        padding: 15px;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delivery-point-section {
    animation: fadeIn 0.3s ease;
}

.point-info {
    animation: fadeIn 0.3s ease;
}

/* Loading State */
.shipping-method-price.loading {
    color: #999;
    font-style: italic;
}

.shipping-method-price.loading::after {
    content: "...";
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(0,0,0,0);
        text-shadow:
            .25em 0 0 rgba(0,0,0,0),
            .5em 0 0 rgba(0,0,0,0);
    }
    40% {
        color: #999;
        text-shadow:
            .25em 0 0 rgba(0,0,0,0),
            .5em 0 0 rgba(0,0,0,0);
    }
    60% {
        text-shadow:
            .25em 0 0 #999,
            .5em 0 0 rgba(0,0,0,0);
    }
    80%, 100% {
        text-shadow:
            .25em 0 0 #999,
            .5em 0 0 #999;
    }
}
.checkout-addresses-horizontal {
	width: 100%;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.selected-addresses-info-horizontal {
	width: 100%;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.address-half-width {
    flex: 1;
    width: 50%;
}

.payment-full-width,
.shipping-full-width {
    width: 100%;
}

.delivery-point-details.shipping-method-desc td:first-child {
    width: 130px;
}

.terms .popup-btn {
    color: #538ab5;
    text-decoration: underline;
}

/* Account page: unified address cards */
.account-edit-address-wrapper {
	max-width: 1200px;
	margin: 0 auto;
}

.account-addresses-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 16px 0;
}

.account-addresses-header h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #1f2937;
}

.address-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

@media (max-width: 1200px) {
	.address-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.address-cards-grid { grid-template-columns: 1fr; }
}

.address-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	padding: 16px;
	transition: all .2s ease;
}

.address-card:hover {
	border-color: #538AB5;
	box-shadow: 0 6px 16px rgba(83,138,181,0.15);
}

.address-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.address-card-header .address-name {
	font-weight: 600;
	color: #111827;
}

.address-card .address-line {
	font-size: 14px;
	color: #4b5563;
	line-height: 1.5;
}

.address-card .address-actions {
	display: flex;
	gap: 8px;
}

.address-card .btn-edit-address,
.address-card .btn-delete-address {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	color: #374151;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 13px;
	cursor: pointer;
	transition: all .15s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.address-card .btn-edit-address:hover,
.address-card .btn-delete-address:hover {
	border-color: #9ca3af;
	background: #eef2f7;
}

.address-card .btn-delete-address {
	background: #fff5f5;
	border-color: #fecaca;
	color: #b91c1c;
}

.address-card .btn-delete-address:hover {
	background: #fee2e2;
	border-color: #fca5a5;
}

/* Searchable Dropdown Styles */
/* Searchable Dropdown Styles - Modern Design */
.searchable-dropdown {
    position: relative;
    width: 100%;
}
.searchable-dropdown.has-value.is-disabled {
    cursor: no-drop;
    opacity: 0.5;
}
.searchable-dropdown-input {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 400;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    line-height: 1.5;
}

.searchable-dropdown-input:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.searchable-dropdown-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12), 0 2px 12px rgba(0, 0, 0, 0.1);
    background-color: #fefefe;
}

.searchable-dropdown-input.placeholder {
    color: #94a3b8;
    font-style: italic;
}

.searchable-dropdown-input:not(.placeholder) {
    color: #1e293b;
    font-weight: 500;
}

.searchable-dropdown-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.searchable-dropdown-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #538ab5;
    border-bottom: 2px solid #538ab5;
    transform: translate(-50%, -70%) rotate(45deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.searchable-dropdown:hover .searchable-dropdown-arrow::before {
    border-color: #4a7ba7;
}

.searchable-dropdown.open .searchable-dropdown-arrow::before {
    transform: translate(-50%, -30%) rotate(-135deg);
    border-color: #538ab5;
}

.searchable-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    max-height: 240px;
	text-transform: uppercase;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(8px);
    animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.searchable-dropdown-options {
    max-height: 240px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.searchable-dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.searchable-dropdown-options::-webkit-scrollbar-track {
    background: transparent;
}

.searchable-dropdown-options::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

.searchable-dropdown-options::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: #f8fafc;
    color: #1e293b;
    font-weight: 500;
}

.dropdown-item.active {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    border-left: 3px solid #3b82f6;
}

.dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.dropdown-item:first-child {
    border-radius: 10px 10px 0 0;
}

.dropdown-item.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background-color: #f8fafc;
}

.dropdown-item.loading {
    text-align: center;
    color: #64748b;
    font-style: italic;
    position: relative;
    padding: 16px;
}

.dropdown-item.loading .loading-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dropdown-item.loading .loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-item.loading .loading-spinner svg {
    width: 16px;
    height: 16px;
}

.dropdown-item.loading .loading-text {
    font-size: 14px;
    font-weight: 400;
}

.dropdown-item.loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

/* Avoid duplicate spinner: hide pseudo spinner inside searchable dropdown; keep inline SVG + text */
.searchable-dropdown .dropdown-item.loading::before {
    content: none;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Input loading spinner styles */
.input-loading-spinner {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.input-loading-spinner svg {
    width: 16px;
    height: 16px;
}

.dropdown-item.no-results {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    background-color: #fafafa;
}

.dropdown-item.error {
    text-align: center;
    color: #dc2626;
    background-color: #fef2f2;
    border-color: #fecaca;
}

/* WooCommerce form integration */
.woocommerce-billing-fields .searchable-dropdown,
.woocommerce-shipping-fields .searchable-dropdown,
.woocommerce-additional-fields .searchable-dropdown {
    margin-bottom: 0;
}

.form-row .searchable-dropdown {
    width: 100%;
}

/* Hide original select elements when converted to searchable dropdown */
.searchable-dropdown + select {
    display: none !important;
}

/* Focus states for better accessibility */
.searchable-dropdown-input:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Enhanced states */
.searchable-dropdown.has-value .searchable-dropdown-input {
    background-color: #f8fafc;
    border-color: #10b981;
	text-transform: uppercase;
}

.searchable-dropdown.has-value .searchable-dropdown-arrow {
    border-top-color: #ccc;
}

/* Validation error styling for popup fields */
#popup-billing-fields input.error,
#popup-billing-fields select.error {
    border-color: #dc2626 !important;
}

#popup-billing-fields .field-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

/* Radio grup hata vurgusu: popup içindeki seçenek etiketlerini kırmızı çerçeve ile göster */
#popup-billing-fields .woocommerce-input-wrapper.radio-group-error label {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 1px #dc2626 !important;
}

.save-button-error {
    color: #dc2626;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
}

/* Improved save button design */
.btn-save-new {
    background: linear-gradient(135deg, #538ab5 0%, #4a7ba7 100%) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(83, 138, 181, 0.2) !important;
    min-width: 120px !important;
}

.btn-save-new:hover {
    background: linear-gradient(135deg, #4a7ba7 0%, #3e6b94 100%) !important;
    box-shadow: 0 4px 8px rgba(83, 138, 181, 0.3) !important;
    transform: translateY(-1px) !important;
}

.btn-save-new:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(83, 138, 181, 0.2) !important;
}

.btn-save-new:disabled {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Modal footer improvements */
.address-modal .modal-footer {
    padding: 20px !important;
    border-top: 1px solid #e5e7eb !important;
    background-color: #f9fafb !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    align-items: center !important;
}

.address-modal .btn-cancel {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-width: 120px !important;
}

.address-modal .btn-cancel:hover {
    background: #e5e7eb !important;
    border-color: #9ca3af !important;
}
/* Checkout seçili adres kartı başlık hizalama ve edit butonu */
.address-table-wrapper .table-header {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: space-between;
}
.address-table-wrapper .table-header .table-title {
	margin: 0;
}
.address-table-wrapper .table-header .btn-edit-address {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	color: #007cba; /* mavi text */
	cursor: pointer;
	font: inherit;
	font-size: 12px;
}
.woocommerce-NoticeGroup-checkout {
    position: fixed;
    z-index: 9999;
    top: 50px;
    right: 20px;
}
/* Address Sync Modal footer fix */
#address-sync-modal .modal-footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	flex-wrap: wrap;
}
#address-sync-modal .modal-footer .btn-cancel,
#address-sync-modal .modal-footer .btn-confirm {
	display: inline-block;
	width: auto;
	min-width: 90px;
	padding: 12px 24px;
	border-radius: 4px;
	border: 1px solid #d1d5db;
	background: #ffffff;
	color: #333333;
	cursor: pointer;
}
#address-sync-modal .modal-footer .btn-confirm {
	background: #007cba;
	border-color: #007cba;
	color: #ffffff;
}
#address-sync-modal .modal-footer .btn-cancel {
	background: #f9fafb;
}
@media (max-width: 992px) {
    form.woocommerce-checkout {
        gap: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .searchable-dropdown-input {
        padding: 12px 40px 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .searchable-dropdown-menu {
        max-height: 200px;
        border-radius: 8px;
    }
    
    .searchable-dropdown-options {
        max-height: 200px;
    }
    
    .dropdown-item {
        padding: 14px 16px;
        font-size: 15px;
    }
    .selected-addresses-info-horizontal {
        flex-direction: column;
    }
    .address-half-width {
        flex: 1;
        width: 100%;
        padding: 0;
    }
    .sozlesme-box-wrapper {
        height: 200px;
        padding: 15px;
        max-width: calc(100vw - 64px);
    }
}

@media (max-width: 480px) {
    .searchable-dropdown-menu {
        max-height: 180px;
    }
    
    .searchable-dropdown-options {
        max-height: 180px;
    }
}
