/* =========================================================
   COD Forum - Frontend CSS Clean Stable Version + Form UI
   ========================================================= */

/* Base Wrapper */

.cod-forum-wrapper {
    max-width: 520px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    direction: inherit;
    box-sizing: border-box;
}

.codf-form-ui-direction-ltr {
    direction: ltr !important;
}

.codf-form-ui-direction-rtl {
    direction: rtl !important;
}

.codf-form-ui-width-compact {
    max-width: 440px;
}

.codf-form-ui-width-normal {
    max-width: 520px;
}

.codf-form-ui-width-wide {
    max-width: 640px;
}

.codf-form-ui-shadow-none {
    box-shadow: none !important;
}

.codf-form-ui-shadow-soft {
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.codf-form-ui-shadow-strong {
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.16);
}

/* Form Header */

.codf-form-header {
    position: relative;
    margin-bottom: 18px;
    padding: 18px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 58%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    text-align: center;
    overflow: hidden;
}

.codf-form-header::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    top: -60px;
    right: -50px;
    background: rgba(22, 163, 74, 0.11);
    border-radius: 50%;
}

.codf-form-header::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    bottom: -50px;
    left: -40px;
    background: rgba(22, 163, 74, 0.08);
    border-radius: 50%;
}

.codf-form-header-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.codf-form-header-title {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    color: #111827;
    font-size: 24px;
    font-weight: 950;
    line-height: 1.25;
}

.codf-form-header-subtitle {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
}

/* Form */

.cod-forum-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.codf-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 800;
    font-size: 14px;
}

.codf-field input,
.codf-field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.codf-field input:focus,
.codf-field textarea:focus {
    outline: none;
    border-color: #16a34a !important;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.codf-field textarea {
    min-height: 95px;
    resize: vertical;
}

.codf-field input::placeholder,
.codf-field textarea::placeholder {
    opacity: 0.72;
}

.codf-submit-btn {
    width: 100%;
    border: 0;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(22, 163, 74, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.codf-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(22, 163, 74, 0.34);
}

.codf-submit-btn:active {
    transform: translateY(0);
}

.codf-submit-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
}

.codf-response {
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    display: none;
}

.codf-response.success {
    background: #dcfce7;
    color: #166534;
}

.codf-response.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Popup Confirmation + Smart Summary */

body.codf-summary-open,
body.codf-popup-open {
    overflow: hidden !important;
}

.codf-summary-overlay,
.codf-popup-overlay {
    display: none !important;
}

.codf-summary-overlay.codf-is-open,
.codf-popup-overlay.codf-is-open {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483647 !important;
    background: rgba(0, 0, 0, 0.65) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

.codf-summary-box,
.codf-popup-box {
    position: relative !important;
    width: 100% !important;
    max-width: 520px !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 28px 22px 22px !important;
    box-sizing: border-box !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35) !important;
    margin: 0 auto !important;
    transform: none !important;
    animation: codfPopupIn 0.22s ease;
}

