/* ===== CART / ORDER SUMMARY POLISH ===== */

/* Main cards */
.wc-block-cart__main,
.wc-block-components-sidebar-layout.wc-block-checkout,
.wp-block-woocommerce-cart-order-summary-block {
    background: #fff;
    border: 1px solid #ece7f6;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(60,40,90,.06);
    padding: 1rem 2rem;
}

.wc-block-components-sidebar-layout.wc-block-checkout.is-large {
/* max-width: 1140px; */
}
.wc-block-components-sidebar-layout.wc-block-checkout {
    padding: 2rem 3rem;
}

@media (max-width: 992px) {
	.wc-block-cart__main,
	.wc-block-components-sidebar-layout.wc-block-checkout,
	.wp-block-woocommerce-cart-order-summary-block,
	.wp-block-woocommerce-cart-items-block {
		padding: 1rem 1.5rem !important;
	}
	.wc-block-components-sidebar-layout.wc-block-cart.wp-block-woocommerce-filled-cart-block {
		gap: 15px;
	}
	.wc-block-checkout__actions.wp-block-woocommerce-checkout-actions-block > div:first-child {
		display: none;
	}
	.wp-block-woocommerce-checkout-totals-block .wc-block-components-checkout-order-summary__title .wc-block-formatted-money-amount.wc-block-components-formatted-money-amount {
		color: var(--purple);
		font-weight: bold;
		font-size: 18px;
	}
}
@media (max-width: 699px) {
	.wc-block-cart__main,
	.wc-block-components-sidebar-layout.wc-block-checkout,
	.wp-block-woocommerce-cart-order-summary-block,
	.wp-block-woocommerce-cart-items-block {
		padding: 1rem !important;
	}
}
/* Totals card */
.wp-block-woocommerce-cart-order-summary-block {
    padding: 28px;
}

.wc-block-cart__totals-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #4f3a7a;
    margin-bottom: 24px;
}

/* Totals rows */
.wc-block-components-totals-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0ebf8;
}
.wc-block-components-totals-wrapper:last-child .wc-block-components-totals-item {
    border-bottom: none;
}

.wc-block-components-totals-item__label {
    color: #666;
    font-size: .95rem;
}

.wc-block-components-totals-item__value {
    font-weight: 600;
    color: #333;
}

.wc-block-components-totals-wrapper {
    border-top: 2px solid #ece7f6;
}
.wc-block-components-totals-footer-item {
    margin-top: 16px;
    padding-top: 18px;
    border-bottom: 0 !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
}

.wc-block-components-totals-footer-item-tax-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #7a4ccf;
}

/* Product images */
.wc-block-cart-item__image img {
    border-radius: 12px;
}

/* Product titles */
.wc-block-components-product-name {
    color: #5e3c99;
    font-weight: 700;
}

/* Quantity selector */
.wc-block-components-quantity-selector {
    border-radius: 10px;
}

/* Save badge */
.wc-block-components-sale-badge {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

/* Buttons */
.wc-block-components-button.wp-element-button,
.wc-block-cart__submit-button {
    background: #7a4ccf !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700;
    min-height: 54px;
    transition: .2s ease;
}

.wc-block-components-button.wp-element-button:hover,
.wc-block-cart__submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(122,76,207,.25);
}

/* Remove ugly dark borders Woo adds */
.wc-block-components-radio-control__option,
.wc-block-components-quantity-selector,
.wc-block-cart-item {
    border-color: #ece7f6;
}

/* Cart spacing */
.wc-block-cart-item {
    padding-top: 18px;
    padding-bottom: 18px;
}
.wc-block-components-sale-badge {
    font-size: 0;
}

.wc-block-components-sale-badge::before {
    content: "დაზოგე ";
    font-size: 12px;
    font-weight: 700;
}
@media (max-width: 1280px) {
	.wc-block-components-sale-badge::before {
    	content: "-";
	}
}
@media (max-width: 992px) {
	.wc-block-components-sale-badge::before {
    	content: "დაზოგე ";
	}
}
.wc-block-components-sale-badge .wc-block-formatted-money-amount {
    font-size: 12px;
}


/* CHECKOUT */


/* ===== CHECKOUT INPUT POLISH ===== */

.wc-block-components-text-input input,
.wc-blocks-components-select__select,
.wc-block-components-textarea {
    height: 54px;
    border: 1px solid #e6dff2 !important;
    border-radius: 12px !important;
    background: #fff;
    font-size: 15px;
    transition: all .2s ease;
    box-shadow: none !important;
}

