/* OGCC hinnakiri: lehe 249 Elementori "Custom CSS" (HTML-vidin 12b78e0), muutmata. */
/* Mänguõiguste Hinnakiri Stiilid */

/* Animaatsioonid */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(140, 46, 116, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(140, 46, 116, 0.5);
    }
}

@keyframes shine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mo-payment-note {
    font-size: 14px;
    opacity: 0.95;
}

/* === Uniform titles (override theme/elementor) === */
.mo-header .mo-main-title,
.mo-section-title {
  margin: 0 0 18px 0;
}

.mo-title,
.mo-header .mo-main-title .mo-title-main,
.mo-section-title {
  font-size: 42px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

/* ensure both lines in the split title are identical */
.mo-header .mo-main-title .mo-title-main {
  display: block;
}

/* responsive: keep same scaling logic for ALL titles */
@media (max-width: 768px) {
  .mo-title,
  .mo-header .mo-main-title .mo-title-main,
  .mo-section-title {
    font-size: 30px !important;
    line-height: 1.08 !important;
  }
}

@media (max-width: 480px) {
  .mo-title,
  .mo-header .mo-main-title .mo-title-main,
  .mo-section-title {
    font-size: 24px !important;
    line-height: 1.1 !important;
  }
}

/* Pealkiri */
.mo-header {
    background: #8C2E74;
    color: #ffffff;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(140, 46, 116, 0.3);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.mo-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shine 4s infinite;
}

.mo-main-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff !important;
    line-height: 1.3;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
}

.mo-title-main {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff !important;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    position: relative;
}

.mo-title-main:hover {
    transform: scale(1.05);
}

.mo-section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #ffffff !important;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mo-title-small {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff !important;
    opacity: 0.95;
    white-space: nowrap;
}

.mo-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.95;
    color: #ffffff !important;
    line-height: 1.4;
}

/* DESKTOP TABEL */
.mo-table-wrapper {
    max-width: 1200px;
    margin: 0 auto 40px;
    overflow-x: auto;
}

.mo-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-radius: 12px;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
}

.mo-table th {
    padding: 16px 14px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    border: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.mo-table th {
    cursor: default;
}

.mo-col-type {
    background: #8C2E74;
    text-align: left;
    width: 30%;
}

.mo-col-guest {
    background: #8C2E74;
}

.mo-col-member {
    background: #8C2E74;
}

.mo-col-shareholder {
    background: #8C2E74;
}

.mo-table td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    font-size: 15px;
    vertical-align: middle;
}

.mo-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: #f9fafb;
}

.mo-table tbody tr {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    animation: slideIn 0.5s ease-out backwards;
}

.mo-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.mo-table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.mo-table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.mo-table tbody tr:nth-child(4) { animation-delay: 0.4s; }
.mo-table tbody tr:nth-child(5) { animation-delay: 0.5s; }
.mo-table tbody tr:nth-child(6) { animation-delay: 0.6s; }
.mo-table tbody tr:nth-child(7) { animation-delay: 0.7s; }
.mo-table tbody tr:nth-child(8) { animation-delay: 0.8s; }

.mo-table tbody tr:hover {
    background: #F3E8FF;
    box-shadow: 0 2px 8px rgba(140, 46, 116, 0.15);
}

.mo-table tbody tr:hover td:first-child {
    background: #e8f0fe;
    font-weight: 600;
}

.mo-price {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.mo-table tbody tr:hover .mo-price {
    color: #8C2E74;
}

.mo-buy-button {
    display: inline-block;
    margin-top: 4px;
    padding: 6px 12px;
    background: #8C2E74;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.4;
}

.mo-buy-button:hover,
.mo-buy-button:focus,
.mo-buy-button:visited {
    background: #9D3A84;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(140, 46, 116, 0.3);
}

.mo-table tbody tr:hover .mo-buy-button {
    background: #9D3A84;
    color: #ffffff !important;
}

/* MOBIILIKAARDID */
.mo-cards {
    display: none;
    max-width: 600px;
    margin: 0 auto;
}

.mo-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #8C2E74;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
    position: relative;
    overflow: hidden;
}

.mo-card:nth-child(1) { animation-delay: 0.1s; }
.mo-card:nth-child(2) { animation-delay: 0.2s; }
.mo-card:nth-child(3) { animation-delay: 0.3s; }
.mo-card:nth-child(4) { animation-delay: 0.4s; }
.mo-card:nth-child(5) { animation-delay: 0.5s; }
.mo-card:nth-child(6) { animation-delay: 0.6s; }
.mo-card:nth-child(7) { animation-delay: 0.7s; }
.mo-card:nth-child(8) { animation-delay: 0.8s; }

