/**
 * Tunisia COD Theme - COD Form V2 Styles
 * Matches the Tailwind-based modern template design
 * Version: 2.1
 */

/* ===========================================
   CSS VARIABLES
   =========================================== */
:root {
    --cod-primary: var(--primary-color, #00b894);
    --cod-primary-light: var(--primary-color, #00b894)1a;
    /* 10% opacity */
    --cod-text-dark: #010101;
    --cod-text-gray: #778399;
    --cod-text-600: #4b5563;
    --cod-border: #E2E2E2;
    --cod-bg-gray: #f9fafb;
    --cod-radius: 14px;
    --cod-radius-lg: 16px;
}

/* ===========================================
   FORM CONTAINER
   =========================================== */
#codplugin-checkout {
    background: #fff;
    border: 1px solid var(--cod-border);
    border-radius: var(--cod-radius-lg);
    box-shadow: 0px 30px 64px 0px rgba(102, 127, 168, 0.07);
    padding: 16px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    #codplugin-checkout {
        padding: 20px;
    }
}

/* ===========================================
   SECTION HEADERS (Form Title & Payment Title)
   =========================================== */
.cod-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    padding: 16px 24px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .cod-section-header {
        border-radius: 14px;
        padding: 20px 24px;
        margin-bottom: 24px;
    }
}

.cod-section-header .cod-section-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .cod-section-header .cod-section-icon {
        width: 24px;
        height: 24px;
    }
}

.cod-section-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .cod-section-header h3 {
        font-size: 24px;
    }
}

.cod-section-header h3 .cod-text-dark {
    color: #111827;
}

.cod-section-header h3 .cod-text-primary {
    color: var(--cod-primary);
}

/* ===========================================
   FORM BODY
   =========================================== */
.cod-form-body {
    padding: 0;
}

/* ===========================================
   QUANTITY SECTION
   =========================================== */
.cod-quantity-section {
    margin: 16px 0;
}

.cod-quantity-section .cod-quantity-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.cod-quantity-controls {
    display: flex;
    align-items: center;
}

.cod-quantity-controls .cod-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: var(--cod-bg-gray);
    border: 1px solid var(--cod-border);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.cod-quantity-controls .cod-qty-btn:first-child {
    margin-right: 8px;
}

.cod-quantity-controls .cod-qty-btn:last-child {
    margin-left: 8px;
}

.cod-quantity-controls .cod-qty-btn:hover {
    background: #f3f4f6;
}

.cod-quantity-controls .cod-qty-btn:active {
    background: #e5e7eb;
}

.cod-quantity-controls .cod-qty-btn svg {
    width: 16px;
    height: 16px;
    color: #111827;
}

.cod-quantity-controls .cod-qty-value {
    width: 24px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    margin: 0;
    align-self: center;
}

/* ===========================================
   FORM INPUTS - Rounded with border
   =========================================== */
#codplugin_woo_single_form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cod-input-group {
    position: relative;
    margin-top: 12px;
}

.cod-input-group .cod-input-icon {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding-right: 12px;
    pointer-events: none;
}

.cod-input-group .cod-input-icon svg {
    width: 20px;
    height: 20px;
    color: var(--cod-text-gray);
}

#codplugin_woo_single_form input[type="text"],
#codplugin_woo_single_form input[type="tel"],
#codplugin_woo_single_form input[type="email"],
#codplugin-checkout input[type="text"],
#codplugin-checkout input[type="tel"],
#codplugin-checkout input[type="email"],
#codplugin_state,
#codplugin_city,
#codplugin-checkout select {
    display: block;
    width: 100%;
    padding: 14px 12px;
    padding-right: 44px;
    border: 1px solid var(--cod-border);
    border-radius: var(--cod-radius);
    background: #fff;
    font-size: 14px;
    color: var(--cod-text-dark);
    outline: none;
    transition: border-color 0.2s;
}