.wc-block-components-textarea {
    min-height: 120px;
    padding-top: 16px;
}

/* floating labels */
.wc-block-components-text-input label,
.wc-blocks-components-select__label {
    color: #7a7190;
    font-size: 13px;
    font-weight: 500;
}

/* hover */
.wc-block-components-text-input input:hover,
.wc-blocks-components-select__select:hover,
.wc-block-components-textarea:hover {
    border-color: #cdbce9 !important;
}

/* focus */
.wc-block-components-text-input input:focus,
.wc-blocks-components-select__select:focus,
.wc-block-components-textarea:focus {
    border-color: #7a4ccf !important;
    box-shadow: 0 0 0 4px rgba(122,76,207,.12) !important;
    outline: none;
}

/* focus label */
.wc-block-components-text-input.is-active input:focus-visible + label,
.wc-block-components-text-input input:focus-visible + label,
.wc-blocks-components-select__select:focus-visible + label,
.wc-block-components-textarea:focus-visible + label {
    border-color: none !important;
    box-shadow: none !important;
    outline: none;
}
/* address sections */
.wc-block-checkout__contact-fields,
.wc-block-checkout__shipping-fields,
.wc-block-checkout__shipping-option,
.wc-block-checkout__payment-method {
    background: #fff;
    border: 1px solid #ece7f6;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
}

/* section headings */
.wc-block-components-checkout-step__title {
    color: #4f3a7a;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 18px;
}

/* radio cards */
.wc-block-components-radio-control__option {
    border: 1px solid #ece7f6 !important;
    border-radius: 4px !important;
    transition: all .2s ease;
}

.wc-block-components-radio-control__option-checked {
    border-color: #7a4ccf !important;
    background: rgba(122,76,207,.04);
}

/* terms box */
.wc-block-checkout__terms {
    background: #faf8fd;
    border: 1px solid #ece7f6;
    border-radius: 12px;
    padding: 14px 18px;
}

/* place order button */
.wc-block-components-checkout-place-order-button {
    border-radius: 12px !important;
    min-height: 56px;
    font-size: 16px;
    font-weight: 700;
}

/* make country dropdown arrow less ugly */
.wc-blocks-components-select__expand {
    opacity: .55;
}

/* checkbox styling */
.wc-block-components-checkbox__input {
    border-color: #cdbce9 !important;
}

.wc-block-components-checkbox__input:checked {
    background: #7a4ccf !important;
    border-color: #7a4ccf !important;
}
/* hide country selector */
.wc-block-components-address-form__country {
	display: none;
}
/*  */
.wc-block-components-address-form__address_2 label {
/* 	color: transparent !important;
	position: absolute !important; */
    margin-top: 3px !important;
	font-size: 0 !important;
}
.wc-block-components-address-form__address_2 label::after {
	content: "სახლი, ბინა, სართული და ა.შ.";
	font-size: 16px;
/* 	color: unset; */
}

/* highlight terms */
.wc-block-checkout__terms.wc-block-checkout__terms--with-separator.wp-block-woocommerce-checkout-terms-block {
	padding: 14px 18px;
}
.wc-block-checkout__terms.wc-block-checkout__terms--with-separator.wp-block-woocommerce-checkout-terms-block a {
	color: #7a4bcf;
	font-weight: semibold;
}
.wp-block-woocommerce-checkout-terms-block:has(.wc-block-components-checkbox.has-error) {
    border: 1px solid var(--red);
    border-radius: 12px;
    background: var(--red-light);
}
/* ===== CHECKBOXES & RADIOS ===== */

/* Checkbox container */
.wc-block-components-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Checkbox box */
.wc-block-components-checkbox__input {
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #cdbce9 !important;
    border-radius: 6px !important;
    background: #fff !important;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    cursor: pointer;
}
.wc-block-components-checkbox__input::before {
	display: none !important;
}
/* Checked state */
.wc-block-components-checkbox__input:checked {
    background: #7a4ccf !important;
    border-color: #7a4ccf !important;
}