@keyframes codfPopupIn {
    from {
        transform: scale(0.96);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.codf-summary-title,
.codf-popup-box h2 {
    text-align: center !important;
    font-size: 24px !important;
    line-height: 1.3 !important;
    margin: 10px 48px 20px !important;
}

.codf-summary-content {
    max-height: 42vh !important;
    overflow-y: auto !important;
    margin-bottom: 20px !important;
}

.codf-summary-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.codf-summary-row:last-child {
    border-bottom: none !important;
}

.codf-summary-row strong {
    font-weight: 800 !important;
}

.codf-summary-row span {
    text-align: right !important;
    word-break: break-word !important;
}

.codf-summary-actions {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
    margin-top: 18px !important;
    padding: 0 !important;
    background: transparent !important;
}

.codf-summary-edit,
.codf-summary-confirm,
.codf-popup-ok {
    width: 100% !important;
    min-height: 54px !important;
    border-radius: 999px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    padding: 12px 16px !important;
    cursor: pointer !important;
}

.codf-summary-edit {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
}

.codf-summary-confirm,
.codf-popup-ok {
    border: none;
    background: #16a34a;
    color: #ffffff;
}

.codf-summary-close,
.codf-popup-close {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    right: auto !important;
    width: 44px !important;
    height: 44px !important;
    border: none !important;
    border-radius: 12px !important;
    background: #ff1200 !important;
    color: #ffffff !important;
    font-size: 30px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.codf-popup-box {
    text-align: center;
}

.codf-popup-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.codf-popup-message {
    font-size: 16px;
    margin-bottom: 10px;
}

.codf-popup-order-id {
    font-weight: 800;
    color: #16a34a;
    margin-bottom: 20px;
}

/* Sticky Button */

.codf-sticky-button {
    position: fixed !important;
    bottom: 22px !important;
    z-index: 2147483000 !important;
    border: 0 !important;
    background: #16a34a;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(14px);
    transition:
        opacity 0.35s ease,
        visibility 0.35s ease,
        transform 0.35s ease;
}

.codf-sticky-button.codf-sticky-is-ready,
.codf-sticky-button.codf-sticky-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0);
}

/* Light to medium movement */
.codf-sticky-button.codf-sticky-attention {
    animation: codfStickySoftMove 1.9s ease-in-out infinite;
}

@keyframes codfStickySoftMove {
    0% {
        transform: translateY(0) scale(1);
    }

    35% {
        transform: translateY(-11px) scale(1.025);
    }

    70% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.codf-sticky-button:hover {
    transform: translateY(-2px);
}

.codf-sticky-position-right {
    right: 22px !important;
}

.codf-sticky-position-left {
    left: 22px !important;
}

.codf-sticky-position-center {
    left: 50% !important;
    transform: translateX(-50%) translateY(14px) !important;
}

.codf-sticky-position-center.codf-sticky-is-ready,
.codf-sticky-position-center.codf-sticky-visible {
    transform: translateX(-50%) translateY(0) !important;
}

.codf-sticky-position-center.codf-sticky-attention {
    animation: codfStickySoftMoveCenter 1.9s ease-in-out infinite;
}

@keyframes codfStickySoftMoveCenter {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
    }

    35% {
        transform: translateX(-50%) translateY(-7px) scale(1.015);
    }

    70% {
        transform: translateX(-50%) translateY(0) scale(1);
    }

    100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.codf-sticky-position-center:hover {
    transform: translateX(-50%) translateY(-2px) !important;
}

.codf-sticky-shape-rectangle {
    padding: 14px 24px;
    border-radius: 10px;
}

.codf-sticky-shape-pill {
    padding: 14px 28px;
    border-radius: 999px;
}

.codf-sticky-shape-round {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sticky Full Width Bottom */

.codf-sticky-shape-full {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    width: auto !important;
    max-width: none !important;
    min-height: 56px !important;
    padding: 15px 18px !important;
    border-radius: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 950 !important;
    line-height: 1.25 !important;
    transform: translateY(14px) !important;
}

.codf-sticky-shape-full.codf-sticky-position-right,
.codf-sticky-shape-full.codf-sticky-position-left,
.codf-sticky-shape-full.codf-sticky-position-center {
    left: 14px !important;
    right: 14px !important;
}

.codf-sticky-shape-full.codf-sticky-is-ready,
.codf-sticky-shape-full.codf-sticky-visible {
    transform: translateY(0) !important;
}

.codf-sticky-shape-full.codf-sticky-attention {
    animation: codfStickySoftMoveFull 1.9s ease-in-out infinite;
}

@keyframes codfStickySoftMoveFull {
    0% {
        transform: translateY(0) scale(1);
    }

    35% {
        transform: translateY(-8px) scale(1.01);
    }

    70% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.codf-sticky-shape-full:hover {
    transform: translateY(-2px) !important;
}

.codf-sticky-hide-mobile {
    display: inline-flex !important;
}

.codf-sticky-hide-desktop {
    display: inline-flex;
}

/* Auto Order Message */

.codf-auto-order-message {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef3c7;
    color: #92400e;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

/* Trust Badges */

.codf-trust-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.codf-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 700;
    box-sizing: border-box;
}

.codf-trust-badge-icon {
    font-size: 19px;
    line-height: 1;
}

.codf-trust-badge-text {
    line-height: 1.35;
}

/* Product Offers */

.codf-offers-box {
    margin-bottom: 20px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.codf-offers-title {
    font-size: 19px;
    font-weight: 900;
    margin-bottom: 14px;
    line-height: 1.3;
}

.codf-offers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.codf-offers-layout-grid .codf-offers-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.codf-offer-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.codf-offer-option:hover {
    border-color: #16a34a;
    transform: translateY(-1px);
}

.codf-offer-option input[type="radio"] {
    display: none;
}

.codf-offer-circle {
    width: 21px;
    height: 21px;
    border: 2px solid #9ca3af;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 21px;
    position: relative;
    background: #ffffff;
}

.codf-offer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.codf-offer-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.codf-offer-main strong {
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
}

.codf-offer-main small {
    font-size: 12px;
    opacity: 0.7;
}

.codf-offer-price {
    font-weight: 900;
    font-size: 16px;
    color: #16a34a;
    white-space: nowrap;
}

.codf-offer-selected-text {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    background: #16a34a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
}

.codf-offer-option.is-selected {
    border-color: #16a34a;
    background: #f0fdf4;
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.16);
}

.codf-offer-option.is-selected .codf-offer-circle {
    border-color: #16a34a;
}

.codf-offer-option.is-selected .codf-offer-circle::after {
    content: "";
    width: 11px;
    height: 11px;
    background: #16a34a;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
}

.codf-offer-option.is-selected .codf-offer-selected-text {
    display: inline-flex;
}

/* Mobile First Layout - Compact */

@media (max-width: 767px) {
    .cod-forum-wrapper {
        max-width: 100% !important;
        margin: 12px 0 !important;
        padding: 12px !important;
        border-radius: 16px !important;
        border-color: #e5e7eb;
    }

    .codf-form-ui-shadow-soft {
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    }

    .codf-form-ui-shadow-strong {
        box-shadow: 0 16px 46px rgba(15, 23, 42, 0.14);
    }

    .codf-form-header {
        padding: 11px 10px !important;
        margin-bottom: 12px !important;
        border-radius: 15px !important;
    }

    .codf-form-header::before {
        width: 70px !important;
        height: 70px !important;
        top: -38px !important;
        right: -32px !important;
    }

    .codf-form-header::after {
        width: 55px !important;
        height: 55px !important;
        bottom: -30px !important;
        left: -26px !important;
    }

    .codf-form-header-badge {
        font-size: 11px !important;
        padding: 4px 9px !important;
        margin-bottom: 6px !important;
    }

    .codf-form-header-title {
        font-size: 18px !important;
        line-height: 1.25 !important;
        margin: 0 !important;
    }

    .codf-form-header-subtitle {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-top: 5px !important;
    }

    .cod-forum-form {
        gap: 10px !important;
    }

    .codf-field label {
        font-size: 12px !important;
        margin-bottom: 5px !important;
    }

    .codf-field input,
    .codf-field textarea {
        min-height: 44px !important;
        padding: 10px 11px !important;
        font-size: 14px !important;
        border-radius: 11px !important;
    }

    .codf-field textarea {
        min-height: 78px !important;
    }

    .codf-submit-btn {
        min-height: 48px !important;
        padding: 12px 14px !important;
        border-radius: 14px !important;
        font-size: 15px !important;
        line-height: 1.25 !important;
        box-shadow: 0 10px 24px rgba(22, 163, 74, 0.24) !important;
    }

    .codf-offers-box {
        padding: 12px !important;
        margin-bottom: 14px !important;
        border-radius: 14px !important;
    }

    .codf-offers-title {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }

    .codf-offer-option {
        align-items: flex-start;
        padding: 11px 10px !important;
        border-radius: 13px !important;
    }

    .codf-offer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-right: 74px;
    }

    .codf-offer-price {
        font-size: 16px;
    }

    .codf-summary-overlay.codf-is-open,
    .codf-popup-overlay.codf-is-open {
        padding: 14px !important;
    }

    .codf-summary-box,
    .codf-popup-box {
        max-width: calc(100vw - 28px) !important;
        max-height: 86vh !important;
        border-radius: 22px !important;
        padding: 26px 18px 18px !important;
    }

    .codf-summary-title,
    .codf-popup-box h2 {
        font-size: 21px !important;
        text-align: center !important;
        margin: 12px 48px 20px !important;
    }

    .codf-summary-content {
        max-height: 38vh !important;
        overflow-y: auto !important;
    }

    .codf-summary-row {
        flex-direction: column !important;
        gap: 4px !important;
    }

    .codf-summary-row span {
        text-align: left !important;
    }

    .codf-summary-actions {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        margin-top: 18px !important;
    }

    .codf-summary-edit,
    .codf-summary-confirm,
    .codf-popup-ok {
        min-height: 52px !important;
        font-size: 15px !important;
    }

    .codf-sticky-button {
        bottom: 14px !important;
        font-size: 15px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .codf-sticky-position-right {
        right: 14px !important;
    }

    .codf-sticky-position-left {
        left: 14px !important;
    }

    .codf-sticky-position-center {
        left: 50% !important;
    }

    .codf-sticky-shape-full {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    min-height: 48px !important;
    padding: 11px 14px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
}
    

    .codf-sticky-shape-full.codf-sticky-position-right,
    .codf-sticky-shape-full.codf-sticky-position-left,
    .codf-sticky-shape-full.codf-sticky-position-center {
        left: 12px !important;
        right: 12px !important;
    }

    .codf-sticky-hide-mobile {
        display: inline-flex !important;
    }

    .codf-sticky-button.codf-sticky-hide-mobile {
        display: inline-flex !important;
    }

    .codf-trust-badges {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .codf-trust-badge {
        min-height: 56px !important;
        padding: 8px 7px !important;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 6px;
    }

    .codf-trust-badge-icon {
        font-size: 18px !important;
    }

    .codf-trust-badge-text {
        font-size: 11px !important;
        line-height: 1.3;
    }
}

/* Desktop hide option */

@media (min-width: 768px) {
    .codf-sticky-hide-desktop {
        display: none !important;
    }
}

/* =========================================================
   COD Forum - WhatsApp Button Fix
   ========================================================= */

.codf-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.codf-whatsapp-btn {
    width: 100%;
    min-height: 52px;
    border: 0 !important;
    padding: 14px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.24);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
    font-family: inherit;
    text-decoration: none !important;
    appearance: none;
    -webkit-appearance: none;
}

.codf-whatsapp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.3);
}

.codf-whatsapp-btn:active {
    transform: translateY(0);
}

.codf-whatsapp-btn::before {
    content: "💬";
    display: inline-block;
    margin-right: 8px;
}

.codf-form-ui-direction-rtl .codf-whatsapp-btn::before {
    margin-right: 0;
    margin-left: 8px;
}

@media (max-width: 767px) {
    .codf-actions {
        gap: 9px !important;
    }

    .codf-whatsapp-btn {
        min-height: 48px !important;
        padding: 12px 14px !important;
        border-radius: 14px !important;
        font-size: 15px !important;
        box-shadow: 0 10px 24px rgba(37, 211, 102, 0.22) !important;
    }
}

/* =========================================================
   COD Forum - Product Options: Colors / Sizes
   ========================================================= */

.codf-product-options-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 6px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f9fafb;
}

.codf-product-option-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.codf-product-option-label {
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

.codf-product-option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.codf-product-option-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.codf-product-option-button input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.codf-product-option-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    min-width: 58px;
    padding: 9px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.codf-product-option-button:hover span {
    border-color: #16a34a;
    transform: translateY(-1px);
}

.codf-product-option-button input:checked + span {
    border-color: #16a34a;
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.22);
}

.codf-product-option-button input:focus + span {
    outline: none;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}

.codf-product-option-select {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    box-sizing: border-box;
}

.codf-product-option-select:focus {
    outline: none;
    border-color: #16a34a !important;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.codf-form-ui-direction-rtl .codf-product-option-buttons {
    direction: rtl;
}

@media (max-width: 767px) {
    .codf-product-options-box {
        gap: 11px;
        margin-bottom: 4px;
        padding: 11px;
        border-radius: 14px;
    }

    .codf-product-option-label {
        font-size: 13px;
    }

    .codf-product-option-buttons {
        gap: 8px;
    }

    .codf-product-option-button span {
        min-height: 38px;
        min-width: 50px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .codf-product-option-select {
        min-height: 44px;
        padding: 10px 11px;
        font-size: 14px;
        border-radius: 11px;
    }
}

/* =========================================================
   COD Forum - Advanced Offers UI
   ========================================================= */

.codf-offer-option {
    min-height: 78px;
}

.codf-offer-is-highlighted {
    border-color: #16a34a !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 58%, #ecfdf5 100%) !important;
    box-shadow: 0 16px 38px rgba(22, 163, 74, 0.16);
}

.codf-offer-has-badge {
    padding-top: 28px !important;
}

.codf-offer-badge {
    position: absolute;
    top: 8px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 24px);
    padding: 4px 10px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.2);
}