@media (min-width: 768px) {

    #codplugin_woo_single_form input[type="text"],
    #codplugin_woo_single_form input[type="tel"],
    #codplugin_woo_single_form input[type="email"],
    #codplugin-checkout input[type="text"],
    #codplugin-checkout input[type="tel"],
    #codplugin-checkout input[type="email"],
    #codplugin_state,
    #codplugin_city,
    #codplugin-checkout select {
        padding: 16px 12px;
        padding-right: 44px;
    }
}

#codplugin_woo_single_form input:focus,
#codplugin-checkout input:focus,
#codplugin_state:focus,
#codplugin_city:focus {
    border-color: var(--cod-primary);
    box-shadow: none;
}

#codplugin_woo_single_form input::placeholder,
#codplugin-checkout input::placeholder,
#codplugin_state option:disabled,
textarea::placeholder {
    color: var(--cod-text-gray);
}

/* Textarea for address */
.cod-input-group textarea {
    display: block;
    width: 100%;
    padding: 14px 12px;
    border: 1px solid var(--cod-border);
    border-radius: var(--cod-radius);
    background: #fff;
    font-size: 14px;
    color: var(--cod-text-dark);
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
    min-height: 100px;
}

.cod-input-group textarea:focus {
    border-color: var(--cod-primary);
}

/* ===========================================
   SHIPPING SECTION
   =========================================== */
.cod-shipping-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
    font-size: 16px;
}

.cod-shipping-label {
    color: var(--cod-text-600);
}

.cod-shipping-value {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--cod-text-dark);
}

.cod-shipping-free {
    color: var(--cod-primary);
}

#shipping-methods {
    margin-top: 8px;
}

/* ===========================================
   COUPON SECTION
   =========================================== */
.cod-coupon-section {
    margin: 8px 0;
}

.cod-coupon-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cod-coupon-toggle .cod-coupon-text {
    display: flex;
    align-items: center;
    color: var(--cod-text-600);
    font-size: 14px;
}

.cod-coupon-toggle .cod-coupon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cod-primary);
    background: #fff;
    border: 1px solid var(--cod-primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .cod-coupon-toggle .cod-coupon-btn {
        border-radius: 16px;
    }
}

.cod-coupon-toggle .cod-coupon-btn:hover {
    background: var(--cod-bg-gray);
}

.cod-coupon-toggle .cod-coupon-btn:active {
    background: #f3f4f6;
}

.cod-coupon-input {
    display: none;
    margin-top: 12px;
    gap: 8px;
}

.cod-coupon-input.active {
    display: flex;
}

.cod-coupon-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--cod-border);
    border-radius: var(--cod-radius);
    font-size: 14px;
}

.cod-coupon-input button {
    padding: 12px 20px;
    background: var(--cod-primary);
    color: #fff;
    border: none;
    border-radius: var(--cod-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* ===========================================
   PAYMENT METHOD SECTION
   =========================================== */
.cod-payment-section {
    margin: 20px 0;
}

@media (min-width: 768px) {
    .cod-payment-section {
        margin: 24px 0;
    }
}

.cod-payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .cod-payment-options {
        gap: 16px;
        margin-top: 24px;
    }
}

.cod-payment-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--cod-border);
    border-radius: var(--cod-radius);
    cursor: pointer;
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .cod-payment-option {
        padding: 16px;
    }
}

.cod-payment-option:hover {
    border-color: var(--cod-primary);
}

.cod-payment-option.selected {
    border-color: var(--cod-primary);
}

.cod-payment-option input[type="radio"] {
    display: none;
}

.cod-payment-option .cod-payment-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e5e7eb;
    margin-right: 8px;
    margin-left: 8px;
    flex-shrink: 0;
    transition: background 0.2s;
}

@media (min-width: 768px) {
    .cod-payment-option .cod-payment-check {
        margin-right: 16px;
    }
}

.cod-payment-option .cod-payment-check svg {
    width: 60%;
    height: 60%;
    display: none;
}

.cod-payment-option.selected .cod-payment-check {
    background: var(--cod-primary);
}

.cod-payment-option.selected .cod-payment-check svg {
    display: block;
}

.cod-payment-option .cod-payment-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.cod-payment-option .cod-payment-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--cod-text-dark);
    margin: 0;
}