/* White checkmark */
.wc-block-components-checkbox__input:checked::after {
    content: "";
    position: relative;
    top: -1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Hide Woo's SVG checkmark */
.wc-block-components-checkbox__mark {
    display: none !important;
}

/* Radio buttons */
.wc-block-components-radio-control__input {
    accent-color: #7a4ccf;
}
/* Radio buttons */
.wc-block-components-radio-control__input:checked {
    border-color: #7a4ccf !important;
}
.wc-block-components-radio-control__input:checked::before {
    background: #7a4ccf !important;
}


/* Selected radio card */
.wc-block-components-radio-control__option:checked {
    background: rgba(122,76,207,.05) !important;
    border-color: #7a4ccf !important;
	
}

/* Remove ugly black outline Woo adds */
.wc-block-components-radio-control__option,
.wc-block-components-radio-control__option:focus,
.wc-block-components-radio-control__option:focus-within {
    box-shadow: none !important;
}
/* ===== FIX RADIOS WITHOUT BREAKING WOO ===== */

.wc-block-components-radio-control__input {
    accent-color: #7a4ccf !important;
    transform: scale(1.15);
}

/* Selected shipping/payment card */
.wc-block-components-radio-control__option-checked {
    background: #faf8fd !important;
    border-color: #7a4ccf !important;
}

/* Softer hover */
.wc-block-components-radio-control__option:hover {
    background: #fcfbfe;
}

/* Payment description */
.wc-block-components-radio-control-accordion-content {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    padding-top: 10px;
}

/* Remove ugly black focus border */
.wc-block-components-radio-control__option:focus,
.wc-block-components-radio-control__option:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

/* selected shipping/payment option */
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
    box-shadow: none !important;
    border: 1px solid #e6dff2 !important;
    border-radius: 4px;
}

/* description */
.wc-block-components-product-metadata__description {
	display: none;
}
/* Replace "Estimated total" with Georgian */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 0;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label::before {
    content: "მთლიანი ჯამი";
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
}
.wc-block-checkout__create-account .wc-block-components-checkbox__label,
.wc-block-checkout__guest-checkout-notice {
	font-size: 0 !important;
    padding-top: 4px;
}
.wc-block-checkout__guest-checkout-notice::before {
    content: "გააფორმე შეკვეთა \"სტუმრის\" რეჟიმში";
    font-size: 13px;
}
.wc-block-checkout__create-account .wc-block-components-checkbox__label::after {
    content: "ან შექმენი ანგარიში";
    font-size: 13px;
	margin-top: 5px;
}

/* კუპონები */
.wc-block-components-totals-coupon__form {
	gap: 0 !important;
}
.wc-block-components-totals-coupon__form input {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    text-transform: uppercase;
}
.wc-block-components-button.wp-element-button.wc-block-components-totals-coupon__button {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
/* 	font-size: 0; */
}
/* .wc-block-components-button.wp-element-button.wc-block-components-totals-coupon__button::after {
	content: "გააქტიურება";
	font-size: 14px;
} */
.wc-block-components-totals-coupon .wc-block-components-panel__button,
.wp-block-woocommerce-checkout-order-summary-coupon-form-block .wc-block-components-panel__button {
	font-size: 0;
}
.wc-block-components-totals-coupon .wc-block-components-panel__button::before,
.wp-block-woocommerce-checkout-order-summary-coupon-form-block .wc-block-components-panel__button::before {
	content: "კუპონის გამოყენება";
	font-size: 14px;
}
.wc-block-components-totals-discount__coupon-list-item.wc-block-components-chip {
	background: var(--purple);
	color: #fff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 500;
}
.wc-block-components-totals-discount__coupon-list-item.wc-block-components-chip button {
	background: var(--purple);
	color: #fff;
	fill: #fff;
	width: unset;
	height: unset;
}
.wc-block-components-totals-discount__coupon-list-item.wc-block-components-chip button:hover {
	opacity: 0.6;
}
.wc-block-components-totals-discount__coupon-list-item.wc-block-components-chip button svg {
	fill: #fff;
    width: 20px;
    height: 20px;
    margin-left: -4px;
}
.wc-block-components-totals-shipping .wc-block-components-totals-item__label {
	font-size: 0;
}
.wc-block-components-totals-shipping .wc-block-components-totals-item__label::after {
	content: "მიწოდება";
	font-size: 14px;
}

/* Show free shipping when available */
.wc-block-components-radio-control:has(
    input[value^="free_shipping"]
)
.wc-block-components-radio-control__option:has(
    input[value^="flat_rate"]
) {
    display: none;
}