.codf-form-ui-direction-rtl .codf-offer-badge {
    left: auto;
    right: 12px;
}

.codf-offer-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    margin-left: auto;
}

.codf-form-ui-direction-rtl .codf-offer-price-wrap {
    align-items: flex-start;
    margin-left: 0;
    margin-right: auto;
}

.codf-offer-old-price {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: line-through;
    white-space: nowrap;
}

.codf-offer-save-text {
    display: inline-flex;
    width: fit-content;
    margin-top: 3px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px !important;
    font-weight: 900;
    line-height: 1.2;
    opacity: 1 !important;
}

.codf-offer-is-default::after {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    line-height: 22px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.25);
}

.codf-form-ui-direction-rtl .codf-offer-is-default::after {
    right: auto;
    left: 10px;
}

.codf-offer-option.is-selected .codf-offer-price,
.codf-offer-option.codf-offer-is-default .codf-offer-price {
    color: #15803d;
}

@media (max-width: 767px) {
    .codf-offer-option {
        min-height: 74px;
    }

    .codf-offer-has-badge {
        padding-top: 30px !important;
    }

    .codf-offer-badge {
        top: 7px;
        left: 10px;
        font-size: 10px;
        padding: 4px 8px;
    }

    .codf-form-ui-direction-rtl .codf-offer-badge {
        left: auto;
        right: 10px;
    }

    .codf-offer-price-wrap {
        align-items: flex-start;
        margin-left: 0;
    }

    .codf-offer-old-price {
        font-size: 12px;
    }

    .codf-offer-save-text {
        font-size: 10px !important;
    }

    .codf-offer-is-default::after {
        top: 7px;
        right: 8px;
        width: 20px;
        height: 20px;
        font-size: 13px;
        line-height: 20px;
    }

    .codf-form-ui-direction-rtl .codf-offer-is-default::after {
        right: auto;
        left: 8px;
    }
}