.cod-payment-option .cod-payment-desc {
    font-size: 14px;
    color: var(--cod-text-gray);
    margin: 4px 0 0;
}

/* ===========================================
   TOTAL SECTION
   =========================================== */
.cod-total-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    font-size: 16px;
}

@media (min-width: 768px) {
    .cod-total-section {
        margin: 24px 0;
    }
}

.cod-total-label {
    color: var(--cod-text-600);
}

.cod-total-value {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--cod-text-dark);
    font-size: 18px;
}

/* ===========================================
   SUBMIT BUTTON
   =========================================== */
#nrwooconfirm,
input#nrwooconfirm,
#codplugin-checkout #nrwooconfirm,
.cod-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    color: #fff !important;
    background: var(--cod-primary) !important;
    background-color: var(--cod-primary) !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

@media (min-width: 768px) {

    #nrwooconfirm,
    input#nrwooconfirm,
    .cod-submit-btn {
        border-radius: 16px !important;
    }
}

#nrwooconfirm:hover,
input#nrwooconfirm:hover,
.cod-submit-btn:hover {
    opacity: 0.85;
}

#nrwooconfirm:active,
input#nrwooconfirm:active,
.cod-submit-btn:active {
    opacity: 0.9;
}

#nrwooconfirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===========================================
   PROCESSING LOADER
   =========================================== */
#codplugin_gif {
    display: none;
    margin: 15px auto;
    width: 40px;
    height: 40px;
}

/* ===========================================
   VARIATION PRICES
   =========================================== */
#codplugin-checkout .variation-prices {
    margin: 16px 0;
    padding: 0;
}

.radio-variation-prices tbody {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-variation-prices tr {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--cod-border);
    border-radius: var(--cod-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.radio-variation-prices tr:hover {
    border-color: var(--cod-primary);
}

.radio-variation-prices tr.checked-var {
    border-color: var(--cod-primary);
}

#codplugin-checkout .radio-variation-prices td {
    border: none;
    padding: 0;
}

.radio-variation-prices tr td:last-child {
    margin-left: auto;
}

#codplugin-checkout .variation-prices bdi {
    font-weight: 600;
    color: var(--cod-primary);
}

/* ===========================================
   ORDER SUMMARY (Hidden)
   =========================================== */
#codplugin_order_history {
    display: none !important;
}

#codplugin_show_hide {
    display: none !important;
}

/* ===========================================
   WHATSAPP BUTTON
   =========================================== */
.whatsapp-order-section {
    margin: 16px 0;
    text-align: center;
}

.whatsapp-order-section #whatsapp-orders {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #25d466;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

@media (min-width: 768px) {
    .whatsapp-order-section #whatsapp-orders {
        border-radius: 16px;
    }
}

.whatsapp-order-section #whatsapp-orders:hover {
    background: #1fb855;
}

/* ===========================================
   MOBILE RESPONSIVE
   =========================================== */
@media (max-width: 767px) {
    #codplugin-checkout {
        margin-top: 16px;
    }

    .cod-section-header h3 {
        font-size: 18px;
    }
}

/* ===========================================
   RTL SUPPORT
   =========================================== */
.rtl .cod-input-group .cod-input-icon {
    right: auto;
    left: 0;
    padding-right: 0;
    padding-left: 12px;
}

.rtl #codplugin_woo_single_form input,
.rtl #codplugin-checkout input,
.rtl #codplugin_state,
.rtl #codplugin_city {
    padding-right: 44px;
    padding-left: 12px;
}

.rtl .cod-quantity-controls .cod-qty-btn:first-child {
    margin-right: 0;
    margin-left: 8px;
}

.rtl .cod-quantity-controls .cod-qty-btn:last-child {
    margin-left: 0;
    margin-right: 8px;
}

.rtl .cod-payment-option .cod-payment-check {
    margin-right: 8px;
    margin-left: 8px;
}

@media (min-width: 768px) {
    .rtl .cod-payment-option .cod-payment-check {
        margin-left: 16px;
        margin-right: 8px;
    }
}

