/* Subscription View Redesign */

.talkao-subscription-view {
    font-family: 'Barlow', sans-serif;
    margin-bottom: 40px;
}

/* Header Section */
.talkao-sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.talkao-sub-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000;
    margin: 0;
}

.talkao-sub-actions {
    display: flex;
    gap: 12px;
}

.talkao-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: normal;
}

.talkao-btn-outline {
    border: 1px solid #004FB3;
    color: #004FB3 !important;
    background: transparent;
}

.talkao-btn-outline:hover {
    background: #f0f8ff;
}

.talkao-btn-primary {
    background-color: #004FB3;
    color: #fff !important;
    border: 1px solid #004FB3;
}

.talkao-btn-primary:hover {
    background-color: #003d8a;
}

/* Subscription Card */
.talkao-sub-card {
    display: flex;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.talkao-sub-image {
    width: 20%;
    padding-right: 32px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.talkao-sub-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.talkao-sub-details {
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Details Row 1: Label + Status + Cancel */
.talkao-sub-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.talkao-sub-status-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.talkao-sub-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #999;
    letter-spacing: 0.5px;
    margin: 0;
}

.talkao-sub-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.talkao-sub-status.active {
    background-color: #d1fae5;
    color: #065f46;
}

.talkao-sub-status.on-hold {
    background-color: #fef3c7;
    color: #92400e;
}

.talkao-sub-status.cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

.talkao-cancel-link {
    color: #ef4444 !important;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.talkao-cancel-link:hover {
    opacity: 0.8;
}

/* Details Row 2: Name + Price */
.talkao-sub-row-main {
    margin-bottom: 24px;
}

.talkao-sub-title {
    font-size: 1.75rem;
    font-weight: normal;
    color: #333;
    margin: 0;
}

/* Details Row 3: Info Grid */
.talkao-sub-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.talkao-info-item h4 {
    font-size: 0.85rem;
    color: #999;
    margin: 0 0 0px 0;
    font-weight: normal;
}

.talkao-info-item p {
    font-size: 1rem;
    color: #333 !important;
    margin: 0;
    font-weight: 500;
}

/* History Section */
.talkao-history-section {
    margin-top: 40px;
}

.talkao-history-title {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 20px;
}

.talkao-history-table {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    border-collapse: separate; /* Obligatorio para ver el radio */
    border-spacing: 0;
    overflow: hidden; /* Para que el fondo de las celdas no tape la curva */
    border: 1px solid #ccc;
}

.talkao-history-table th {
    background-color: #f9fafb;
    color: #232323;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 16px 24px;
    font-weight: bold;
    text-align: left;
    letter-spacing: 0.5px;
    border:0px solid red;
}

.talkao-history-table td {
    padding: 20px 24px;
    color: #333;
    font-size: 0.95rem;
    vertical-align: middle;
    text-align:left;
    border:0px solid red;
}

.talkao-history-table .order-number a {
    color: #004FB3;
    font-weight: bold;
    text-decoration: none;
}

.talkao-history-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-processing,
.status-pending, .status-on-hold{
    background-color: #fef3c7;
    color: #92400e;
}

.status-failed,
.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

@media (max-width: 768px) {
    .talkao-sub-card {
        flex-direction: column;
        padding: 20px;
    }

    .talkao-sub-image {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
        justify-content: center;
    }

    .talkao-sub-image img {
        max-width: 200px;
    }

    .talkao-sub-details {
        width: 100%;
    }

    .talkao-sub-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .talkao-sub-header {
        flex-direction: column;
        align-items: flex-start;
    }
}