/* Plugin: Compare Mobile Plans
   Brand Color: #ff1716 (OnDiscount.in) */

.odmp-container {
    max-width: 900px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #333;
}

/* --- Header --- */
.odmp-header h2 {
    font-size: 28px;
    margin-bottom: 5px;
    color: #222;
}
.odmp-header p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}
.odmp-header strong {
    color: #ff1716;
}

/* --- Form --- */
#odmp-plan-rows {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.odmp-plan-row {
    background: #fff;
    padding: 15px 15px 5px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: border 0.2s;
}
.odmp-plan-row:last-child {
    margin-bottom: 0;
}

.odmp-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.odmp-plan-number {
    font-weight: 600;
    font-size: 16px;
    color: #222;
}
.odmp-remove-row {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}
.odmp-remove-row:hover {
    background: #ffebee;
    color: #d32f2f;
}

.odmp-row-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
}
@media (max-width: 700px) {
    .odmp-row-fields {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 450px) {
    .odmp-row-fields {
        grid-template-columns: 1fr;
    }
}

.odmp-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 4px;
}
.odmp-field-group input,
.odmp-field-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    transition: border 0.2s;
}
.odmp-field-group input:focus,
.odmp-field-group select:focus {
    border-color: #ff1716;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 23, 22, 0.15);
}

/* --- Buttons --- */
.odmp-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
}

.odmp-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.odmp-btn-outline {
    background: #fff;
    color: #ff1716;
    border: 2px solid #ff1716;
}
.odmp-btn-outline:hover {
    background: #ff1716;
    color: #fff;
}

.odmp-btn-primary {
    background: #ff1716;
    color: #fff;
    border: 2px solid #ff1716;
}
.odmp-btn-primary:hover {
    background: #d90000;
    border-color: #d90000;
    transform: scale(1.02);
}

.odmp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* --- Loader --- */
#odmp-loader {
    text-align: center;
    padding: 30px 0;
    font-size: 16px;
    color: #555;
}
.odmp-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff1716;
    border-radius: 50%;
    animation: odmp-spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}
@keyframes odmp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Results --- */
#odmp-results {
    margin-top: 30px;
}

/* Winner Cards */
.odmp-winners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}
@media (max-width: 600px) {
    .odmp-winners-grid {
        grid-template-columns: 1fr;
    }
}

.odmp-winner-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border-top: 6px solid #ddd;
    transition: transform 0.2s;
}
.odmp-winner-card:hover {
    transform: translateY(-3px);
}
.odmp-winner-card.card-keep {
    border-top-color: #28a745; /* Green */
}
.odmp-winner-card.card-data {
    border-top-color: #ff1716; /* Brand Red */
}
.odmp-winner-card .odmp-badge {
    display: inline-block;
    background: #ff1716;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.odmp-winner-card.card-keep .odmp-badge {
    background: #28a745;
}
.odmp-winner-card h3 {
    font-size: 20px;
    margin: 0 0 4px 0;
    color: #222;
}
.odmp-winner-card .odmp-winner-price {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin: 6px 0;
}
.odmp-winner-card .odmp-winner-metric {
    font-size: 15px;
    color: #555;
    margin: 4px 0;
}
.odmp-winner-card .odmp-winner-sub {
    font-size: 14px;
    color: #777;
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* Collapsible Table */
.odmp-toggle-table {
    text-align: center;
    margin: 15px 0;
}
.odmp-toggle-table button {
    background: none;
    border: none;
    color: #ff1716;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s;
}
.odmp-toggle-table button:hover {
    background: #fff0f0;
}

.odmp-full-table-wrap {
    display: none;
    margin-top: 10px;
    overflow-x: auto;
}
.odmp-full-table-wrap.odmp-show {
    display: block;
}

.odmp-full-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.odmp-full-table-wrap th {
    background: #f2f2f2;
    color: #333;
    font-weight: 600;
    padding: 12px 10px;
    text-align: left;
}
.odmp-full-table-wrap td {
    padding: 10px 10px;
    border-bottom: 1px solid #f0f0f0;
}
.odmp-full-table-wrap tr:last-child td {
    border-bottom: none;
}
.odmp-full-table-wrap .odmp-highlight {
    background: #fff9f9;
    font-weight: 600;
    color: #ff1716;
}
.odmp-full-table-wrap .odmp-winner-badge {
    display: inline-block;
    background: #ff1716;
    color: #fff;
    font-size: 10px;
    padding: 1px 8px;
    border-radius: 12px;
    margin-left: 5px;
}
.odmp-full-table-wrap .odmp-winner-badge.green {
    background: #28a745;
}

.odmp-error-msg {
    background: #fff5f5;
    border-left: 4px solid #ff1716;
    padding: 15px 20px;
    border-radius: 4px;
    color: #a00;
    font-weight: 500;
}