.rtl .radio-variation-prices tr td:last-child {
    margin-left: 0;
    margin-right: auto;
}

/* ===========================================
   UPSELL MODAL
   =========================================== */
#cod-upsell {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

#cod-upsell-box {
    background: #fff;
    margin: 10% auto;
    padding: 24px;
    border-radius: var(--cod-radius-lg);
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#cod-upsell-box .cod-upsell-heading {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 2px dashed var(--cod-border);
}

/* ===========================================
   MINIMALIST MODE STYLES
   =========================================== */
#codplugin-checkout.cod-minimalist {
    padding: 12px;
    margin-top: 16px;
    border-radius: 12px;
}

@media (min-width: 768px) {
    #codplugin-checkout.cod-minimalist {
        padding: 16px;
    }
}

/* Minimalist: Hide decorative headers */
.cod-minimalist .cod-section-header {
    display: none;
}

/* Minimalist: Compact form body */
.cod-minimalist .cod-form-body {
    padding: 0;
}

/* Minimalist: Compact inputs */
.cod-minimalist .cod-input-group {
    margin-top: 8px;
}

.cod-minimalist #codplugin_woo_single_form input[type="text"],
.cod-minimalist #codplugin_woo_single_form input[type="tel"],
.cod-minimalist #codplugin_woo_single_form input[type="email"],
.cod-minimalist #codplugin-checkout input[type="text"],
.cod-minimalist #codplugin-checkout input[type="tel"],
.cod-minimalist #codplugin-checkout input[type="email"],
.cod-minimalist #codplugin_state,
.cod-minimalist #codplugin_city,
.cod-minimalist select {
    padding: 10px 12px;
    padding-right: 40px;
    font-size: 13px;
    border-radius: 10px;
}

@media (min-width: 768px) {

    .cod-minimalist #codplugin_woo_single_form input[type="text"],
    .cod-minimalist #codplugin_woo_single_form input[type="tel"],
    .cod-minimalist #codplugin_woo_single_form input[type="email"],
    .cod-minimalist #codplugin-checkout input[type="text"],
    .cod-minimalist #codplugin-checkout input[type="tel"],
    .cod-minimalist #codplugin-checkout input[type="email"],
    .cod-minimalist #codplugin_state,
    .cod-minimalist #codplugin_city,
    .cod-minimalist select {
        padding: 12px 12px;
        padding-right: 40px;
    }
}

/* Minimalist: Smaller icons */
.cod-minimalist .cod-input-group .cod-input-icon svg {
    width: 18px;
    height: 18px;
}

