@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

.cod-naza-wrapper {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    max-width: 420px;
    margin: 0 auto;
}

.cod-naza-form {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #eaeaea;
}

/* Form Body */
.form-body {
    padding: 24px 20px 20px 20px;
}

.form-title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 20px;
}

.cod-input-group {
    position: relative;
    margin-bottom: 14px;
}

.cod-input-field {
    width: 100%;
    height: 48px;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 16px 0 42px;
    font-size: 14px;
    color: #333333;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: right;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

.cod-input-field:focus {
    border-color: #ff3838;
    box-shadow: 0 0 0 3px rgba(255, 56, 56, 0.15);
}

select.cod-input-field {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.cod-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}

.cod-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #888888;
    pointer-events: none;
}

/* Summary Box */
.cod-summary-box {
    background: #f8f9fa;
    border-top: 1px solid #eef0f2;
    padding: 18px 20px;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.summary-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.toggle-icon {
    font-size: 12px;
    color: #666666;
    cursor: pointer;
}

.product-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6e8ec;
    margin-bottom: 12px;
}

.product-title {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-badge {
    background-color: #ff3838;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
}

.product-price {
    font-size: 14px;
    font-weight: 700;
    color: #111111;
    white-space: nowrap;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: #555555;
    margin-bottom: 10px;
}

.summary-row.total {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #d0d5dd;
    font-size: 15px;
    font-weight: 700;
    color: #111111;
}

.summary-row.total .price {
    font-size: 17px;
    color: #ff3838;
}

/* Actions Row */
.action-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.qty-picker {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 44px;
    border: none;
    background: #f8f9fa;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #e9ecef;
}

.qty-value {
    width: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.cod-submit-btn {
    flex: 1;
    height: 44px;
    background-color: #ff3838;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 56, 56, 0.25);
    transition: transform 0.1s, background-color 0.2s;
    font-family: 'Cairo', sans-serif;
}

.cod-submit-btn:hover {
    background-color: #e02d2d;
}

.cod-submit-btn:active {
    transform: scale(0.98);
}

/* Floating Sticky Footer Bar */
.cod-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #eaeaea;
    padding: 10px 16px;
    display: flex;
    gap: 10px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
    z-index: 9999;
}

.sticky-main-btn {
    flex: 1;
    height: 46px;
    background-color: #ff3838;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

.icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}

.cod-naza-response {
    margin-top: 12px;
}
.cod-success { color: #16a34a; font-weight: bold; text-align: center; }
.cod-error { color: #dc2626; font-weight: bold; text-align: center; }