.mo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(140, 46, 116, 0.05), transparent);
    transition: left 0.5s ease;
}

.mo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(140, 46, 116, 0.2);
    border-left-width: 6px;
}

.mo-card:hover::before {
    left: 100%;
}

.mo-card-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
    color: #1a1a1a;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.mo-card-price-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mo-card-price-row {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-radius: 8px;
    gap: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.mo-card-price-row:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mo-card-price-row.mo-guest {
    background: #F3E8FF;
    border-left: 3px solid #8C2E74;
}

.mo-card-price-row.mo-member {
    background: #F3E8FF;
    border-left: 3px solid #8C2E74;
}

.mo-card-price-row.mo-shareholder {
    background: #F3E8FF;
    border-left: 3px solid #8C2E74;
}

.mo-card-label {
    font-size: 14px;
    font-weight: 600;
    color: #4B5563;
    margin-bottom: 4px;
}

.mo-card-price-main {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    transition: transform 0.2s ease, color 0.2s ease;
}

.mo-card-price-row:hover .mo-card-price-main {
    transform: scale(1.05);
    color: #8C2E74;
}

.mo-card-buy-button {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 12px;
    background: #8C2E74;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    line-height: 1.4;
}

.mo-card-buy-button:hover,
.mo-card-buy-button:focus,
.mo-card-buy-button:visited {
    background: #9D3A84;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(140, 46, 116, 0.3);
}

/* RESPONSIVE – mobiilis peidame tabeli ja näitame kaarte */
@media (max-width: 768px) {
    .mo-table-wrapper {
        display: none;
    }
    
    .mo-cards {
        display: block;
    }
    
    .mo-header {
        background: #8C2E74;
        color: #ffffff !important;
        padding: 18px 16px;
        margin-bottom: 24px;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .mo-main-title {
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 8px 0;
        color: #ffffff;
        line-height: 1.4;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: baseline;
        gap: 4px;
    }
    
    .mo-title-main {
        font-size: 18px;
        font-weight: 700;
        color: #ffffff !important;
        white-space: nowrap;
        min-width: fit-content;
    }
    
    .mo-title-small {
        font-size: 13px;
        font-weight: 600;
        color: #ffffff !important;
        opacity: 0.95;
        white-space: nowrap;
    }
    
    .mo-subtitle {
        font-size: 12px;
        margin: 0;
        color: #ffffff;
        opacity: 0.95;
        line-height: 1.4;
    }
}

/* Väikese ekraani jaoks */
@media (max-width: 480px) {
    .mo-header {
        padding: 16px 12px;
        margin-bottom: 20px;
    }
    
    .mo-main-title {
        font-size: 16px;
        line-height: 1.5;
        gap: 3px;
    }
    
    .mo-title-main {
        font-size: 16px;
        font-weight: 700;
        color: #ffffff !important;
        white-space: nowrap;
        min-width: fit-content;
    }
    
    .mo-title-small {
        font-size: 11px;
        font-weight: 600;
        color: #ffffff !important;
        opacity: 0.95;
        white-space: nowrap;
    }
    
    .mo-subtitle {
        font-size: 11px;
        line-height: 1.5;
    }
    
    .mo-card {
        padding: 12px;
    }
    
    .mo-card-title {
        font-size: 14px;
    }
    
    .mo-card-price-main {
        font-size: 16px;
    }
    
}

/* Elementori HTML-vidina <style> plokist (body-reegel jäetud välja) */
.mo-price-block{display:flex;flex-direction:column;align-items:center;gap:2px}
.mo-price-main{font-size:18px;font-weight:800;color:#8C2E74}
.mo-card-price-wrap{display:flex;flex-direction:column;gap:2px}

/* Plugina enda lisad: ei sõltu teema box-sizing'ust; märkus ploki all. */
.ogcc-hinnakiri .mo-buy-button,
.ogcc-hinnakiri .mo-card-buy-button { box-sizing: border-box; }
.ogcc-hinnakiri .ogcc-hk-note { max-width: 1200px; margin: -24px auto 40px; font-size: 14px; }
/* Pealkiri ja tabel sama laiad ka siis, kui lehel pole Elementori kasti (nt tavaline leht). */
.ogcc-hinnakiri { max-width: 1200px; margin-left: auto; margin-right: auto; }
/* Sama lehe taust, mis vana HTML-vidina body-reegel andis (#f3f4f6), ainult lehtedel, kus hinnakiri on.
   Vana vidina 20 px body-äärist ei korrata: see nihutas kogu saidi päist. */
body:has(.ogcc-hinnakiri) { background: #f3f4f6; }