/* Minimalist: Compact quantity section - INLINE LAYOUT */
.cod-minimalist .cod-quantity-section {
    margin: 0;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.cod-minimalist .cod-quantity-section .cod-quantity-label {
    font-size: 13px;
    margin-bottom: 0;
    color: #333;
    display: block;
}

.cod-minimalist .cod-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.cod-minimalist .cod-quantity-controls .cod-qty-btn {
    padding: 0;
    width: 26px;
    height: 26px;
    border: none !important;
    border-radius: 0 !important;
    background: #f5f5f5;
    margin: 0 !important;
}

.cod-minimalist .cod-quantity-controls .cod-qty-btn:first-child {
    border-right: 1px solid #e0e0e0 !important;
}

.cod-minimalist .cod-quantity-controls .cod-qty-btn:last-child {
    border-left: 1px solid #e0e0e0 !important;
}

.cod-minimalist .cod-quantity-controls .cod-qty-btn svg {
    width: 12px;
    height: 12px;
}

.cod-minimalist .cod-quantity-controls .cod-qty-value {
    font-size: 13px;
    width: 28px;
    text-align: center;
    background: #fff;
    line-height: 26px;
    margin: 0;
}

/* Minimalist: Compact shipping section */
.cod-minimalist .cod-shipping-section {
    margin: 10px 0;
    font-size: 14px;
    padding: 8px 0;
    border-top: 1px solid var(--cod-border);
}

/* Minimalist: Hide coupon section by default */
.cod-minimalist .cod-coupon-section {
    margin: 0;
    padding: 8px 0;
    border-top: 1px solid var(--cod-border);
}

.cod-minimalist .cod-coupon-toggle .cod-coupon-text {
    font-size: 13px;
}

.cod-minimalist .cod-coupon-toggle .cod-coupon-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

/* Minimalist: Compact payment section */
.cod-minimalist .cod-payment-section {
    margin: 10px 0;
}

.cod-minimalist .cod-payment-section.cod-payment-minimal {
    margin: 8px 0;
    padding-top: 8px;
    border-top: 1px solid var(--cod-border);
}

.cod-minimalist .cod-payment-options {
    gap: 8px;
    margin-top: 0;
}

.cod-minimalist .cod-payment-option {
    padding: 10px 12px;
    border-radius: 10px;
}

.cod-minimalist .cod-payment-option .cod-payment-check {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.cod-minimalist .cod-payment-option .cod-payment-name {
    font-size: 14px;
}

.cod-minimalist .cod-payment-option .cod-payment-desc {
    font-size: 12px;
    margin-top: 2px;
}

/* Minimalist: Compact total section */
.cod-minimalist .cod-total-section {
    margin: 10px 0;
    padding: 10px 0;
    border-top: 1px solid var(--cod-border);
    font-size: 14px;
}

.cod-minimalist .cod-total-value {
    font-size: 16px;
}

/* Minimalist: Compact submit button */
.cod-minimalist #nrwooconfirm,
.cod-minimalist input#nrwooconfirm,
.cod-minimalist .cod-submit-btn {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 10px !important;
    margin-top: 4px;
}

/* Minimalist: Compact form footer */
.cod-minimalist .cod-form-footer {
    margin-top: 0;
}

/* Minimalist: Compact WhatsApp button */
.cod-minimalist .whatsapp-order-section {
    margin: 10px 0;
}

.cod-minimalist .whatsapp-order-section #whatsapp-orders {
    padding: 10px 20px;
    font-size: 13px;
    border-radius: 10px;
}

/* Minimalist: Compact variation prices */
.cod-minimalist .variation-prices {
    margin: 8px 0;
}

.cod-minimalist .radio-variation-prices tbody {
    gap: 6px;
}

.cod-minimalist .radio-variation-prices tr {
    padding: 10px 12px;
    border-radius: 10px;
}

/* Minimalist RTL support */
.rtl .cod-minimalist #codplugin_woo_single_form input,
.rtl .cod-minimalist #codplugin-checkout input,
.rtl .cod-minimalist #codplugin_state,
.rtl .cod-minimalist #codplugin_city {
    padding-right: 40px;
    padding-left: 12px;
}

/* ===========================================
   ULTRA COMPACT MODE (Inspired by screenshot)
   =========================================== */

/* Even more compact container */
#codplugin-checkout.cod-minimalist {
    padding: 10px;
    margin-top: 12px;
}

/* Inline labels for inputs (like screenshot) */
.cod-minimalist .cod-input-group {
    margin-top: 6px;
    position: relative;
}

.cod-minimalist .cod-input-group::before {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #999;
    pointer-events: none;
    z-index: 1;
}

/* Ultra compact inputs */
.cod-minimalist #codplugin_woo_single_form input[type="text"],
.cod-minimalist #codplugin_woo_single_form input[type="tel"],
.cod-minimalist #codplugin_woo_single_form input[type="email"],
.cod-minimalist #codplugin-checkout input[type="text"],
.cod-minimalist #codplugin-checkout input[type="tel"],
.cod-minimalist #codplugin-checkout input[type="email"],
.cod-minimalist #codplugin_state,
.cod-minimalist #codplugin_city,
.cod-minimalist select {
    padding: 8px 10px;
    padding-right: 36px;
    font-size: 12px;
    border-radius: 8px;
    height: 38px;
}

/* Even smaller icons */
.cod-minimalist .cod-input-group .cod-input-icon svg {
    width: 16px;
    height: 16px;
}

.cod-minimalist .cod-input-group .cod-input-icon {
    padding-right: 10px;
}

/* Remove quantity section for cleaner look */
.cod-minimalist .cod-quantity-section {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cod-minimalist .cod-quantity-section .cod-quantity-label {
    font-size: 13px;
    margin-bottom: 0;
    color: #333;
}

.cod-minimalist .cod-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.cod-minimalist .cod-quantity-controls .cod-qty-btn {
    padding: 0;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cod-minimalist .cod-quantity-controls .cod-qty-btn:first-child {
    margin-right: 0;
    border-right: 1px solid #e0e0e0;
}

.cod-minimalist .cod-quantity-controls .cod-qty-btn:last-child {
    margin-left: 0;
    border-left: 1px solid #e0e0e0;
}

.cod-minimalist .cod-quantity-controls .cod-qty-btn:hover {
    background: #eee;
}

.cod-minimalist .cod-quantity-controls .cod-qty-btn svg {
    width: 12px;
    height: 12px;
}

.cod-minimalist .cod-quantity-controls .cod-qty-value {
    font-size: 14px;
    width: 32px;
    text-align: center;
    background: #fff;
    margin: 0;
    line-height: 28px;
}

/* Ultra compact shipping */
.cod-minimalist .cod-shipping-section {
    margin: 6px 0;
    padding: 6px 0;
    font-size: 13px;
}

.cod-minimalist .cod-shipping-section dt,
.cod-minimalist .cod-shipping-section dd {
    font-size: 12px;
}

/* Ultra compact coupon */
.cod-minimalist .cod-coupon-section {
    padding: 6px 0;
    margin: 0;
}

.cod-minimalist .cod-coupon-toggle .cod-coupon-text {
    font-size: 11px;
}

.cod-minimalist .cod-coupon-toggle .cod-coupon-btn {
    padding: 4px 10px;
    font-size: 11px;
}

/* Ultra compact payment */
.cod-minimalist .cod-payment-section {
    margin: 6px 0;
    padding-top: 6px;
}

.cod-minimalist .cod-payment-options {
    margin-top: 0;
}

.cod-minimalist .cod-payment-option {
    padding: 8px 10px;
    border-radius: 8px;
}

.cod-minimalist .cod-payment-option .cod-payment-check {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.cod-minimalist .cod-payment-option .cod-payment-name {
    font-size: 12px;
}

.cod-minimalist .cod-payment-option .cod-payment-desc {
    font-size: 10px;
    margin-top: 0;
}

/* Ultra compact total */
.cod-minimalist .cod-total-section {
    margin: 6px 0;
    padding: 8px 0;
    font-size: 13px;
}

.cod-minimalist .cod-total-value {
    font-size: 15px;
}

/* Ultra compact button */
.cod-minimalist #nrwooconfirm,
.cod-minimalist input#nrwooconfirm,
.cod-minimalist .cod-submit-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px !important;
    margin-top: 8px;
    height: auto;
    min-height: 44px;
    line-height: 1.4;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Hide form section title */
.cod-minimalist+#product-buy-form .form-section-title,
#product-buy-form .form-section-title {
    display: none;
}

/* Compact form footer */
.cod-minimalist .cod-form-footer {
    margin-top: 0;
    padding-top: 0;
}

/* Hide whatsapp in minimalist */
.cod-minimalist .whatsapp-order-section {
    margin: 6px 0;
}

.cod-minimalist .whatsapp-order-section #whatsapp-orders {
    padding: 8px 16px;
    font-size: 12px;
}

/* Compact variations */
.cod-minimalist .variation-prices {
    margin: 4px 0;
}

.cod-minimalist .radio-variation-prices tr {
    padding: 8px 10px;
}

.cod-minimalist .radio-variation-prices tbody {
    gap: 4px;
}

/* RTL ultra compact */
.rtl .cod-minimalist .cod-input-group .cod-input-icon {
    padding-right: 0;
    padding-left: 10px;
}

.rtl .cod-minimalist #codplugin_woo_single_form input,
.rtl .cod-minimalist select {
    padding-right: 36px;
    padding-left: 10px;
}

.rtl .cod-minimalist .cod-payment-option .cod-payment-check {
    margin-right: 6px;
    margin-left: 6px;
}